Cashier 1.0 is a C++ program that displays on the screen item codes with corresponding item description and price (at least 10 items). It asks the user to enter the code of the item purchased by a customer. Then, its description and price are displayed on the screen too. Also, it asks for the quantity of the particular item code entered. Consequently, it displays the total amount due. Then, it asks the user to tender the amount of cash of the customer. Finally, it displays the change and its breakdown.
Constraints:
When any one of the scenarios happens, the program should exit.
• The user enters item codes that are not available.
• The user types in quantity less than or equal to 0.
• The user inputs amount of cash less than the amount due.
Grading Criteria:
Program Correctness 80%
Ease of Use 20%
Sample Run:
Welcome to CS131xxx Mart!
Item Codes Description Price
100 Sweet ‘n Ripe Grapes 302.90
101 Crunchy Apples 52.20
… … …
109 Green Peas 25.75
Enter Code: 100
Sweet ‘n Ripe Grapes 302.90 Qty: 1
Total Due: 302.90
Cash: 1000.00
Change: 697.10
=========== CHANGE BREAKDOWN ===========
1000 0 0
500 1 500.00
200 0 0
100 1 100.00
50 1 50.00
20 2 40.00
10 0 0
5 1 5.00
1 2 2.00
0.25 0 0
0.10 1 0.10
0.05 0 0
“ Thanks for shopping!”