C++ PROGRAM TO FIND THE CUSTOMER ELECTRICITY BILL DETAILS BASED ON CUSTOMER TYPE

#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(); } 143,386 total views,…

143,386 total views, 622 views today

Read More