A simple console-based supermarket system written in C++.
-
C++ compiler (e.g. g++, clang++)
-
Supports:
<iostream><fstream><iomanip><cctype>
- Clone the repository
git clone https://github.com/ImEasooon/supermarket-console-system.git- Navigate to the project folder
cd supermarket-console-system- Compile the program
g++ main.cpp -o supermarket- Run the program
# Windows
supermarket.exe
# macOS/Linux
./supermarket-
🔐 User Authentication
- Register new account
- Login with existing account
- Username validation (no duplicates)
-
🛍️ Product Categories
- Meat
- Vegetable
- Food
- Drink
- Snack
-
🧾 Shopping Cart
- Add items with quantity
- Automatically calculates total price
-
📄 Receipt Generation
- Saves receipt to file
- Displays formatted output
- Shows total payment
Supermarket-Console-System
│
├── main.cpp
├── data/
│ ├── Customer Account.txt
│ └── Supermarket Receipt.txt
-
Login (L) / Registration (S) - Credentials stored in: ./data/Customer Account.txt.
-
Select category from number 1 - 5 (Meat, Vegetable, Food, Drink, Snack).
-
Add products using
A–D& enter quantity. -
Receipt automatically saved to: ./data/Supermarket Receipt.txt.
- This project is for educational purposes only. No permission is granted for redistribution.
