Advertisement
efeertas

quicklube

Mar 5th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.86 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7.  
  8. float service;
  9. float total;
  10.  
  11.  
  12. cout << "Welcome to QuickLube !" << endl;
  13. cout << "Choose the service you wish to order with us today" << endl;
  14. cout << "   " << endl;
  15. cout << " (1) Oil Change                                     $29.95" << endl;
  16. cout << " (2) Transmission Fluid Change                      $69.95" << endl;
  17. cout << " (3) Wiper blades Replacement                       $9.95 " << endl;
  18. cout << " (4) Windscreen Water Repellant Application         $14.95" << endl;
  19. cout << " (5) Battery Check                                  $14.95" << endl;
  20. cout << " (6) Battery Replacement[Service Only]              $14.95" << endl;
  21. cout << " (7) Tire Rotation                                  $19.95" << endl;
  22. cin>>service;
  23.  
  24. if (service==1){
  25.         total = (29.95)+(29.95/100)*(9);
  26.     cout<< "Thank you for choosing QuickLube your total is  $" << total << endl;
  27.     }
  28.  
  29. if (service==2){
  30.  
  31.     total= (69.95)+(69.95/100)*(9);
  32.     cout << "Thank you for choosing QuickLube your total is  $" << total << endl;
  33. }
  34. if (service==3){
  35.  
  36.     total= (9.95)+(9.95/100)*(9);
  37.     cout << "Thank you for choosing QuickLube your total is  $" << total << endl;
  38. }
  39. if (service==4){
  40.  
  41.     total= (14.95)+(14.95/100)*(9);
  42.     cout << "Thank you for choosing QuickLube your total is  $" << total << endl;
  43. }
  44. if (service==5){
  45.  
  46.     total= (14.95)+(14.95/100)*(9);
  47.     cout << "Thank you for choosing QuickLube your total is  $" << total << endl;
  48. }
  49.  
  50. if (service==6){
  51.  
  52.     total= (14.95)+(14.95/100)*(9);
  53.     cout << "Thank you for choosing QuickLube your total is  $" << total << endl;
  54. }
  55. if (service==7){
  56.  
  57.     total= (19.95)+(19.95/100)*(9);
  58.     cout << "Thank you for choosing QuickLube your total is  $" << total << endl;
  59. }
  60.  
  61. cout << "Would you like to add more services?" << endl;
  62. cin >> service;
  63.  
  64.  
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement