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;
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;
}
Step by step
Solved in 5 steps with 3 images