My friend Beavis and I have jobs at Burger World. Just yesterday, Beavis poured cooking oil in the cash register and it stopped working. Uhhhhh-huh-huh-huh. That was cool. We have this old computer that has a C compiler in it, but we don't know how to use it. We were wondering if you could write a makeshift cash register to temporarily replace our broken register.
Here are the requirements:
An example interactive screen could look like the following, but could have more features if you prefer. This is really an exercise on loops.
(items in blue are entered by the user)
*************************************************************
Welcome to Burger World!
*************************************************************
Order 1: $ 1.86
Order 2: $ 3.95
Order 3: $ 0.95
Order 4: $ 5.00
Order 5: $ 0
The total of your 4 orders, including tax is $12.67
Amount tendered: $ 20.00
Your change is: $7.33
Thank you for your purchase. Please visit us again.