Skip to content

About

A console-based C++ inventory management system for tracking products, recording sales, calculating revenue, and storing data using text files. Built with arrays, structures, functions, and file handling

Resources

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

Inventory & Sales Tracker (IST)

A console-based Inventory & Sales Tracker developed in C++ for the CS118 – Programming Fundamentals (Fall 2025) course at FAST NUCES.

The application allows small businesses to manage product inventory, record sales, track revenue, and store data permanently using text files. It is built using only Programming Fundamentals concepts such as arrays, functions, structures, loops, conditional statements, and file handling.

Screenshots

🚀 Features

📦 Product Management

  • Add new products
  • Update product price and quantity
  • Delete products
  • Prevent duplicate Product IDs

📋 Inventory Management

  • Display all products
  • Search products by ID
  • Search products by Name
  • Prevent negative inventory
  • Validate user input

💰 Sales Management

  • Record product sales
  • Automatically reduce available stock
  • Calculate total bill
  • Prevent selling more than available stock

📊 Reports

  • Display sales history
  • Show top-selling product(s)
  • Calculate total revenue

💾 File Handling

  • Save product data to products.txt
  • Save sales data to sales.txt
  • Automatically load saved data when the program starts

🛠 Built With

  • C++
  • Arrays
  • Structures
  • Functions
  • File Handling
  • Console Application


📋 Main Menu

===== Inventory & Sales Tracker =====

1. Add Product
2. Display Products
3. Update Product
4. Delete Product
5. Search Product
6. Record Sale
7. Display Sales
8. Top Selling Product
9. Total Revenue
10. Save & Exit

📌 Key Concepts Used

  • Structures (struct)
  • Arrays
  • Functions
  • Loops
  • Conditional Statements
  • Input Validation
  • File Handling (ifstream & ofstream)
  • String Manipulation (cstring)
  • Formatted Output (iomanip)

About

A console-based C++ inventory management system for tracking products, recording sales, calculating revenue, and storing data using text files. Built with arrays, structures, functions, and file handling

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages