Skip to content

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

โ˜• Python Coffee Machine Simulator

A simple command-line coffee machine simulator built with Python.

This project simulates a real coffee machine where users can:

  • Choose a drink
  • Insert coins
  • Receive change
  • Check available resources
  • Refill the machine
  • Turn off the machine

๐Ÿš€ Features

  • โ˜• Three available drinks:

    • Espresso
    • Latte
    • Cappuccino
  • ๐Ÿ’ฐ Payment system:

    • Quarters
    • Dimes
    • Nickels
    • Pennies
  • ๐Ÿ“Š Machine report:

    • Current water level
    • Milk amount
    • Coffee amount
    • Total money earned
  • ๐Ÿ”„ Resource management:

    • Ingredients are automatically deducted after each purchase
    • Refill option available
  • ๐Ÿ›ก๏ธ Input validation:

    • Handles invalid payment inputs
    • Prevents making drinks without enough resources

๐Ÿ› ๏ธ Technologies Used

  • Python 3
  • Dictionaries
  • Functions
  • Loops
  • Conditional Statements
  • Exception Handling

๐Ÿ“‚ Project Structure

coffee-machine/
โ”‚
โ”œโ”€โ”€ main.py
โ””โ”€โ”€ README.md

โ–ถ๏ธ How to Run

  1. Clone the repository:
git clone https://github.com/Ramtinexe/python-coffee-machine-simulator.git
  1. Navigate to the project folder:
cd python-coffee-machine-simulator
  1. Run the program:
python main.py

๐ŸŽฎ Commands

Command Description
espresso Order an espresso
latte Order a latte
cappuccino Order a cappuccino
report Show machine resources
refill Refill ingredients
off Turn off machine

๐Ÿ“Œ Future Improvements

  • Convert the project to Object-Oriented Programming (OOP)
  • Add a graphical user interface (GUI)
  • Store transactions in a database
  • Add more drink options

๐Ÿ‘จโ€๐Ÿ’ป Author

https://github.com/Ramtinexe


Made with Python โ˜•

About

A simple command-line coffee machine simulator built with Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages