How syedamehakzahra/inventory-management-system works
This is a menu-driven C++ inventory manager. The user works through the console to manage products, search inventory, build a cart, and check out; inventory data is persisted and checkout writes a receipt. The graph separates inventory, search, and cart responsibilities from console features implemented in Main.cpp. ProductInventory.cpp was not sampled, so its internal behavior is represented only where the README documents it; some menu dispatches are likewise documented rather than visible in the excerpts.
Main entry points: Main.cpp Menu application · ProductInventory.cpp Product inventory · Cart.cpp Cart and checkout · Search.cpp Product search
Components 8
Console workflow
- Menu application
Main.cpp - History and stats
Main.cpp
Inventory
- Product inventory
ProductInventory.cpp - Product search
Search.cpp
Shopping
- Cart and checkout
Cart.cpp
File storage
- Inventory file
inventory.txt - Receipt
receipt.txt
Other components
- User
Connections 9
- User → Menu application: uses
README.md - Menu application → Product inventory: manages products
README.md - Menu application → Product search: calls search
Main.cpp - Menu application → Cart and checkout: uses cart
Main.cpp - Menu application → History and stats: shows insights
Main.cpp - Product search → Product inventory: searches products
Search.cpp - Cart and checkout → Product inventory: updates quantity
Cart.cpp - Product inventory → Inventory file: persists inventory
README.md - Cart and checkout → Receipt: writes receipt
Cart.cpp