A simple yet powerful console-based C project designed to efficiently manage a cafeteria's menu, billing system, user authentication, and order history.
File/Folder | Purpose |
---|---|
main.c |
Entry point of the program. |
cafeteria.exe |
Compiled Windows executable. |
auth.h |
Handles user login and authentication. |
users.txt |
Stores user credentials. |
addItem.h |
Adds new items to the menu. |
deleteItem.h |
Deletes existing menu items. |
updateItem.h |
Edits or updates menu items. |
viewItems.h |
Displays available menu items. |
manageMenu.h |
Core menu handler linking item operations. |
menu.txt |
Persistent file storage of current menu items. |
processNewOrder.h |
Processes orders and generates bills. |
viewOrderHistory.h |
Views previous customer orders. |
order_history.txt |
Stores all completed orders. |
utils.h |
Common helper/utility functions. |
✅ View complete Workflow here : https://shorturl.at/8mBz4
- ✅ User Authentication (Login System)
- ✅ Add, Edit, View & Delete Menu Items
- ✅ Place New Orders & Generate Bills
- ✅ View Past Order History
- ✅ File-Based Persistent Storage
- ✅ Modular & Maintainable Code Structure
- ✅ Reusable Utility Functions
-
Navigate to the project directory
cd Main_Program
-
Compile the project
gcc main.c -o cafeteria
-
Run the executable
./cafeteria
or simply double-click
cafeteria.exe
on Windows
- 🔐 Role-based login (Admin vs Customer)
- 🔑 Encrypted password storage
- 🎨 Colorful UI with ASCII art and styling
- 📊 Analytics and Reports of Sales
- 🛒 Integration with payment gateways
Pawan Joshi
GitHub: @pwnjoshi
If you found this project helpful, please consider giving it a star ⭐ and sharing it with others.
Your support motivates further improvements 🚀💻