107 285
Assignments Done
97.9%
Successfully Done
In March 2023

# Answer to Question #4187 in C++ for kuldeep

Question #4187
An electricity board charges according to following rates:
For the first 100 units-40paise per unit
For the next 200 units-50 paise per unit
Beyond 300 units-60 paise per unit.
All users are charged meter charge also which is Rs 50.
Write a program to read the name of users and number of units consumed, and print out the charges with names.
1
2011-09-30T10:20:43-0400
#include <iostream.h>
#include <conio.h>
void
main()
{
clrscr();
char name[25];
float
units,tc;
cout<<"Electricity Board Charges\n";
enter user name : ";
cin>>name;
of units consumed:-";
cin>>units;

if(units<=100)

tc=units*0.40;
elseif(units<=300)
tc=units*0.50;
else

tc=units*0.60;

float total_cost = tc + 50;

cout<<"\nYour
bill amount:& "<<total_cost;

getch();
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Assignment Expert
28.06.19, 09:10

27.06.19, 21:02

Kesa has changed RS as per unit consumption is one month as per the following condition- 1) unit>=200-> 0.50 paise/unit 2) unit>100 and unit 0.60 per/unit 3) unit> 50 and unit0.70 per/unit 4) otherwise 0.8 per/unit Note- 50 RS meter changes will also add. Plz solve

Assignment Expert
17.08.12, 15:52