Skip to content

Apxsingh/SuperMarket-Management-System-using-Cpp

Repository files navigation

🛒 Supermarket Management System (C++)

A console-based Supermarket Management System built using C++, demonstrating Object-Oriented Programming, file handling, and real-world logic such as billing, stock management, and sales tracking.

This project is ideal for:

  • 🎓 C++ students
  • 💻 Beginners building portfolio projects
  • 📂 File-handling based system practice
  • 🚀 GitHub showcase projects

✨ Features

👨‍💼 Administrator Panel

  • 🔐 Secure admin login
  • ➕ Add new products
  • ✏️ Modify existing products
  • ❌ Delete products
  • 📦 Manage product stock
  • 📋 View all products
  • ⚠️ Low stock alerts
  • 📊 View complete sales report

🛍️ Buyer Panel

  • 📄 View available products
  • 🔍 Search products by name or code
  • 🛒 Buy multiple products
  • 💰 Automatic bill calculation
  • 📉 Discount handling
  • 🧾 Date & time-based receipt generation

⚙️ System Capabilities

  • 📁 File-based database (No MySQL needed)
  • 🔄 Automatic stock updates after purchase
  • 🧾 Transaction history saved
  • 🧠 Clean menu-driven interface

🗂️ Project Structure

Supermarket-Management-System/
│
├── SuperMarketManagementSystem.cpp            # Main C++ source file
├── database.txt        # Product database (auto-generated)
├── transactions.txt   # Sales records (auto-generated)
├── README.md           # Project documentation

🧑‍💻 Technologies Used

  • 🟦 C++(Main programming language)
  • 🧩 Object-Oriented Programming (OOP)(Used for modular and reusable code)
  • 📁 File Handling(Stores product and sales data)
  • ⚙️ STL (vector, algorithm, iostream)(I/O formatting)
  • 🛠 GCC Compiler(Compiles the source code)
  • 🖥 VS Code(Code editor)

🔐 Admin Login Credentials

Email: yujiitadori76678@gmail.com
Password: admin123@

Email: singhtomararpit2@gmail.com
Password: apxsingh2006@

⚠️ You can change admin credentials directly in the menu() function.


▶️ How to Run the Project

📌 Prerequisites

  • Windows / Linux / macOS

  • C++ Compiler (GCC / MinGW)

  • VS Code or any C++ IDE


🛠️ Compile & Run

Linux / macOS

g++ SuperMarketManagementSystem.cpp -o supermarket
./supermarket

Windows (CMD / PowerShell)

g++ SuperMarketManagementSystem.cpp -o supermarket.exe
supermarket.exe

📸 Sample Output

====================================
||   WELCOME TO SUPERMARKET SYSTEM ||
====================================

1. ADMINISTRATOR
2. BUYER
3. EXIT

📈 Future Enhancements

  • 🔗 MySQL database integration

  • 🖥️ GUI version (Qt / SFML)

  • 📊 Monthly & yearly sales analytics

  • 👥 Multiple admin roles

  • 🧾 Export receipt as PDF

  • 🔐 Password encryption


🤝 Contributing

Contributions are welcome! 🚀

  1. Fork this repository

  2. Create a new branch

git checkout -b feature-name
  1. Commit your changes
git commit -m "Added new feature"
  1. Push to your branch and open a Pull Request

👤 Author

Arpit Singh Tomar
🎓 C++ Developer | Student | Open Source Learner

🔗 GitHub: https://github.com/Apxsingh
📧 Email: singhtomararpit2@gmail.com


⭐ If you like this project, don’t forget to star the repository!


✅ Next Steps for You

  1. Create a GitHub repository
  2. Upload SuperMarketManagementSystem.cpp
  3. Create README.md
  4. Paste the above content
  5. Commit & push 🚀

If you want, I can also help you:

  • Add badges (C++, License, Stars)
  • Write a professional GitHub description
  • Improve README design even more

Just tell me 👍

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages