A console-based Cafe Management System built in Java as part of my Programming Fundamentals coursework.
The application allows customers to browse the menu, place orders, and generate receipts, while administrators can manage menu items. It uses Java file handling to store menu data and customer order history, ensuring data persists between program executions.
- View available menu items
- Place customer orders
- Select item quantities
- Generate itemized receipts
- Save order history to
orders.txt
- View the current menu
- Add new menu items
- Remove existing menu items
- Save updated menu data to
menu.txt
This project was developed to strengthen core Programming Fundamentals concepts, including:
- Arrays & Parallel Arrays
- Methods
- Loops (
foranddo-while) - Conditional Statements
- Switch Case
- File Handling
- Exception Handling
The application stores data using two text files.
Stores menu items and their prices.
Example:
Burger,15.99
Pizza,30.59
Shawarma,10.09
Stores customer receipts and order history so previous orders are preserved.
- Load menu data from
menu.txt. - Display the main menu.
- Allow customers to browse and place orders.
- Generate and save customer receipts.
- Allow administrators to manage menu items.
- Automatically save menu updates and order history.
- Java
- Zed IDE
- Java File I/O
FileFileWriterPrintWriterScanner
CafeManagementSystem/
β
βββ screenshots/
β βββ code_snippets/
β βββ output/
β
βββ CafeManagementSystem.java
βββ menu.txt
βββ orders.txt
βββ .gitignore
βββ README.md
javac CafeManagementSystem.javajava CafeManagementSystemThrough this project, I strengthened my understanding of:
- Java programming fundamentals
- Problem solving
- Arrays and methods
- File handling
- Exception handling
- Structuring console-based applications
Potential enhancements include:
- Java Swing or JavaFX GUI
- Database integration
- Improved input validation
- Dynamic menu management using
ArrayList - Admin authentication
Muhammad Abdullah
BSCS Student at COMSATS University Islamabad