Skip to content

ImEasooon/supermarket-console-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supermarket Console System (C++)

A simple console-based supermarket system written in C++.


Cpp License

📋 Requirements

  • C++ compiler (e.g. g++, clang++)

  • Supports:

    • <iostream>
    • <fstream>
    • <iomanip>
    • <cctype>

🚀 Getting Started

  1. Clone the repository
git clone https://github.com/ImEasooon/supermarket-console-system.git
  1. Navigate to the project folder
cd supermarket-console-system
  1. Compile the program
g++ main.cpp -o supermarket
  1. Run the program
# Windows
supermarket.exe

# macOS/Linux
./supermarket

✨ Features

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

🗂️ Project Structure

Supermarket-Console-System
│
├── main.cpp
├── data/
│   ├── Customer Account.txt
│   └── Supermarket Receipt.txt

❓ How to Use

  1. Login (L) / Registration (S) - Credentials stored in: ./data/Customer Account.txt.

  2. Select category from number 1 - 5 (Meat, Vegetable, Food, Drink, Snack).

  3. Add products using A–D& enter quantity.

  4. Receipt automatically saved to: ./data/Supermarket Receipt.txt.


📸 Preview


📄 License

  • This project is for educational purposes only. No permission is granted for redistribution.

About

A simple console-based supermarket system.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages