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.
- 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.
To run the Coffee Machine Simulator, follow these steps:
- Ensure you have Java installed on your system.
- Download or clone the repository to your local machine.
- Navigate to the source code directory in your terminal or command prompt.
- Compile the program using
javac CoffeeMachine.java
. - Run the program using
java CoffeeMachine
.
- 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.
- Add functionality to customize coffee recipes.
- Implement a GUI for easier interaction.
- Enhance the simulation to include maintenance and cleaning processes.