Hello, this question relates to a class I am taking called introduction to C++. I have no experience writing programs and outside of learning out of a textbook, and studying on my own, have little understanding of logic. I have been assigned a problem that requires me to write a program for a Grocery Bill, where the consumer inputs the price for 5 items, that the program calculates the total with a 6% sales tax. I really am not sure where to start for this exercise. Here is the assignment word for word:
"For this assignment, write a program that calculates a grocery bill. The program should output “Joe’s Market” as the title. The program should prompt the user to enter the price for five products of your choosing. The program should calculate the total price of the groceries, add 6% sales tax to the groceries, and display the total price including sales tax. Be sure to include comments throughout your code where appropriate."
In: Computer Science
Turing machine A that does the following:
• On its first and second tape, A receives two strings w and v, w, v ∈ {0, 1}? , representing two integer numbers. When machine A is started, the tape heads are located on the left-most position, on the most significant bits of w and v.
• If none of the inputs w and v is the empty word, the Turing machine A writes the binary representation of the sum of the two integer numbers w and v on the third tape and then accepts the input. If one of w or v is the empty word, the Turing machine does not write anything on the third tape and rejects the input. If machine A outputs something, it outputs the binary representation of the sum in such a way that the left-most bit contains the most significant bit of the sum. Be careful: w and v may be of different length.
Q: Define a 3-tape Turing machine M that implements multiplication, in a manner similar to how A implements addition
In: Computer Science
// This program performs a linear search on a character array
// Place Your Name Here
#include<iostream>
using namespace std;
int searchList( char[], int, char); // function prototype
const int SIZE = 8;
int main()
{
char word[SIZE] = "Harpoon";
int found;
char ch;
cout << "Enter a letter to search for:" << endl;
cin >> ch;
found = searchList(word, SIZE, ch);
if (found == -1)
cout << "The letter " << ch
<< " was not found in the list" << endl;
else
cout << "The letter " << ch <<" is in the " << found + 1
<< " position of the list" << endl;
return 0;
}
//*******************************************************************
// searchList
//
// task:
// data in:
// data returned:
//
//*******************************************************************
int searchList( char List[], int numElems, char value)
{
for (int count = 0;count <= numElems; count++)
{//WRITE STATEMENT TO CHECK FOR VALUE IN EACH ARRAY ELEMENT
return count;
// if the desired value is found, the array subscript
// count is returned to indicate the location in the array
}
return -1; // if the value is not found, -1 is returned
}
In: Computer Science
express your current opinions about one part of the topic of "Economic Justice". Simply offer your opinion and provide a reason.
The government uses our tax money to provide various kinds of benefits for citizens like you and me; there are too many to list. Currently, our tax laws are such that wealthier Americans pay more in taxes- as a percentage of their income- than poorer people do. For example, a person who earns $1,000,000 in a year might pay a 20% income tax ($200,000) and a person who earns $45,000 per year might pay a 0 - 5% income tax (0 - $2,250).
Does this seem "fair" or "just" to you? Yes or no?
First, you will need to explain what you mean by the word "fair" or "just" here. Pick which of the two you want to define.
Second, please provide one reason that you think this situation is or is not fair or just (by your understanding of the word).
In: Economics
Your code needs to do the following:
def pigLatin(sentence):
# Write your code below
return
# Use the variable below to test
sentence = 'The quick brown fox jumps over the lazy dog'
# write your code below
In: Computer Science
After reviewing this week’s readings, assess your readiness to be a self-directed learner. In your response, make sure to address the following:
What is a self-directed learner?
What are the essential aspects of self-directed learning? What are your two biggest strengths as a student?
How will these strengths help you become a self-directed learner?
What are your two biggest weaknesses as a student?
How do these affect your readiness to be a self-directed learner?
Describe at least three strategies to become a more self-directed learner.
How will you hold yourself accountable for your growth as a learner?
Your written assignment should be submitted in a Word document (or similar program) and should be at least 1-2 pages in length, double-spaced with 1-inch margins, and written in Times New Roman size 12 font. You should provide a word count at the end of your written assignment.
In: Psychology
Convert this C++ program exactly as you see it into x86 assembly language:
// Use the Irvine library for the print function
#include <iostream>
// The string that needs to be printed
char word[] = "Golf\0";
// Pointer to a specific character in the string
char * character = word;
//NOTE: This main() function is not portable outside of Visual Studio
void main()
{
// Set up a LOOP - See the while loop's conditional expression below
int ecx = 4;
do
{
// Print the character
// In x86 assembly language you must use the following two lines of code:
// mov al, WHATEVER_CHARACTER_YOU_WANT_TO_PRINT
// call WriteChar
std::cout << *character;
// Increment the pointer
++character;
} while (--ecx != 0);
// In x86 assembly language you must use the following line of code:
// call CrLf
std::cout << std::endl;
// In x86 assembly language you must use the following line of code:
// call WaitMsg system("PAUSE");
}
In: Computer Science
There are literally hundreds of options available for POS systems. Pretend that your manager has put you in charge of purchasing a new POS system for your long-standing full service operation. Using an internet search tool, research three. How much do they cost? What are their features? What makes one better than the other?
Finally, decide which one would you purchase for your FSO, and why? Put the answers to the above questions into a word document, and then write up a mock email to your manager. Support your decision to your manager and explain why you made the choice you did.
This is a professional communication document. Please use effective writing for professional communication. Please submit both your research and your mock email as Word documents.
If you don't have experience writing professional emails, here are some tips to help you with this assignment: Professional Email Tips
In: Operations Management
In: Computer Science
When managing the performance of an organization, the leadership is always balancing between the risks and rewards of using financial and non-financial information as well as internally and externally sourced information, in its performance report.
(a) Define and provide an example of each of the following:
i. financial information and non-financial information.
ii. internally and externally sourced information.
Word count should be a minimum 150 words, not exceeding 250 words.
(b) Elaborate on the benefits and issues of using the following information:
i. financial information versus non-financial information. (6.5 marks)
ii. internally sourced information versus externally sourced information. (6.5 marks)
For each set of information, there should be at least two advantages and two disadvantages provided (no tables allowed, your answers should have proper headers and paragraphs and word count should be a minimum 350 words, not exceeding 450 words. Marks will be awarded for format.
In: Accounting