write a program to calculate elecricity bill.
if the units consumed are equal or less 100 then the cost of per unit is 4.540,if units consumed are more than 100 then the cost is 6.860 per units
1
Expert's answer
2011-10-28T08:08:56-0400
#include <iostream.h> #include <conio.h> float U,P; main(){ cout<<"Enter units consumed:" cin>>U; if (U<=100) P=U*4.540; if (U>=100) P=U*6.860; cout<<"Price of consumed units is "<<P; getch(); }
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment