I am doing a reverse task challenge from a homework problem (Please, language is
ID: 3647018 • Letter: I
Question
I am doing a reverse task challenge from a homework problem (Please, language is C++).I need to create a gives the following output:
(1)Demonstrating the default constructor.
"get" functons used to display default values in the stockItem1 object...
---------------------------------------------------------------------
Item number: 0
Quantity : 0
Cost : $0.00
(2)Demonstrating the overloaded constructor.
"get" functons used to display values in the stockItem2 object...
---------------------------------------------------------------------
Item number: 124
Quantity : 12
Cost : $84.95
(3)Demonstrating the "set" functions used to update the stockItem2 object.
"get" functons used to display values in this object ...
---------------------------------------------------------------------
Item number: 243
Quantity : 50
Cost : $9.50
Total Cost in inventory : $475.00
(4)Demonstrating the "getItemDetails" function used to input item details
into a new stockItem3 object ...
---------------------------------------------------------------------
To add an item to the inventory, please input the following details:
Item number: 111
Quantity : 10
Cost : $5.99
(5)Demonstrating the "showItemDetails" function used to display values.
in this object ...
---------------------------------------------------------------------
Item number: 111
Quantity : 10
Cost : $5.99
Sale Price : $7.79
Total Cost in inventory : $59.90
Item quantity is at safety stock level
---------------------------------------------------------------------