This project is a simple, object-oriented Python simulation of a coffee machine. It allows users to interact with a virtual coffee machine to select from a menu of coffee options, including latte, cappuccino, and espresso. Upon selection, the user can input the amount of money they are paying with, and the program calculates and returns the appropriate change.
- Simple and interactive text-based interface.
- Supports multiple coffee choices: Latte, Cappuccino, and Espresso.
- Supports report current coffee machine status by writing 'report' in console
- Support disconnecting coffee machine by writing 'off' in console
- Calculates the change based on the user's input money and the selected coffee's price.
- Implemented using Object-Oriented Programming (OOP) principles in Python for easy maintenance and scalability.
The purpose of this project is to demonstrate basic OOP concepts in Python through a practical, real-world application. It's designed for beginners looking to understand class-based structures, encapsulation, and simple state management.
- Clone the repository.
- Run the
main.py
script in a Python environment.python main.py
- Follow the on-screen prompts to choose a coffee and input your payment.