Skip to content

pwnjoshi/cafeteria-billing-system

Repository files navigation

Animated header

🍽️ Cafeteria Billing System

Language Status Version License

A simple yet powerful console-based C project designed to efficiently manage a cafeteria's menu, billing system, user authentication, and order history.


📁 Project Structure

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

🚀 Features

  • 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

🛠️ How to Run

  1. Navigate to the project directory

    cd Main_Program
  2. Compile the project

    gcc main.c -o cafeteria
  3. Run the executable

    ./cafeteria

    or simply double-click cafeteria.exe on Windows


🌟 Future Improvements

  • 🔐 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

👨‍💻 Author

Pawan Joshi
GitHub: @pwnjoshi


⭐ Support

If you found this project helpful, please consider giving it a star ⭐ and sharing it with others.
Your support motivates further improvements 🚀💻


pwnjoshi

About

Console-based C project to manage a cafeteria's menu, billing, user login, and order history.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages