This Coffee Machine project was created as part of the 100 Days of Code Python Course to learn about working with functions.
This Coffee Machine project is a Python program that simulates a coffee vending machine. The project covers the following aspects:
- Menu with three coffee options: espresso, latte, and cappuccino.
- Ingredient management to check and update resource levels (water, milk, coffee, money).
- Coin handling to calculate change and manage transactions.
- User interaction for ordering and payment.
The Coffee Machine project follows these key steps:
- The user selects a coffee option (espresso, latte, or cappuccino).
- The program checks if there are enough ingredients to make the selected coffee.
- The user enters coins (quarters, dimes, nickels, and pennies) to pay for the coffee.
- The program calculates change if necessary and dispenses the coffee.
- If there are insufficient ingredients or if the user's payment is not enough, appropriate messages are displayed.
To use this project:
- Clone this repository to your local machine.
- Run the
main.py
file in a Python environment.