Line: | Loopy Line | Type: | Exercise |
You should have completed: | This topic leads to: |
You are required to write an application that emulates a simple Drinks machine operating system. The user is offered 4 choices. These are tea with sugar and milk, tea with milk, or tea with sugar or quit.
The machine is required to keep a count of the number of each selection made and display it after each selection is made. Depending on their choice the machine will display a suitable message and will then display the number of that type of drink sold. The program is to keep working and offering the Menu until the user selects QUIT. Simple pseudocode for this might be :
START DO SET UP REQUIRED VARIABLES OFFER MENU AND GET CHOICE PROCESS CHOICE AND INCREMENT CHOICE_COUNTER WHILE CHOICE IS NOT QUIT