Program an automated coffee vending machine in Java
outhman
Posted messages
1
Status
Member
-
walidovich_85 Posted messages 698 Status Member -
walidovich_85 Posted messages 698 Status Member -
Hello.
I want to start programming the Java project for an automatic coffee vending machine, but the problem is that I haven't found a specifications document to start the work.
If you have any suggestions for specifications on this topic please propose them, and thank you in advance
I want to start programming the Java project for an automatic coffee vending machine, but the problem is that I haven't found a specifications document to start the work.
If you have any suggestions for specifications on this topic please propose them, and thank you in advance
1 answer
-
Hello,
I think the best specification would be to simulate exactly what happens in a real coffee vending machine, that is:
Menu 1:
- Help: to display the help for using the machine.
- Bet: which detects the inserted money.
Menu 2 (result of the betting choice):
- Beverage menu: offer all available drinks and display their prices.
- Calculate the difference between the inserted coins and the price.
- Return the change to the customer.
- Offer a special menu depending on the drink.
- Determine the number of sugar spoons.
- Simulate preparation with a system pause.
- Give the drink to the customer and display a thank-you message for the visit.
Actually, you can sophisticate it as much as you want:
- you can create a database to simulate the quantities of raw materials in the dispenser.
- record the number of orders.
- the best-selling item...
I mean, you can go so crazy if you don’t already have a requested specification.
Good luck
--
Being normal is boring... being geek is interesting