#include<iostream.h>
#include<conio.h>
void main()
{
int mno,pres,prev,nounits,ctype;
float rpu,tbill;
clrscr();
cout<<“enter mno,pres,prev readings:”;
cin>>mno>>pres>>prev;
nounits=pres-prev;
cout<<“enter ctype:”;
cin>>ctype;
if(ctype==1)
{
rpu=1.00;
}
if(ctype==2)
{
rpu=2.00;
}
if(ctype==3)
{
rpu=3.00;
}
if(ctype==4)
{
rpu=4.00;
}
if(ctype==5)
{
rpu=5.00;
}
tbill=nounits*rpu;
cout<<“\n pres reading=”<<pres;
cout<<“\n prev reading=”<<prev;
cout<<“\n nounits=”<<nounits;
cout<<“\n rpu=”<<rpu;
cout<<“\n tbill=”<<tbill;
getch();
}

29,968 total views, 4 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.

2,143 Thoughts to “C++ PROGRAM TO FIND THE CUSTOMER ELECTRICITY BILL DETAILS BASED ON CUSTOMER TYPE”

  1. hi!,I really like your writing very so much! share we be in contact extra approximately your article on AOL? I require a specialist on this area to resolve my problem. Maybe that is you! Having a look forward to look you. |

Leave a Comment