Question: Write a program in C++ to calculate sales totals for a general store. Your program will not know how many products each customer will buy,
Write a program in C++ to calculate sales totals for a general store. Your program will not know how many products each customer will buy, so your program will have to repeat the process until the last product has been entered (use -1 for Product ID to end each sale). After each sale, your program must ask if you want to do another sale (1 -continue, 0 - end program). At the beginning of the day, the cash drawer has $500 in it.
At the end of the program, you must display how much money is in the drawer after handling all your sales transactions. Input Your program must take the following input: Product ID Number (int) Quantity for each item purchased (int) Use the following dataset to determine the price and taxability for each item.
Please Print Program Output Use the sample code provided: #include #include using namespace std; int main() Loop for repeat sales // Enter the first Product ID for the first sale (-1 to exit) // Main loop for each sale // Switch statement to determine the price, and calculate sales tax, if any, for the item. // Get next Product ID // Print properly formatted output for each sale // Another sale? // Display how much is in the cash drawer at the end.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
