Create a program that simulates an electronic till.
The operator must enter the pin 1066 to get access before entering all of the items in the basket (3 baskets below). To finish a basket the operator enters a price of zero, the program will then display the total and ask for the cash tendered before displaying the change and going on to the next basket.
Basket 1 | Basket 2 | Basket 3 |
£0.67
£0.99 £0.34 £0.99 £0.78 £0.65 £0.12 £0.15 |
£1.99
£12.99 £1.50 £5.43 £8.99 |
£0.54
£1.99 £0.01 £18.99 £192 £67.50 £24.99 |