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:
  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

No packages published

Languages