Summary
- The Coffee Machine Project simulates a coin-operated coffee dispenser offering three drinks: Espresso, Latte, and Cappuccino.
- Each drink requires specific amounts of water, milk, and coffee, and has a different price.
- The machine starts with limited resources: 300ml water, 200ml milk, and 100g coffee.
- Program requirements include printing reports of remaining resources, checking resource sufficiency, processing coins (penny, nickel, dime, quarter), and verifying successful transactions.
- When drinks are successfully made, the program deducts resources and adds money to the machine.
- The project specifications are available as a PDF in Course Resources, and students should break down the problem using TODOs in PyCharm.
Resources
PyCharm keyboard shortcuts | PyCharm
☕ Hot Beverage Emoji
Windows keyboard tips and tricks - Microsoft Support
Use emoji and symbols on Mac
https://drive.google.com/file/d/1G4jfPk9CNl3d_1TIFUoXBv3bzSZ85-8o/view?usp=drive_link
Notes\Code
For this exercise we need to build a coffee machine. It will need to be able to
-
[ ] Prompt the user for what type of coffee they would like:
- [ ] Expresso
- [ ] Latte
- [ ] Cappuccino
-
[ ] Be turned off by entering off to the prompt
-
[ ] Print report that shows the current resources in the machine like so:
Water: 100ml
Milk: 50ml
Coffee: 76g
Money: $2.50
-
[ ] Check if those resources are sufficient
If Latte requires 200ml water but there is only 100ml left it should print “Sorry there is not enough water.” It should do this for the other resources as well