Question: You are writing a program for a store to calculate how much money it made in a given day. Create a variable to track the

You are writing a program for a store to calculate how much money it made in a given day. Create a variable to track the total amount of money made that day, initialized to 0. This program will then continually ask the user to choose between three options (hint: use a while loop).

The first option the user can select is to enter the amount of a sale. You may assume the user will enter numeric data when this option is selected. After the sale amount is entered, the program should add 6.5% to the sale amount for sales tax and print the result. This result should also be added to the running total. The second option the user can select is to provide a refund. You may assume the user will enter numeric data when this option is selected. The amount the user enters should be deducted from the running total (no need to calculate tax).

However: Do not perform the deduction if it would cause the running total to go below $0. Instead, print a message telling the employee the refund cannot be issued and instructing them to speak to their manager. Quit the program. When the user select this option, the total amount entered in sales (tax included) should print to the screen. Then the program should end.

(C++)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Certainly Lets outline how to create this program in C with detailed steps Step 1 Initialize Variables We need a variable to keep track of the total s... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!