A simple C++ command-line application for managing product inventory with support for quality tiers, purchase/return workflows, and real-time updates. This project was developed for an introductory data structures course and demonstrates modular programming, use of STL containers, and practical fileless inventory handling.
This system is built to handle inventory for various products, each identified by a unique SKU and stored with different quality tiers ("new", "used", and "poor"). It includes functionality for:
- Viewing all inventory items.
- Searching for items by name or SKU.
- Purchasing items while updating stock.
- Returning items and restocking.
- Displaying price and quantity for each quality tier.
Currently, the inventory is stored in memory and resets on each program run.
- Displays all products with SKU, name, price, and available quantities by quality.
- Case-insensitive search by SKU or product name.
- Users specify name/SKU, quality (new/used/poor), and quantity.
- Inventory is updated in real-time if stock is sufficient.
- Users can return items by specifying the quality and quantity.
- Stock is incremented accordingly.
- Each product has stock counts under:
new
used
poor
- Modular functions include:
displayInventory()
searchInventory()
purchaseProduct()
returnProduct()
Main logic for the application.
Implements all the core features of inventory interaction including user input menus, product structure, and handling logic.
Inventory Management Project Design.sln
Inventory Management Project Design.vcxproj
Inventory Management Project Design.vcxproj.filters
Inventory Management Project Design.vcxproj.user
These files are used to compile and run the project in Microsoft Visual Studio.
SKU Name Quality Quantity Price
1001 Laptop new 20 $999.99
used 5
poor 2
1002 Mouse new 50 $19.99
...