#include #include class Inventory { private: char model[20]; int quantity; double cost; double price; double totalCost; double totalRevenue; public: Inventory(char* ch="\0", int q=0, double c=0, double p=0); void setModel(char*); void setQuantity(int); void setCost(double); void setPrice(double); void setTotalCost(int, double); void setTotalRevenue(int, double); char* getModel(); int getQuantity(); double getCost(); double getPrice(); double getTotalCost(); double getTotalRevenue(); }; //Constructor Inventory::Inventory(char* ch, int q, double c, double p) { setModel(ch); setQuantity(q); setCost(c); setPrice(p); setTotalCost(q,c); setTotalRevenue(q,p); } //setModel void Inventory::setModel(char* ch) { strcpy(model, ch); } //setQuantity void Inventory::setQuantity(int q) { quantity=q; } //setCost void Inventory::setCost(double c) { cost=c; } //setPrice void Inventory::setPrice(double p) { price=p; } //setTotalCost void Inventory::setTotalCost(int q, double c) { totalCost=q*c; } //setTotalRevenue void Inventory::setTotalRevenue(int q, double p) { totalRevenue=q*p; } //getModel char* Inventory::getModel() { ... } //getQuantity int Inventory::getQuantity() { ... } //getCost double Inventory::getCost() { ...; } //getPrice double Inventory::getPrice() { ... } //getTotalCost double Inventory::getTotalCost() { ... } //getTotalRevenue double Inventory::getTotalRevenue() { ... }