Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

Students also viewed these Databases questions

Question

What are HR ethics?

Answered: 1 week ago