Skip to content

This project is a simple, object-oriented Python simulation of a coffee machine.

Notifications You must be signed in to change notification settings

adryyy10/oop-coffee-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Simple Coffee Machine Simulator

Description

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.

Features

  • 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.

Purpose

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.

How to Use

  1. Clone the repository.
  2. Run the main.py script in a Python environment.
    python main.py
    
  3. Follow the on-screen prompts to choose a coffee and input your payment.

About

This project is a simple, object-oriented Python simulation of a coffee machine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages