1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
int main()
{
// BEGIN getInventory Variables (coded by DL)
vector<string> productName(5);
vector<string> itemId(5);
vector<double> mPrice(5);
vector<double> sPrice(5);
vector<int> stock(5);
int choice;
string customerName;
ifstream inData;
// END getInventory Variables
// BEGIN DL's Functions
getInventory(productName, itemId, mPrice, sPrice, stock, inData); // Calls getInventory Function
welcome(customerName);// Calls CSR (customer service Rep) Function
findChoice(choice, customerName); // Finds user's Choice
choiceCheck(choice, customerName); // Checks if user input is Valid
executeChoice(itemId, sPrice, choice, stock, customerName); // Performs user's choice
buyItem(productName, itemId, sPrice, stock);
// END DL's Functions
cout << "Manufacture Price: " << mPrice[4];
return 0;
|