Skip to content

Yash010704/supermarket-oder-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🛒 Supermarket Billing System

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.

📋 Features

🔐 Administrator

  • Add new products to the database
  • Modify existing products
  • Delete products from the database
  • Secure login using email and password

🧾 Buyer

  • View product list
  • Place orders with quantities
  • Generate bill with discount calculations

📂 File Structure

⚙️ How It Works

  1. Start the application
  2. Choose between:
    • Administrator login (email: abc123@gmail.com, password: abc12345)
    • Customer access
  3. Perform actions like adding/modifying/deleting items (Admin) or purchasing items (Buyer).
  4. Bills are generated with price and discount details.

📌 Requirements

  • C++11 or higher
  • Compatible C++ compiler (e.g., GCC, Clang, MSVC)

🧪 Compilation & Execution

On Linux/Mac

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages