Question: You have been hired to write a C program to allow clients to use a cashier machine for a grocery store. The cashier needs to

You have been hired to write a C program to allow clients to use a cashier machine for a grocery store. The cashier needs to be programmed for self checkout. The client will inform if (s)he wants to start scanning the products. The user informs the price of each product. The program will add the value of the products to inform the client how much needs to be paid. When the user enters Pay, the program should ask the user if (s)he has a discount coupon. If the answer is yes, the user informs the amount of the coupon. The program should subtract the amount and display the total with taxes. Otherwise, just display the total with taxes. Assume a sales tax rate of 6%.

The following information should be displayed:

Total before discounts and taxes Discount total discounts with tax

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!