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
Expert's answer
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"; cout<<"\nPlease enter user name : "; cin>>name; cout<<"\n\nPlease enter number of units consumed:-"; cin>>units;
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
You're welcome. We are glad to be helpful. If you really liked our
service please press like-button beside answer field. Thank you!
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Dear Aditi, please use panel for new questions.
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
You're welcome. We are glad to be helpful. If you really liked our service please press like-button beside answer field. Thank you!
thankzz bro