Skip to content

A terminal-based simulation of a coffee vending machine built in Python. The program manages resources, processes coins, and serves coffee while tracking inventory and transactions.

Notifications You must be signed in to change notification settings

csnandan/coffee-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 

Repository files navigation

β˜• Coffee Machine Simulation

A terminal-based simulation of a coffee vending machine built in Python. The program manages resources, processes coins, and serves coffee (espresso, latte, cappuccino) while tracking inventory and transactions.


πŸš€ Features

  • Choose from three drinks: Espresso, Latte, or Cappuccino
  • Automatic resource management (water, milk, coffee)
  • Accepts coins: quarters, dimes, nickels, and pennies
  • Calculates and returns change if overpaid
  • Displays detailed resource reports on demand
  • Prevents purchases if resources are insufficient
  • Modular and beginner-friendly codebase

πŸ“· Preview

What would you like? (espresso/latte/cappuccino): latte
Please insert coins.
How many quarters? 10
How many dimes? 0
How many nickels? 0
How many pennies? 0
Please take your change: $0.0
Here is your latte. Enjoy!

About

A terminal-based simulation of a coffee vending machine built in Python. The program manages resources, processes coins, and serves coffee while tracking inventory and transactions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages