Simple Coffee Machine made with Java.
Machine starts with 400 ml of water, 540 ml of milk, 120 g of coffee beans, 9 disposable cups, $550 in cash.
- For the espresso, the coffee machine needs 250 ml of water and 16 g of coffee beans. It costs $4.
- For the latte, the coffee machine needs 350 ml of water, 75 ml of milk, and 20 g of coffee beans. It costs $7.
- And for the cappuccino, the coffee machine needs 200 ml of water, 100 ml of milk, and 12 g of coffee. It costs $6.
A user can:
- Buy a coffee
- Fill the machine with water, milk, coffee beans and disposable cups
- Take all the money in machine
- View the remaining items and money in machine