Question: Need C++ code for this nobody is able to figure it out Inventory Management System Enhance the SimpleVector class template that we did in class

Need C++ code for this nobody is able to figure it out
 Need C++ code for this nobody is able to figure it
out Inventory Management System Enhance the SimpleVector class template that we did
in class to include: .A sort function. You can use the selection
sort algorithm (see code below that works for an array of int.

Inventory Management System Enhance the SimpleVector class template that we did in class to include: .A sort function. You can use the selection sort algorithm (see code below that works for an array of int. You will need to modify slightly (figure out where to use T). Also, no parameter of size needed since SimpleVector knows number of elements in array .A search function. It receives a value to search for (datatype T). If found, return its position in the list. If not found, return-1 You should test this functionality on a simple list of int to make sure it all works BEFORE moving on. You will also add code to make the list expand when full, but you should make that the LAST thing you work on (see end of assignment) Create a class called Item to represent items in inventory. It will need attributes of SKU . Quantity in stock Functions needed (along with the standard set/get functions for all attributes) . operator (to specify the format to "print an Item, see sample output) . operator (compare items based on SKU) . operators (compare items based on SKU) You will need 2 parameterized constructors: one that takes SKU, desc, and quantity Another that takes SKU only (because search needs an Item object) o o Note that the search method expects an ITEM object. So you should create a "dummy" item with this SKU to pass to the search function (make a constructor in Item to create an object with a particular SKU but desc as and quantity as 0-ASK IF CONFUSED) . . You will need to overload to make two Items equal if their SKU is the same Your app has the following menu options (note upper or lower case should work): A: add an item Prompt for SKU. Validate that it does not exist in the inventory, Enter description, in stock and add object to vector S: search for an item Enter an SKU to search for, If found, display the info about it. Ask if updates need to be made to Print a list of all items sorted by SKU L: list all items Q: quit Sample Run (use any type of product description you like, these are just examples) Inventory Menu A-add an item s - search for an item L-ist all items o-quit Your choice: L Choice is L No items

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!