\Hi, this is a problem I am currently stuck on and I do not know where to begin with. Any help will be greatly appreciated!
The Wong Chinese Imports company has asked you to create a program to be used by their warehouse staff to maintain inventory. We have now completed the first two phases of the project, and the company is very pleased with the results.
Currently, we have several variables needed for manipulating the inventory. We now want to clean up that code and move it into functions and classes.
Using the variables created for the application, create a class object called Inventory. Our variables should be private within that class. In addition, set up public member functions for setting and getting the values for those private variables. There should be two constructors: a default constructor to set all values to zero or empty (for string variables), and a parameter constructor for setting the values when declared.
The class will also include functions for calculating the total value of the inventory and for generating the random number for the SKU.
We will still be using a loop to ask the user for the category, the item, the price, and the number in stock, so all that is required is the modifications in variables. Validation for the input should be within the class.
The output will remain as we have previously done it, so, again, modifications are needed for the variables only.