Question: Data structures and algorithms using C++ For your third programming project, you will use both a struct and a class to keep track of the

Data structures and algorithms using C++  Data structures and algorithms using C++ For your third programming project,
you will use both a struct and a class to keep track
of the inventory of the different types of items (a maximum of
10 for this program) manufactured by a particular company! The inventory is

For your third programming project, you will use both a struct and a class to keep track of the inventory of the different types of items (a maximum of 10 for this program) manufactured by a particular company! The inventory is to be maintained so that new types ofitems can be added, existing types of items can be removed, the price and the quantity of a particular item type can be changed, a particular item type can be looked up, a list of the current inventory can be listed, and the total dollar value of the inventory can be computed and displayed! In order to accomplish all this, you are to define a struct and a class, as given below. The struct has data members that represent the barcode, the price, and the quantity. truct Ttem type int barcode double price nt quantity The class has a private data member that is an array of structs of the struct type, Itemtype, given above, as well as num itemtypes that is to keep track of the actual number of item types in the inventory. The class also has public member functions (see below) class Inventory private Item type itemtype [max it //max items is the maximun numioer of item //types that the company can handle a constant defined as 10 for this program) /actual number of item types in inventory int num itemtypes; public: //description is given below Inventory /description is given below -Inventory //description is given below bool Is Full bool IsEmpty int find itemtype (int ccde /description is given below //description is given below void splay itemtype (int subscript) void add itemtype /description is given below description is given below void remove itemtype (int subscript) void list itemtypes //description is given below subscript //description is given below void update itemtype (int void total value //description is given below The inventory class has two data members: an amay of up to max items item type structs and an int variable that keeps track of the actual number of different item types currently present in the inventory. [For example, the inventory may presently have 4 different item types, even though the company can handle a maximum of 10 different item types.] The inventory class will need to have the following function members: (1) a constructor function for the inventory. The constructor is to set the number of actual item types in the inventory initially to zero. Also, the constructor should step through all ofthe max items possible item types

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!