PROGRAM CODE

#include<iostream.h>
#include<conio.h>
#include<process.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<fstream.h>
#include<iomanip.h>

Int flag=0;
ofstream fout;
ifstream fin;

class tbill
{
public :
float fixamount1,fixamount2,fixamount3,natroamom,natroamim;
float natroamor,natroamir,stdrate,stdmin,smsr;
float gprsrate,gprskb,mmsr;
int sms,mms,billid;
float interroami,interroamir,interroamo,interroamor,misc,grandtotal,isdrate,isdmin;
void ent();
void sho();
void edi();
void cal();
int ret()

{
return(billid);
}}x;

void tbill::cal()
{
x.natroamor = x.natroamom*2;
x.natroamir = x.natroamim*2.5;
x.interroamor=x.interroamo*15;
x.interroamir=x.interroami*17;
x.gprsrate=x.gprskb*0.10;
x.smsr=x.sms*0.50;
x.mmsr=x.mms*3;
x.stdrate=x.stdmin*1;
x.isdrate=x.isdmin*8;
x.grandtotal=x.natroamor + x.natroamir + x.interroamor + x.interroamir +
x.gprsrate + x.smsr +
x.mmsr + x.stdrate + x.isdrate + x.misc;
}

void tbill::edi()
{
clrscr();
sho();
cout<<endl<<"=========================================
===============================";
cout<<endl<<"\t

Press Any Key To Continue

";

cout<<endl<<"=========================================
===============================";
getch();
clrscr();
sho();
cout<<endl<<"=========================================
===============================";
cout<<endl<<"

Edit What?????

";

cout<<endl<<"=========================================
===============================";
cout<<endl;
cout<<"1. Incoming Calls\t\t\t6. No of MMS"<<endl;
cout<<"2. No of SMS\t\t\t\t7. ISD Calls\t\t"<<endl;
cout<<"3. Roaming Incoming Calls\t\t8. International Roaming Incoming"<<endl;
cout<<"4. Roaming Outgoing Calls\t\t9. International Roaming Outgoing"<<endl;
cout<<"5. GPRS Usage ( in Kb )\t\t\t10. Miscellaneous Charges "<<endl;
cout<<"=============================================
================================";
cout<<endl<<"Enter Choice

: ";

int ch;
pp :
cin>>ch;
if(ch==1)
{
cout<<"Enter Incoming Calls min
cin>>x.stdmin;
}
if(ch==2)

: ";

natroamom. } if(ch==3) { cout<<"Enter Roaming in : ". cin>>x. } if(ch==6) { cout<<"Enter MMS no cin>>x. .natroamim.sms. cin>>x. } if(ch==7) { : ". } if(ch==5) { cout<<"Enter GPRS Usage cin>>x.mms. } if(ch==4) { cout<<"Enter Roaming out : ".{ cout<<"Enter SMS : ". : ". cin>>x.gprskb.

interroamo. cin>>x. } cal(). } if(ch==9) { cout<<"Enter ISD Roamout : ".misc.sizeof(x)).write((char *)&x. } if(ch==10) { cout<<"Enter Misc Charge : ". fout. cin>>x. cin>>x. } if((ch>10)||(ch==0)) { cout<<"\n\t\t\t\tInvalid Choice !!!!!"<<endl<<"\t\t\t\t". cin>>x.interroami.isdmin. } .cout<<"Enter ISD Min : ". } if(ch==8) { cout<<"Enter ISD Roam in : ". goto pp.

cout<<endl<<" Roaming Outgoing Calls (mts): ".mms. cin>>x. cout<<endl<<" Miscellaneous Charges cin>>x. cout<<endl<<" Inter Roaming Outgoing (mts): ". cin>>x.sms.natroamim. cin>>x. fout. cin>>x. cout<<endl<<" ISD Calls (mts) : ".interroamo. cout<<endl<<" Inter Roaming Incoming (mts): ".misc. cout<<endl<<" No of MMS : ". cin>>x. : ".void tbill::ent() { cout<<endl<<" Incoming Calls (mts) : ". cin>>x. cout<<endl<<" No of SMS : ".close(). cin>>x.sizeof(x)). cout<<endl<<" GPRS Usage ( in Kb ) : ".interroami. cin>>x.isdmin.stdmin.natroamom.write((char *)&x.gprskb. cout<<endl<<" Roaming Incoming Calls (mts): ". cal(). . cin>>x. fout.

stdrate. cout<<"\t\t"<<x. cout<<"\t\t"<<x.natroamor. cout<<"============================================= ================================". cout<<endl<<"\t\t Roaming Outgoing Calls ". cout<<"\t"<<x. cout<<"\t"<<x. cout<<endl<<endl<<"\t\t GPRS Usage ( in Kb ) cout<<"\t"<<x.natroamom.smsr. cout<<"\t"<<"AMOUNT".natroamim. ". cout<<"\t\t"<<x.stdmin. cout<<"\t"<<x.".} void tbill::sho() { cout<<"============================================= ================================".gprsrate. .gprskb. cout<<endl. cout<<"\t\t"<<x. cout<<"\t\t cout<<"\t"<<" CALLS ". MINUTES/No.natroamir. cout<<"\t"<<x. cout<<endl<<"\t\t Incoming Calls ".sms. cout<<endl<<"\t\t No of SMS ". cout<<"\t\t"<<x. cout<<endl<<"\t\t Roaming Incoming Calls ".

interroamo. cout<<endl<<endl<<"\t\t ISD Calls ". cout<<"\t\t"<<x. char name[50]. cout<<endl<<endl<<"\t\t | Total Charges | cout<<"\t\t\t"<<x.misc.address[50]. cout<<endl<<"\t\t Miscellaneous Charges ". cout<<endl<<"\t\t Inter Roaming Incoming ". cout<<"\t"<<x.city[50]. cout<<"\t"<<x. cout<<"\t\t"<<x.isdmin. cout<<"\t\t"<<x.mms.pcode.acno.grandtotal. cout<<"\t"<<x. cout<<"\t\t\t"<<x.cout<<endl<<"\t\t No of MMS ". cout<<"\t\t"<<x.isdrate.interroami. } class customer { long phno.mmsr. ". cout<<endl<<"\t\t Inter Roaming Outgoing ".interroamor. cout<<"\t"<<x.interroamir. .

}}a. cout<<"\t\t\t\t Edit What ?????? "<<endl. cout<<"============================================= ================================". cout<<endl<<"\t1. cout<<"============================================= ================================". void scustdet(). void edcustdet().Address 3. void customer::edcustdet() { clrscr(). int ch. void dcustdet().public : long id. . cout<<"============================================= ================================". scustdet(). cout<<"\t\t\t Current Customer Details"<<endl. void ecustdet().Street 4. int ret() { return(id). cout<<"============================================= ================================".A/c no "<<endl.Ph no 6.Name 2.Pin Code 5.

cin>>a.cout<<"============================================= ================================". } if(ch==2) { cout<<"\n\t\t\t\tEnter Address : ". gets(a. gets(a.name). gets(a. } if(ch==4) { cout<<"\n\t\t\t\tEnter Pincode : ".address). if(ch==1) { cout<<"\n\t\t\t\tEnter Name : ".pcode. } if(ch==3) { cout<<"\n\t\t\t\tEnter Street : ". } if(ch==5) { .city). cin>>ch. pp : cout<<endl<<"\t\t\t\tEnter Option : ".

ios::binary).cout<<"\n\t\t\t\tEnter Phone No : ".phno. cin>>a. cin>>id.dat".open("customer. } fout.seekg(0). while(!fin. ret : fin. goto pp.sizeof(a)). } void customer::ecustdet() { int id.eof()) { .acno. cin>>a.write((char *)&a. fin. cout<<endl<<"Enter Customer id : ". } if(ch==6) { cout<<"\n\t\t\t\tEnter A/C no : ". } if((ch>6)||(ch==0)) { cout<<"\n\t\t\t\tInvalid Choice !!!!!"<<endl<<"\t\t\t\t".

gets(a. fin..acno. } : ".close(). gets(a.pcode. fout. . cout<<endl<<"Enter Street : ".CHOSE ANY OTHER ID \n\n".close(). cin>>a.phno.read((char*)&a.sizeof(a)). } } fin. fout.fin.name).sizeof(a)). cout<<endl<<"Enter Phone No : ".city). cout<<endl<<"Enter Address : ".ret(). cin>>a.write((char *)&a. gets(a.. cout<<endl<<"Enter Name : ".. int x=a. cout<<endl<<"Enter A/C no cin>>a. cout<<endl<<"Enter Pincode : ". a.id=id. goto ret.address).close().. if(x==id) { cout<<"\n\n\t\tERROR!!! ID ALREADY TAKEN.

cout<<endl<<"\tPincode : ". cout<<endl<<"\tAddress : ".name). .pcode<<endl. int ch. cout<<"\t\t\t\t\t\t"<<"Phone No : ".5). cout<<endl<<"\tStreet : ". cout<<"\t\t\t\t\t\t"<<"ID NO : ". cout<<a.acno. } void main() { clrscr(). cout<<a.city). cout<<"\t\t\t\t\t\t"<<"A/C no cout<<a.cid. puts(a. : ". puts(a.id. cout<<a.void customer::scustdet() { cout<<endl<<"\tName : ".phno.address). puts(a. y: gotoxy(1.

int op=0.cout<<"============================================= ================================". gotoxy(35.25). cout<<"1) ENTER CUSTOMER DATABASE". gotoxy(27. cout<<"TELEPHONE BILLER". cout<<"2) ENTER BILL DATABASE". cout<<endl<<" Enter Your Choice : ".10). gotoxy(27. cout<<"4) EXIT FROM PROGRAM"<<endl<<endl. gotoxy(1. cout<<"============================================= ================================". cout<<"============================================= ================================".6). switch(ch) { case 1: clrscr(). gotoxy(32. cout<<endl.19). cin>>ch.16). cout<<"3) ENTER BILLING DETAILS". gotoxy(27. cout<<"============================================= ================================". gotoxy(27.22). .13).

cout<<endl<<endl. cout<<endl<<" Enter Your Choice cin>>op. cout<<"\t\t\t ================". cout<<"\t\t\t CUSTOMER SECTION". cout<<endl<<endl<<endl.x: clrscr(). cout<<"\t\t\t\t4) VIEW \n\n". : ". cout<<"**************************************************************************** *". cout<<"\t\t\t\t2) EDIT\n\n". cout<<"**************************************************************************** *". . cout<<"\t\t\t\t5) BACK to MAIN". cout<<"\t\t\t\t3) DELETE\n\n". cout<<endl<<endl<<endl. cout<<endl. cout<<endl. cout<<"\t\t\t\t1) ADD\n\n". if(op==1) { clrscr().

cout<<"============================================= ==========================". cout<<endl.ios::binary|ios::app). cout<<endl. getch(). int r=0.open("customer. cout<<"\t\t\tCUSTOMER ADDED SUCCESSFULLY".dat". clrscr(). a. cout<<"============================================= ==========================". cout<<"============================================= ==========================". cout<<"\t\t\tYOU HAVE CHOSEN TO ADD CUSTOMER". goto x.ecustdet(). } if(op==2) { flag=0. . clrscr(). fout. cout<<endl<<endl. cout<<endl<<endl.cout<<”============================================= ==========================".

cout<<"============================================= ================================". } fin. if(x==cid) : ". if(!fin. goto x. if(!fin) { cout<<"\n\nFile Not Found. fout.dat". cout<<endl.dat".sizeof(a)). cout<<"\n\n\n\n\n\n\n\n\n\t\t Enter CUSTOMER id to be EDITED cin>>cid.".ios::binary|ios::app).eof()) { r++.. clrscr(). .open("customer.eof()) { int x=a.seekg(0). cout<<endl. cout<<endl.read((char*)&a.open("customer.ret(). cout<<"\t\t\tYou Have chosen to EDIT CUSTOMER". while(!fin.ios::binary). fin. cout<<"============================================= ================================". fin..

a.{ flag=1. fin..close().. cout<<"============================================= ================================". cout<<"============================================= ================================".close(). clrscr(). getch(). goto x. clrscr(). cout<<endl.". }} if(op==3) { flag=0. }}} if(flag==0) {cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tCUSTOMER DOESNOT EXIST. goto x. . fin. cout<<"\t\t\tCUSTOMER EDITED SUCCESSFULLY". clrscr().seekp((r-1)*sizeof(a)).close().edcustdet(). getch(). fout. fout.

fin.seekg(0). if(x!=cid) tmp.".. cin>>cid. sizeof(a))) { int x=a. goto x.ios::binary|ios::out).sizeof(a)).} fstream tmp("temp. cout<<"\t\t\tYou Have chosen to DELETE CUSTOMER".ios::binary). cout<<"============================================= ==========================". cout<<endl<<endl. char sure. : .ret().write((char*)&a. else { flag=1. fin.open("customer. while(fin. clrscr(). cout<<"\n\n\n\n\n\n\n\n\n\t\t Enter CUSTOMER id to be DELETED ".dat".dat".read((char*)&a.cout<<"============================================= ==========================". if(!fin) { cout<<"\n\nFile Not Found..

fin.dat". cout<<endl<<"\n\n\n\n\n\n\n\t\tEnter 'y' for YES or ANY other key for cancel :". tmp. }}} clrscr().close(). a. goto x.open("temp.dat". cout<<"============================================= ==========================".scustdet().seekp(0).ios::binary|ios::in).ios::trunc|ios::binary). fout. if(sure!='y') { clrscr(). tmp. cout<<"============================================= ==========================".close(). cin>>sure. fout. cout<<"\t\t\tAre You SURE You Want To DELETE This".open("customer.cout<<"============================================= ==========================". cout<<endl<<endl. if(!tmp) . tmp. fin.close().close().

{ cout<<"Error in File".read((char*)&a. cout<<"\t\t\tCUSTOMER DELETED SUCCESSFULLY".write((char*)&a. if(flag==1) { clrscr(). cout<<"============================================= ==========================".close().dat".". fin.id=-32. if(!fin) { cout<<"\n\nFile Not Found. . cout<<endl<<endl.sizeof(a)). getch(). cout<<"============================================= =========================="..ios::binary). goto x. fout.open("bill. cout<<endl.sizeof(a))) fout.close(). flag=0.} while(tmp. a.. tmp. goto x.

read((char*)&x.seekg(0). if(zx!=cid) tmp. getch().ios::trunc|ios::binary).close(). goto x. fin.ret().seekp(0). } while(tmp.ios::binary|ios::in).} fstream tmp("temp.open("bill.ios::binary|ios::out). while(fin. fout. x.dat". sizeof(x))) { int zx=x. fin.close().open("temp.read((char*)&x. fout. }} tmp.write((char*)&x. tmp.write((char*)&x.dat". else { flag=1. .sizeof(x)).billid=-32. if(!tmp) { cout<<"Error in File".sizeof(x))) fout.dat".sizeof(x)).

} clrscr().. getch()."..} if(flag==0) { cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tCUSTOMER DOESNOT EXIST.tmp.. if(flag==1) { clrscr(). fout... goto x...close(). goto x.close(). clrscr().close(). goto x.". getch().. fin... . clrscr()..". fin. getch(). clrscr(). } if(flag==0) { cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tNO BILL FOUND TO DELETE.close().. cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tBILL OF THIS CUSTOMER ALSO DELETED.

ios::binary). cout<<"============================================= ================================". cout<<"\n\n\n\n\n\n\n". while(!fin.eof()) { fin. }} if(op==4) { flag=0. goto x. . if(!fin) { cout<<"\n\nFile Not Found.dat". clrscr(). fin. } fin..open("customer.goto x. : ". clrscr(). cout<<"============================================= ================================". cout<<"\n\n\n\n\n\n\n\n\n\t\t Enter CUSTOMER id to be VIEWED cin>>cid. cout<<endl.. cout<<endl<<endl. cout<<"\t\t\tYou Have chosen to VIEW CUSTOMER".read((char*)&a.".seekg(0).sizeof(a)).

} . goto x.close(). getch().. }} if(op==5) { clrscr().. }} if(flag==0) { clrscr(). if(x==cid) { flag=1. cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tCUSTOMER DOESNOT EXIST. clrscr(). getch().close(). fin. fin.scustdet().". clrscr(). a. goto y.int x=a. goto x.ret().

cout<<"============================================= ================================". cout<<"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ". . z: clrscr(). goto x. cout<<"\t\t\t\t1) ADD \n\n". cout<<"============================================= ================================". int sel. cout<<endl. cout<<"\t\t\tINVALID CHOICE TRY AGAIN ". cout<<endl<<endl. } break. cout<<endl. cout<<"\t\t\t\tBILLING SECTION". case 2: clrscr().if((op>5)||(op==0)) { clrscr(). cout<<endl<<endl. cout<<"\t\t\t\t================". cout<<endl<<endl<<endl. cout<<endl.

cin>>sel. cout<<endl<<endl<<endl.dat". cout<<"\n\n\n\t\tEnter CUSTOMER id to ADD BILL : ". cout<<"\t\t\t\t5) BACK to MAIN". cout<<"============================================= ==========================". cout<<"============================================= =========================". cin>>cid. if(!fin) .open("customer. cout<<"============================================= ==========================". cout<<"\t\t\tYou Have Chosen To ADD BILL".cout<<"\t\t\t\t2) EDIT \n\n". if(sel==1) { rett : clrscr(). cout<<endl<<endl. cout<<"\t\t\t\t3) DELETE\n\n". cout<<"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ". cout<<endl<<" ENTER YOUR CHOICE : ". cout<<"\t\t\t\t4) SHOW \n\n".ios::binary). cout<<endl. fin. flag=0.

". fin. while(!fin.read((char*)&a. goto z. goto bill.sizeof(a)). }} if(flag==0) { clrscr().".. a. goto z.. } bill : . if(x==cid) { flag=1.eof()) { fin.{ cout<<"\n\nFile Not Found. cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tCUSTOMER DOESNOT EXIST.. getch().seekg(0)..close(). fin.scustdet(). } fin. int x=a. clrscr().close().ret().

open("bill. goto rett.seekg(0). flag=0.open("bill. fin.ent(). clrscr().billid=cid. cout<<"\n\n\n\n\n\n\n\n\n\n\n\t\t\t CUSTOMER ALREADY BILLED !!!!!\n\n".read((char*)&x.ret(). while(!fin. int xp=x.close().fin. fout. if(xp==cid) { clrscr(). getch(). cout<<endl. x. cout<<"============================================= ==========================". cout<<endl<<endl.sizeof(x)).ios::binary).dat".dat". .ios::binary|ios::app). cout<<"\t\t\tBILL ADDED SUCCESSFULLY". x. }} fin. fin.close().eof()) { fin.

} if(sel==2) { flag=0. goto z. cout<<endl.dat"..open("customer. clrscr().. getch(). cout<<endl. if(!fin) { cout<<"\n\nFile Not Found.cout<<"============================================= ==========================".". int r=0. cout<<"\n\n\n\n\n\n\n\n\n\t\t Enter CUSTOMER id to EDIT BILL cin>>cid. clrscr(). fin. .ios::binary). cout<<"============================================= ================================". cout<<"\t\t\tYou Have chosen to EDIT BILL". cout<<endl. goto z. cout<<"============================================= ================================".} : ".

getch().. . goto z.fin.ret().".". clrscr().scustdet(). while(!fin.eof()) { fin. fin. if(x==cid) { flag=1. fin.close().sizeof(a)). clrscr(). a. int x=a. cout<<"\n\n\tPress Any Key To Continue Editing Bill of This Customer. cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tCUSTOMER DOESNOT EXIST. getch()...close().. }} if(flag==0) { clrscr().seekg(0). goto bill2.read((char*)&a. } bill2 : flag=0.

while(!fin. fin.eof()) { r++. cout<<"============================================= ================================".close(). fin.". x. if(!fin) { cout<<"\n\nFile Not Found.dat"..edi().sizeof(x)).close().read((char*)&x.ios::binary|ios::app).ret(). cout<<"\t\t\tBILL Edited SUCCESSFULLY". fout. clrscr(). if(kkx==cid) { flag=1.. fout.eof()) { int kkx=x. } fin. if(!fin. . fout.seekg(0). cout<<endl.open("bill.ios::binary).fin.dat".open("bill.seekp((r-1)*sizeof(x)). goto z.

. }} if(sel==3) { flag=0..close(). cout<<"============================================= ==========================". cout<<"\n\n\n\n\n\n\n\n\n\t\t ". char sure. getch(). clrscr(). cout<<endl<<endl. getch(). goto z.... }}} if(flag==0) { cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tBILL DOESNOT EXIST.". Enter CUSTOMER id to DELETE BILL : . cout<<"============================================= ==========================". cout<<"\t\t\tYou Have chosen to DELETE BILL". clrscr().cout<<"============================================= ================================". cin>>cid. goto z. fin.

sizeof(a)). }} if(flag==0) { clrscr()."..eof()) { fin. goto z. fin.ret().scustdet(). fin. a.. goto bill3.dat". clrscr().read((char*)&a.clrscr(). cout<<"\n\n\tPress Any Key To Continue Deleting Bill of This Customer. getch()..close(). cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tCUSTOMER DOESNOT EXIST. if(x==cid) { flag=1.. if(!fin) { cout<<"\n\nFile Not Found.} fin.seekg(0).". getch(). .. while(!fin. int x=a.ios::binary)..open("customer.".

if(!fin) { cout<<"\n\nFile Not Found.write((char*)&x..seekg(0). goto z. if(zx!=cid) tmp.sizeof(x)). } bill3 : flag=0.read((char*)&x. fin.ios::binary). clrscr().. cout<<"============================================= ==========================". goto z. while(fin.close().dat".open("bill.} fstream tmp("temp.fin. cout<<"\t\tAre You Sure You Want To DELETE This???????". cout<<endl. else { flag=1.ios::binary|ios::out). . clrscr(). fin.dat".ret(). sizeof(x))) { int zx=x.".

ios::binary|ios::in).open("temp. fout.dat". cin>>sure.close().ios::trunc|ios::binary). fout. fin. } . x. cout<<endl<<"========================================= ========================". tmp.open("bill.close(). fin. if(sure!='y') { clrscr().seekp(0).cout<<"============================================= ==========================". tmp.close().billid=-32. goto z.close(). tmp.dat". x. if(!tmp) { cout<<"Error in File". }}} clrscr(). goto z.sho(). cout<<"\n\t\tEnter 'y' for YES or ANY other key for CANCEL :".

while(tmp. cout<<endl.read((char*)&x.close().close().. fin.sizeof(x))) fout. .close(). cout<<"============================================= ==========================". fout. cout<<"============================================= ==========================".sizeof(x)). tmp..write((char*)&x. goto z. clrscr().. getch(). cout<<"\t\t\tBILL DELETED SUCCESSFULLY". if(flag==1) { clrscr(). cout<<endl<<endl. clrscr()..". goto z.. getch(). } if(flag==0) { cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tBILL DOESNOT EXIST.

cout<<endl<<endl. cout<<"\t\t\tYou Have chosen to VIEW BILL".sizeof(a)). if(x==cid) { : ". goto z. clrscr().}} if(sel==4) { flag=0.. cout<<"============================================= ================================".dat". int x=a.} fin.". cout<<"\n\n\n\n\n\n\n\n\n\t\t Enter CUSTOMER id to VIEW BILL cin>>cid.eof()) { fin..open("customer. cout<<endl.seekg(0). while(!fin. if(!fin) { cout<<"\n\nFile Not Found.read((char*)&a. cout<<"============================================= ================================".ios::binary).ret(). . clrscr(). fin.

".".eof()) { fin. fin.scustdet(). goto z.. fin..ret().close().seekg(0). goto z. .. fin.dat".} fin. clrscr().flag=1. int px=x. } bill4: flag=0. cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tCUSTOMER DOESNOT EXIST. while(!fin. goto bill4. getch(). if(!fin) { cout<<"\n\nFile Not Found.read((char*)&x.close(). }} if(flag==0) { clrscr().. a.open("bill.sizeof(x)).ios::binary).

cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tBILL DOESNOT EXIST. getch(). clrscr(). fin. goto z. } if((sel>5)||(sel==0)) .if(px==cid) { flag=1. }} if(sel==5) { clrscr()..sho(). getch(). clrscr()...close().". goto y. x. goto z.close().. }} if(flag==0) { clrscr().. fin.

0.5/minute"<<endl<<endl.2.50/SMS"<<endl<<endl.1/minute"<<endl<<endl.2). cout<<endl. . gotoxy(28. clrscr(). } break. goto z.3/MMS"<<endl<<endl. cout<<endl. cout<<"\t\t STD RATE = Rs. cout<<"============================================= ================================". cout<<endl<<endl. cout<<"============================================= ================================". cout<<"\t\t MMS RATE = Rs. cout<<"\t\t\t\tBILLING DETAILS".{ clrscr(). cout<<"\t\t National Roaming Incoming RATE = Rs. cout<<"\t\t SMS RATE = Rs. cout<<"============================================= ================================". cout<<"\t\t National Roaming Outgoing RATE = Rs. cout<<"============================================= ================================". cout<<"INVALID CHOICE TRY AGAIN ". case 3: char f[1].2/minute"<<endl<<endl.

gets(f). gotoxy(28.10/kb"<<endl<<endl.} default: clrscr(). if(s!='y') {clrscr(). cout<<endl. cout<<"============================================= ================================". if(s=='y') exit(0). goto y. cin>>s.8/minute"<<endl<<endl. goto y.15/minute"<<endl<<endl. char s.17/minute"<<endl<<endl. case 4: clrscr(). cout<<"\t\t International Roaming Outgoing RATE = Rs. cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\tAre You Sure ??? ( Enter 'y' for YES and ANY key for NO ) :". clrscr(). .2).0. cout<<"\t\t ISD RATE = Rs. cout<<"\t\t International Roaming Incoming RATE = Rs.cout<<"\t\t GPRS RATE = Rs. cout<<"INVALID CHOICE TRY AGAIN ".

cout<<"============================================= ================================". goto y. } . } getch().

Sign up to vote on this title
UsefulNot useful