please i need  this code Flowchart // for residental const double Bill_Proc_For_Res=4.5; const double Service_For_Res=20.5; const double Prem_Ch_For_Res=7.5; // for business const double Bill_Proc_For_Bus=15; const double Service_For_First10=75; const double Service_For_Add=5; const double Prem_Ch_For_Bus=50; int main() { int Accunt_Num; char Costomer_Code; int Num_OF_Prem_Ch; int Num_OF_Connectors; double Total_bill; cout << "Enter Ur Account number" << endl; cin >> Accunt_Num; cout << "Enter Ur Costomer Code" << endl; cout << "R || r for residental" << endl; cout << "B || b for business" << endl; cin >> Costomer_Code; cout << "Enter How many premiume channel U want" << endl; cin >> Num_OF_Prem_Ch; if (Costomer_Code == 'R' || Costomer_Code == 'r') { Total_bill = Bill_Proc_For_Res + Service_For_Res + (Num_OF_Prem_Ch*Prem_Ch_For_Res); cout << "Ur account Number is: " << Accunt_Num << endl; cout << "The total bill is =  " << Total_bill << endl; } else if (Costomer_Code == 'B' || Costomer_Code == 'b') { cout << "Enter how many connectors U want? " << endl; cin >> Num_OF_Connectors; if (Num_OF_Connectors <= 10) { Total_bill = Bill_Proc_For_Bus + Service_For_First10 + (Prem_Ch_For_Bus*Num_OF_Prem_Ch); cout << "Ur account Number is: " << Accunt_Num << endl; cout << "The total bill is =  " << Total_bill << endl;     } else { Total_bill = Bill_Proc_For_Bus + Service_For_First10 + ((Num_OF_Connectors-10)*Service_For_Add) + (Prem_Ch_For_Bus*Num_OF_Prem_Ch); cout << "Ur account Number is: " << Accunt_Num << endl; cout << "The total bill is =  " << Total_bill << endl; } } else  cout << "Error The costumer code is wrong" << endl; return 0;

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

please i need  this code Flowchart

// for residental
const double Bill_Proc_For_Res=4.5;
const double Service_For_Res=20.5;
const double Prem_Ch_For_Res=7.5;

// for business
const double Bill_Proc_For_Bus=15;
const double Service_For_First10=75;
const double Service_For_Add=5;
const double Prem_Ch_For_Bus=50;


int main()
{
int Accunt_Num;
char Costomer_Code;
int Num_OF_Prem_Ch;
int Num_OF_Connectors;
double Total_bill;

cout << "Enter Ur Account number" << endl;
cin >> Accunt_Num;

cout << "Enter Ur Costomer Code" << endl;
cout << "R || r for residental" << endl;
cout << "B || b for business" << endl;
cin >> Costomer_Code;

cout << "Enter How many premiume channel U want" << endl;
cin >> Num_OF_Prem_Ch;

if (Costomer_Code == 'R' || Costomer_Code == 'r')
{
Total_bill = Bill_Proc_For_Res + Service_For_Res + (Num_OF_Prem_Ch*Prem_Ch_For_Res);
cout << "Ur account Number is: " << Accunt_Num << endl;
cout << "The total bill is =  " << Total_bill << endl;
}
else if (Costomer_Code == 'B' || Costomer_Code == 'b')
{
cout << "Enter how many connectors U want? " << endl;
cin >> Num_OF_Connectors;
if (Num_OF_Connectors <= 10)
{
Total_bill = Bill_Proc_For_Bus + Service_For_First10 + (Prem_Ch_For_Bus*Num_OF_Prem_Ch);
cout << "Ur account Number is: " << Accunt_Num << endl;
cout << "The total bill is =  " << Total_bill << endl;
    }
else
{
Total_bill = Bill_Proc_For_Bus + Service_For_First10 + ((Num_OF_Connectors-10)*Service_For_Add) + (Prem_Ch_For_Bus*Num_OF_Prem_Ch);
cout << "Ur account Number is: " << Accunt_Num << endl;
cout << "The total bill is =  " << Total_bill << endl;
}
}
else 
cout << "Error The costumer code is wrong" << endl;


return 0;
}

Expert Solution
steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education