Skip to content

ibhaj-dev/cafe-management-system-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โ˜• Cafe Management System

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.

๐Ÿš€ Features

  • ๐Ÿต 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

๐Ÿ› ๏ธ Technologies Used

  • Java
  • VS Code
  • Scanner Class
  • Switch Case
  • Conditional Statements (if-else)
  • Loops (do-while)

๐Ÿ“‹ Menu

Item Price
Coffee โ‚น50
Tea โ‚น30
Sandwich โ‚น80
Burger โ‚น120

โ–ถ๏ธ How to Run

  1. Clone the repository:

    git clone <repository-url>
  2. Compile the program:

    javac cafe.java
  3. Run the program:

    java cafe

๐Ÿ“ท Sample Output

===== 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.

๐Ÿ“š Concepts Used

  • Java Classes
  • Variables & Data Types
  • Scanner for User Input
  • Switch Case
  • do-while Loop
  • Conditional Statements
  • Basic Billing Logic

๐Ÿ”ฎ Future Enhancements

  • Add quantity selection
  • Add GST calculation
  • Store order history
  • Use ArrayList for orders
  • Customer details
  • Payment options
  • GUI using Java Swing/JavaFX

๐Ÿ‘จโ€๐Ÿ’ป Author

Ibhaj


โญ If you found this project useful, consider giving it a star!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages