Ok, so i am getting this program, the only thing i need to run now would be the
ID: 3647020 • Letter: O
Question
Ok, so i am getting this program, the only thing i need to run now would be the inventory.h file with all the function declared, can you Chegg professionals help me please :DThis is the inventory.cpp file...
I need the inventory.h file...and possible the client.cpp
// ProjectCLIENT - 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 <iostream>
#include <iomanip>
#include "Inventory.h"
using namespace std;
int main()
{
cout << fixed << showpoint << setprecision(2);
cout<<"This is a driver program to test the Inventory class implementation. ";
cout<<"Three Inventory class objects are defined here and used to test access ";
cout<<"to the object's data members and procedures through the interface provided ";
cout<<"by the Inventory class member implementation. ";
// Demonstrate the default constructor and the "get" functions
Inventory stockItem1;
cout << "(1)Demonstrating the default constructor. ";
cout << ""get" functons used to display default values in the stockItem1 object... ";
cout<<"****************************************************** ";
cout << "Item number: " << stockItem1.getItemID() << endl;
cout << "Quantity : " << stockItem1.getItemQuantity() << endl;
cout << "Cost : $" << stockItem1.getItemCost() << endl;
// Now demonstrate the overloaded constructor and the "get" functions
Inventory stockItem2(124, 12, 84.95);
cout << " (2)Demonstrating the overloaded constructor. ";
cout << ""get" functons used to display values in the stockItem2 object... ";
cout<<"****************************************************** ";
cout << "Item number: " << stockItem2.getItemID() << endl;
cout << "Quantity : " << stockItem2.getItemQuantity() << endl;
cout << "Cost : $" << stockItem2.getItemCost() << endl;
// Now demonstrate the member "set" functions used to update or change an objects values
stockItem2.setItemID(243);
stockItem2.setItemQuantity(50);
stockItem2.setItemCost(9.50);
cout << " (3)Demonstrating the "set" functions used to update the stockItem2 object. ";
cout << ""get" functons used to display values in this object ... ";
cout<<"****************************************************** ";
cout << "Item number: " << stockItem2.getItemID() << endl;
cout << "Quantity : " << stockItem2.getItemQuantity() << endl;
cout << "Cost : $" << stockItem2.getItemCost() << endl;
cout << "Total Cost in inventory : $" << stockItem2.getTotalCost() << endl;
// Now demonstrate the getItemDetails and showItemDetails function
Inventory stockItem3;
cout << " (4)Demonstrating the "getItemDetails" function used to input item details ";
cout <<"into a new stockItem3 object ... ";
cout<<"****************************************************** ";
stockItem3.getItemDetails();
cout << " (5)Demonstrating the "showItemDetails" function used to display values. ";
cout << "in this object ... ";
cout<<"****************************************************** ";
stockItem3.showItemDetails();
cout<<"******************************************************* ";
//system("PAUSE");
return 0;
}