A simple C++ console-based application to simulate a basic supermarket billing system. It includes administrator and buyer functionalities, and manages a text-based inventory database.
- Add new products to the database
- Modify existing products
- Delete products from the database
- Secure login using email and password
- View product list
- Place orders with quantities
- Generate bill with discount calculations
- Start the application
- Choose between:
Administratorlogin (email:[email protected], password:abc12345)Customeraccess
- Perform actions like adding/modifying/deleting items (Admin) or purchasing items (Buyer).
- Bills are generated with price and discount details.
- C++11 or higher
- Compatible C++ compiler (e.g., GCC, Clang, MSVC)
g++ main.cpp -o supermarket
./supermarket
π§ Known Issues
Use of goto and label statements β not recommended in modern C++
Use of plain text files (database.txt) instead of structured storage
Minimal input validation
UI is purely console-based
π Future Improvements
Replace goto with proper loops/functions
Migrate to a structured file format like CSV or use SQLite
Add product categories, stock management, and search functionality
Improve UI with better formatting
Add persistence using OOP techniques (e.g., serialization)