Skip to content

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.

Notifications You must be signed in to change notification settings

imDarshanGK/coffee-machine-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

β˜• 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:
    git clone https://github.com/your-username/coffee-machine-simulation.git
  2. Navigate to the project folder:
    cd coffee-machine-simulation
    
  3. Run the project using Python:
    python coffee_machine.py
    

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages