Question: Write a critical reflection for a vending machine program Vending Machine Features (do not make the program): A menu of drinks and snacks presented via
Write a critical reflection for a vending machine program Vending Machine Features (do not make the program):
- A menu of drinks and snacks presented via the console. The number and range of items is up to you.
- A set of codes that the user can input to select a particular drink or snack.
- A way of capturing the users inputted code.
- A way of managing money. The user should be able to input any amount of money and have the correct change returned.
- A message that tells the user that a particular drink or snack has been dispensed.
- A message that tells the user how much change they have received.
- Comments in the code to explain key operations.
- A method of categorising items in the vending machine to improve the user experience (e.g. Chocolate or Hot Drinks).
- A way of allowing users to buy additional items if they have enough credit.
- An intelligence system for suggesting purchases. For example, if you buy a coffee, the vending machine may suggest that you buy biscuits.
- The use of functions to improve the structure of your program.
- A stock system meaning the machine may run out of products
Products consists of snacks, cold drinks and hot drinks
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
