Skip to content

dimicodes/Coffee-Machine-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Coffee-Machine-Simulator

Overview

This Coffee Machine Simulator is a Java console application that mimics the operations of a real-world coffee machine. It allows users to interact with the machine through a command-line interface, performing actions like buying coffee, filling supplies, and checking the machine's status.

Features

  • Buy Coffee: Choose different types of coffee such as espresso, latte, or cappuccino.
  • Fill Supplies: Add water, milk, coffee beans, and disposable cups to the machine.
  • Take Money: Collect the money accumulated from coffee sales.
  • Check Remaining Supplies: View the current supplies of water, milk, coffee beans, and cups.
  • Exit: Turn off the machine.

How to Run

To run the Coffee Machine Simulator, follow these steps:

  1. Ensure you have Java installed on your system.
  2. Download or clone the repository to your local machine.
  3. Navigate to the source code directory in your terminal or command prompt.
  4. Compile the program using javac CoffeeMachine.java.
  5. Run the program using java CoffeeMachine.

Implementation Details

  • The application is built using Java and follows basic object-oriented programming principles.
  • The state of the coffee machine (including supplies and cash holdings) is managed within the CoffeeMachine class.
  • Users interact with the machine via a simple text-based menu.

Future Enhancements

  • Add functionality to customize coffee recipes.
  • Implement a GUI for easier interaction.
  • Enhance the simulation to include maintenance and cleaning processes.

Preview

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages