Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main ()
- {
- float service;
- float total;
- cout << "Welcome to QuickLube !" << endl;
- cout << "Choose the service you wish to order with us today" << endl;
- cout << " " << endl;
- cout << " (1) Oil Change $29.95" << endl;
- cout << " (2) Transmission Fluid Change $69.95" << endl;
- cout << " (3) Wiper blades Replacement $9.95 " << endl;
- cout << " (4) Windscreen Water Repellant Application $14.95" << endl;
- cout << " (5) Battery Check $14.95" << endl;
- cout << " (6) Battery Replacement[Service Only] $14.95" << endl;
- cout << " (7) Tire Rotation $19.95" << endl;
- cin>>service;
- if (service==1){
- total = (29.95)+(29.95/100)*(9);
- cout<< "Thank you for choosing QuickLube your total is $" << total << endl;
- }
- if (service==2){
- total= (69.95)+(69.95/100)*(9);
- cout << "Thank you for choosing QuickLube your total is $" << total << endl;
- }
- if (service==3){
- total= (9.95)+(9.95/100)*(9);
- cout << "Thank you for choosing QuickLube your total is $" << total << endl;
- }
- if (service==4){
- total= (14.95)+(14.95/100)*(9);
- cout << "Thank you for choosing QuickLube your total is $" << total << endl;
- }
- if (service==5){
- total= (14.95)+(14.95/100)*(9);
- cout << "Thank you for choosing QuickLube your total is $" << total << endl;
- }
- if (service==6){
- total= (14.95)+(14.95/100)*(9);
- cout << "Thank you for choosing QuickLube your total is $" << total << endl;
- }
- if (service==7){
- total= (19.95)+(19.95/100)*(9);
- cout << "Thank you for choosing QuickLube your total is $" << total << endl;
- }
- cout << "Would you like to add more services?" << endl;
- cin >> service;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement