Write a program to calculate the monthly telephone bills as per the following rule: Minimum Rs. 200 for upto 100 calls. Plus Rs. 0.60 per call for next 50 calls. Plus Rs. 0.50 per call for next 50 calls. Plus Rs. 0.40 per call for any call beyond 200 calls

Write a program to calculate the monthly telephone bills as per the following rule:
Minimum Rs. 200 for upto 100 calls.
Plus Rs. 0.60 per call for next 50 calls.
Plus Rs. 0.50 per call for next 50 calls.
Plus Rs. 0.40 per call for any call beyond 200 calls.


#include<iostream>
using namespace std;

int main()
{
int c,b1;
float b2,b3,b4;
cout<<"\t * Calls Bill Calculator * "<<endl;
cout<<"\n";
cout<<"Enter the Number of Calls"<<endl;
cin>>c;
b1=200;
b2=200+(0.60*c);
b3=200+(0.60*c)+(0.50*c);
b4=200+(0.60*c)+(0.50*c)+(0.40*c);
if (c<=100)
{
cout<<"\n";
cout<<"Your Total Bill is "<<b1<<endl;
} else if (c>100 && c<=150)
{
cout<<"\n";
cout<<"Your Total Bill is "<<b2<<endl;
} else if (c>150 && c<=200)
{
cout<<"\n";
cout<<"Your Total Bill is "<<b3<<endl;
}
else
{
cout<<"\n";
cout<<"Your Total Bill is "<<b4<<endl;
}
}


Write a program to calculate the monthly telephone bills as per the following rule:  Minimum Rs. 200 for upto 100 calls.  Plus Rs. 0.60 per call for next 50 calls.  Plus Rs. 0.50 per call for next 50 calls.  Plus Rs. 0.40 per call for any call beyond 200 calls

Write a program to calculate the monthly telephone bills as per the following rule:  Minimum Rs. 200 for upto 100 calls.  Plus Rs. 0.60 per call for next 50 calls.  Plus Rs. 0.50 per call for next 50 calls.  Plus Rs. 0.40 per call for any call beyond 200 calls

Write a program to calculate the monthly telephone bills as per the following rule:  Minimum Rs. 200 for upto 100 calls.  Plus Rs. 0.60 per call for next 50 calls.  Plus Rs. 0.50 per call for next 50 calls.  Plus Rs. 0.40 per call for any call beyond 200 calls

Write a program to calculate the monthly telephone bills as per the following rule:  Minimum Rs. 200 for upto 100 calls.  Plus Rs. 0.60 per call for next 50 calls.  Plus Rs. 0.50 per call for next 50 calls.  Plus Rs. 0.40 per call for any call beyond 200 calls