Guest User

Untitled

a guest
Jun 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. int main(int argc, char *argv[])
  2. {
  3. string itemName;
  4. float itemPrice;
  5. int itemQty;
  6. // float rate, grossPay, netPay, tax;
  7.  
  8. cout << showpoint << setprecision(2) << fixed;
  9.  
  10. //Splash function call
  11. splashsn();
  12. system("CLS");
  13. //Welcome function call
  14. welcome();
  15. system("CLS");
  16. //Pay system
  17. cout << "\n\n\n\n\n\n\n\n\n\n\n\n";
  18. //Input section
  19. cout << " \t\t Enter the name of the product: ";
  20. cin >> itemName;
  21. cin.ignore();
  22. cout << " \t\t Enter the quantity of the item: ";
  23. cin >> itemQty;
  24. cout << " \t\t Enter the price of item: $";
  25. cin >> itemPrice;
  26. system("CLS");
  27. cout << "\n\n\n\n\n\t\t The name of the item is called: " << itemName << endl;
  28. //system("PAUSE");
  29. cout << "Press the \"Enter\" key when you are ready to continue" << endl;
  30. cin.get();
  31.  
  32. //Processing section
  33. /* grossPay = hours * rate;
  34. tax = grossPay - (grossPay * TAX_RATE);
  35. netPay = grossPay - tax;
  36.  
  37. //Output section
  38. system("CLS");
  39. cout << "\n\n\n\n\n";
  40. cout << " \t\t [\\_____________________/]\n";
  41. cout << " \t\t [-$-] Pay Summary [-$-]\n";
  42. cout << " \t\t [/^^^^^^^^^^^^^^^^^^^^^\\]\n\n";
  43. cout << " \t\t Your hours worked: " << setw(4) << hours << endl;
  44. cout << " \t\t Your rate of pay: $" << setw(7) << rate << endl;
  45. cout << " \t\t Your gross pay is $" << setw(7) << grossPay << endl;
  46. cout << " \t\t Your tax is $" << setw(7) << tax << endl;
  47. cout << " \t\t Your net pay is $" << setw(7) << netPay << endl;
  48. cout << "\n\n\n\n\n\n\n\n\n";*/
  49. //system("PAUSE");
  50. return 0;
  51. }
Add Comment
Please, Sign In to add comment