You are required to draw a flow chart diagram and add  some comment to the cod  #include #include #include using namespace std; int main(){ //for prointing welcome message cout<<"------------------------------"<>customer_name; cout<<"Car plate number :"; cin>>car_plate_number; cout<<"Are you membership (y/n): "; cin>>membership; cout<<"Details services charges are as follow:"<>choice_service; cout<<"\n Service need :";switch(choice_service) { case 1: cout<<"Basic Tuning = 50 OMR"<

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

You are required to draw a flow chart diagram and add  some comment to the cod 

#include<iostream>
#include <string>
#include<conio.h>
using namespace std;
int main(){
//for prointing welcome message
cout<<"------------------------------"<<endl;
cout<<" Welcome to Muscat Auto Workshop"<<endl;
cout<<"---------------------------------"<<endl;
cout<<"*Please provide your name & car plate number & membership status(Y/N) *"<<endl;
string customer_name,car_plate_number;
int choice_service,discount;
char membership;
double total;
cout<<"Customer`s Name :";
cin>>customer_name;
cout<<"Car plate number :";
cin>>car_plate_number;
cout<<"Are you membership (y/n): ";
cin>>membership;
cout<<"Details services charges are as follow:"<<endl;
cout<<"*1- Basic Tuning: 50 OMR *"<<endl;
cout<<"*2- Software Re-installation: 60 OMR *"<<endl;
cout<<"*3- Parts Replacement: 100 OMR*"<<endl;
cout<<"*4- Body Paint: 120 OMR*"<<endl;
cout<<"Enter th name of service you need (1 / 2 / 3 / 4):"<<endl;
cin>>choice_service;

cout<<"\n Service need :";switch(choice_service)
{
case 1:

cout<<"Basic Tuning = 50 OMR"<<endl;
switch(membership)
case 'y':
discount=50*0.1;
cout<<"Membership discount = "<<discount<<endl;
total=50-discount;
cout<<"Total fee = "<<total<<endl;
break;
switch (membership)
case 'n' :
cout<<"total fee = 50 OMR";

 


case 2:
cout<<"Software Re-installation = 60 OMR"<<endl;
switch(membership)
case 'y':
discount=60*0.1;
cout<<"Membership discount = "<<discount<<endl;
total=60-discount;
cout<<"Total fee = "<<total<<endl;
break;
switch(membership)
case 'n' :
cout<<"total fee = 60 OMR";{
case 3:
cout<<"Parts Replacement = 100 OMR"<<endl;
switch(membership)
case 'y':
discount=100*0.1;
cout<<"Membership discount = "<<discount<<endl;
total=100-discount;
cout<<"Total fee = "<<total<<endl;
break;
switch(membership)
case 'n' :
cout<<"total fee = 100 OMR";}

{
case 4:
cout<<"Body Paint: = 120 OMR"<<endl;
switch(membership)
case 'y':
discount=120*0.1;
cout<<"Membership discount = "<<discount<<endl;
total=120-discount;
cout<<"Total fee = "<<total<<endl;
break;
switch(membership)
case 'n' :
cout<<"total fee = 120 OMR";
}

 

}
getch();
}

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY