A simple Java console-based Cafe Management System developed using Core Java. This application allows users to order food items from a menu, calculates the total bill, applies a discount on eligible orders, and generates the final bill.
- ๐ต Interactive cafe menu
- ๐ Order multiple food items
- ๐ฐ Automatic bill calculation
- ๐ 10% discount on orders above โน500
- ๐งพ Final bill generation
โ ๏ธ Invalid input handling- ๐ Menu-driven program using do-while loop
- Java
- VS Code
- Scanner Class
- Switch Case
- Conditional Statements (if-else)
- Loops (do-while)
| Item | Price |
|---|---|
| Coffee | โน50 |
| Tea | โน30 |
| Sandwich | โน80 |
| Burger | โน120 |
-
Clone the repository:
git clone <repository-url>
-
Compile the program:
javac cafe.java
-
Run the program:
java cafe
===== CAFE MENU =====
1. Coffee - Rs 50
2. Tea - Rs 30
3. Sandwich - Rs 80
4. Burger - Rs 120
5. Exit & Generate Bill
Enter your choice: 1
Coffee Added!
Enter your choice: 4
Burger Added!
Enter your choice: 5
===== BILL =====
Total Bill = Rs 170.0
Discount = Rs 0.0
Final Bill = Rs 170.0
Thank You! Visit Again.
- Java Classes
- Variables & Data Types
- Scanner for User Input
- Switch Case
- do-while Loop
- Conditional Statements
- Basic Billing Logic
- Add quantity selection
- Add GST calculation
- Store order history
- Use ArrayList for orders
- Customer details
- Payment options
- GUI using Java Swing/JavaFX
Ibhaj
โญ If you found this project useful, consider giving it a star!