An open API service indexing awesome lists of open source software.

https://github.com/imdarshangk/coffee-machine-simulation

This project simulates a coffee machine where users can order different types of coffee, such as Latte, Espresso, and Cappuccino. It checks if enough ingredients (water, milk, coffee) are available, processes payments, and then prepares the selected coffee.
https://github.com/imdarshangk/coffee-machine-simulation

coffee coffee-machine projects python pythonprojects

Last synced: 7 months ago
JSON representation

This project simulates a coffee machine where users can order different types of coffee, such as Latte, Espresso, and Cappuccino. It checks if enough ingredients (water, milk, coffee) are available, processes payments, and then prepares the selected coffee.

Awesome Lists containing this project

README

          

# ☕ Coffee Machine Simulation

## Overview
This project simulates a coffee machine. Users can order different types of coffee like Latte, Espresso, and Cappuccino. The system checks if there are enough ingredients (water, milk, coffee), processes payments, and prepares the coffee.

## Features
- **Order Coffee** 🍵: Users can choose from three types of coffee: Latte, Espresso, and Cappuccino.
- **Resource Check** 🔍: The system checks if there are enough ingredients (water, milk, and coffee) to prepare the selected coffee.
- **Payment** 💰: Users make a payment for the coffee. The system ensures that the payment is processed before making the coffee.
- **Coffee Preparation** ☕: After a successful payment, the coffee machine prepares and serves the coffee to the user.
- **Report** 📊: Users can check the current status of the coffee machine, including remaining resources and the total money collected.

## How to Run

### Prerequisites

- Python 3.x should be installed on your machine. 🖥️

### Steps to Run

1. **Clone the repository** to your local machine:
```bash
git clone https://github.com/your-username/coffee-machine-simulation.git
2. **Navigate** to the project folder:
```bash
cd coffee-machine-simulation

3. **Run** the project using Python:
```bash
python coffee_machine.py