I am doing a reverse task challenge from a homework problem. I need to create a
ID: 3647010 • Letter: I
Question
I am doing a reverse task challenge from a homework problem.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
---------------------------------------------------------------------
Explanation / Answer
// Project#3b - client code to serve as a driver program for testing the Inventory class implementation // // Additional files needed to compile this multifile programming project: // Inventory.h -- contains Inventory class specification and inline functions // Inventory.cpp -- contains Inventory class function definitions // client.cpp -- this file used to create new inventory class objects and to test a few operation #include #include #include "Inventory.h" using namespace std; int main() { coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.