Question: Programming Assignment 1 : Implementing a Simple Inventory Management System Objective: Create a console - based inventory management system using C + + that demonstrates
Programming Assignment : Implementing a Simple Inventory Management System
Objective: Create a consolebased inventory management system using C that demonstrates understanding of OOP concepts covered in Chapters including dynamic memory, inheritance, composition, and pointers.
Description: Students will implement a program to manage an inventory of products. Each product will have details like name, price, quantity, and an array representing stock in different locations. The program will allow adding new products, updating existing products, and displaying the inventory.
Requirements:
Use classes and objects to represent products and inventory.
Implement dynamic arrays to handle stock for different locations.
Utilize constructors and destructors for proper memory management.
Create derived classes for different product categories with specific attributes.
Implement functions that use pointers to update stock levels.
Use inheritance and composition appropriately.
Classes to Implement:
Product Class:
Attributes: name, price, quantity, stockLocations a dynamic array using vector to represent stock across various locations
Methods: Constructor, Destructor, updatePrice, updateQuantity, addStockLocation, displayProductInfo.
Inventory Class:
Attributes: products a dynamic array using vector to hold multiple products
Methods: addProduct, displayInventory.
Main Function:
Should create an instance of the Inventory class and allow the user to add Products to the inventory, update them, and display the entire inventory.
Deliverables:
Source code files for each class Producth Product.cpp Inventory.h Inventory.cpp
A main.cpp file with a user interface for interacting with the Inventory system.
A Sprint report documenting your progress made over creating the program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
