Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(int argc, char *argv[])
- {
- string itemName;
- float itemPrice;
- int itemQty;
- // float rate, grossPay, netPay, tax;
- cout << showpoint << setprecision(2) << fixed;
- //Splash function call
- splashsn();
- system("CLS");
- //Welcome function call
- welcome();
- system("CLS");
- //Pay system
- cout << "\n\n\n\n\n\n\n\n\n\n\n\n";
- //Input section
- cout << " \t\t Enter the name of the product: ";
- cin >> itemName;
- cin.ignore();
- cout << " \t\t Enter the quantity of the item: ";
- cin >> itemQty;
- cout << " \t\t Enter the price of item: $";
- cin >> itemPrice;
- system("CLS");
- cout << "\n\n\n\n\n\t\t The name of the item is called: " << itemName << endl;
- //system("PAUSE");
- cout << "Press the \"Enter\" key when you are ready to continue" << endl;
- cin.get();
- //Processing section
- /* grossPay = hours * rate;
- tax = grossPay - (grossPay * TAX_RATE);
- netPay = grossPay - tax;
- //Output section
- system("CLS");
- cout << "\n\n\n\n\n";
- cout << " \t\t [\\_____________________/]\n";
- cout << " \t\t [-$-] Pay Summary [-$-]\n";
- cout << " \t\t [/^^^^^^^^^^^^^^^^^^^^^\\]\n\n";
- cout << " \t\t Your hours worked: " << setw(4) << hours << endl;
- cout << " \t\t Your rate of pay: $" << setw(7) << rate << endl;
- cout << " \t\t Your gross pay is $" << setw(7) << grossPay << endl;
- cout << " \t\t Your tax is $" << setw(7) << tax << endl;
- cout << " \t\t Your net pay is $" << setw(7) << netPay << endl;
- cout << "\n\n\n\n\n\n\n\n\n";*/
- //system("PAUSE");
- return 0;
- }
Add Comment
Please, Sign In to add comment