Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Coffee Machine Menu — Java Console Simulation

A menu-driven Java console application that simulates the core operations of a coffee machine. Users can select a beverage, track available ingredients, collect stored money, inspect machine status, or shut the machine down.

Features

  • Espresso, Latte, and Cappuccino options
  • Ingredient and cup inventory tracking
  • Automatic resource deduction after a valid purchase
  • Revenue tracking
  • Machine status reporting
  • Input validation
  • Graceful machine shutdown

Concepts Demonstrated

Java Scanner, switch statements, methods, conditionals, loops, state management, arithmetic operations, and formatted console output.

How to Run

javac CoffeeMachineMenu.java
java CoffeeMachineMenu

Author

Fatima Salam

About

A menu-driven Java console simulation that models coffee preparation, ingredient management, inventory tracking, revenue handling, and machine operations.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages