(Solved) : Modify Inventory Management System Created Previous Assignment Assignments 2 Use Dynamic M Q37246684 . . .
Modify your inventory management system created inprevious assignment (assignments 2) to use dynamic memoryallocation (instead of the fixed size array) and files to store theinventory information, so that there is no limitation on how muchitems your application could support and user doesn’t need to inputthe data over and over again.
assignment2
Your application shall maintain the following information regardingan item.
Item ID – unsigned long
Item name – string
Item cost – float
Quantity – int
Following are the list of administrative functionalities yourapplication shall support:
1. Add new item to the inventory. This function will be used to adda single new item into the inventory management system.
2. Print all item information in the store – This function will beused to display all items in the inventory. When this option isselected system shall print Item ID, Item name, Item cost andquantity.
3. Find item by ID – This function will be used to search itemusing an ID. If item exist print item information. If not displayan error indicating item not found.
4. Find item by name – This function will be used to search itemusing name. If item exist print item information. If not display anerror indicating item not found.
5. Sort item by Name – This function will be used to sort all theitems in the store by name.
Write a menu driven application in C++. Here is a samplemenu.
Inventory Management System Menu
1. Add new item
2. Print item list
3. Find item by ID
4. Find item by name
5. Sort by name
6. Quit
Select: _
Note:
Menu should be repeatedly prompted to the user until the Quitoption is selected.
Use the class construct to define an item. Keep the itemproperties as private member of the class and expose publicaccessor methods.
Submit the source file (.cpp).
Expert Answer
Answer to Modify your inventory management system created in previous assignment (assignments 2) to use dynamic memory allocation …
OR