Question: a.Use classes in your implementation b. Define the builders c. Destroyer d. Define the accessor and mutators functions and. Implement a function that demonstrates the

a.Use classes in your implementation
b. Define the builders
c. Destroyer
d. Define the accessor and mutators functions and. Implement a function that demonstrates the use of the object.
F. Reproduce table 13.3 describing the functions within your program
g. UML diagram 13.22 h. Distribution of your program in three files
6. Inventory Class Design an Inventory class that can hold information and caculate data for items in a rctail storc's invcntory. The class should have the following prwate member variablcs: Variable Name An int that holds the item's item number. An int for holding the quantity of the items on hand. A double for holding, the wholesak per unit cost of the item A double for holding the total inventory cost of the item (cal quantity calated as quantity times cost). The lass should have the following public mcmber functions: Member Function Dcfault Constructor Scts all the member variablcs to 0 Constructor 2 Accepts an item's numbcr, cost, and quantity as arguments. The function should copy these values to the appropriate mcmber variables and then call the setTotalcoat function Acoepts an integer argument that is copied to the getItomNunber setQuantity Accepts an integer argument that is copied to the quantity member variabk. cetCoct Acocpts a double argument that is copied to the coet member variable. Cakculates the total inventory cost for the item (quantity timcs cost) and storcs the result in totalcost Returns the valuc in 1teaunber Rcturns the valuc in quantity Returns the valuc in cost Returns the valuc in totalcost. setTotalcoet getQuantity getcost Demonstrate the class i in a driver program. Input Validation:Do not accept negative values for item rmber quamtity, or
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
