include1. #include <process.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <dos.h>
#include <ctype.h>
#include <fstream.h>
#include <graphics.h>
#include <math.h>
fstreammatx,prof,testf,edit,table;
struct date da;
int dayy,month,yearr,mnu;
floatincrease,term;
floatsb,cd,f1=0,f2=0,f3=0,f4=0,f5=0,f6=0,l1=0,l2=0,l3=0,ln=0;
int n,k,q,ti=250,iup=0,acc,totacc,remn,endfil,type,can;
floatw,d,b,fixra,r,per; //Global Variables
char na[90],erropen[4096],gud[20],rap[10],getop,scre1[4096],sfk[4000];
char kna[90],gna[90];
char occ[90],h1[90],h2[90],po[90],dt[90],ct[90],ph[30],acctp[90],tp,par[30],fna[90];
int accno,dd,yy,mm;intd1,m1,y1,d2,m2,y2;inter=22,ty=38,ui=20;
class backgrounds
{
public:
backgrounds()
{
getdate(&da);
dayy=da.da_day;
month=da.da_mon;
2. yearr=da.da_year;
skining("LOA D I N G"," ",ti,100,1,22,14,8);
ti=0;
strcpy(kna,"C:BankingSactions");
}
voidskining(charfunction[90],chargraphics[5],inttime_delay,intsoun,intx,inty,intcolour,intfuncol)
{
int worty=0;char any;
if(time_delay)
{
textcolor(BLUE);
textbackground(GREEN);
clrscr();
window(1,10,80,30);
textbackground(colour);
clrscr();
window(1,1,80,20);
textbackground(BLUE);
clrscr();
window(1,1,80,50);
for(inttim,dim=1,poy=0;dim/100<101;dim+=tim,poy++)
{
gate:
if(random(time_delay)==RED||random(time_delay)==funcol) random(time_delay)+1;
tim=random(time_delay);
delay(tim);
gotoxy(x+20,y);
textcolor(funcol+BLINK);
textbackground(colour);
8. gotoxy(13,i);
cprintf("");
gotoxy(27,i);
cprintf("");
gotoxy(40,i);
cprintf("");
}
for(i=3;i<38;i++)
{
gotoxy(i,1);
cprintf(" ");
gotoxy(i-3,50);
cprintf(" ");
}
}
voidnumbe(intt)
{
int gdriver= DETECT,
errorcode,gmode;
initgraph(&gdriver,&gmode,"");
setcolor(BLUE);setbkcolor(GREEN);
for(intlxl=0;lxl!=400;lxl+=100)
line(lxl,getmaxy(),lxl,0);
for(intlyl=0;lyl!=600;lyl+=15)
line(300,lyl,0,lyl);
for(lxl=1;lxl!=8;lxl+=1)
line(lxl,getmaxy(),lxl,0);
for(lyl=1;lyl!=8;lyl+=1)
line(300,lyl,0,lyl);
9. for(lxl=290;lxl!=300;lxl+=1)
line(lxl,getmaxy(),lxl,0);
for(lyl=470;lyl!=480;lyl+=1)
line(300,lyl,0,lyl);
}
voidfixit()
{
gettext(1,12,55,40,scre1);
while(ui!=30)
{
sound(ui*10);
er--;ty++;ui++;
window(10,er,ty,ui);delay(100);
textbackground(RED);clrscr();
} nosound();
}
voidfixout()
{
while(ui!=1)
{
sound(ui*10);
window(10,er,ty+1,ui+1);
textbackground(BLUE);clrscr();
er++;ty=ty--;ui--;
puttext(1,12,55,40,scre1);
window(10,er,ty,ui+1);
textbackground(RED);clrscr();
delay(100);
}
10. puttext(1,12,55,40,scre1);
nosound();
window(1,1,80,50);
er=22;ty=38;ui=20;
}
loderunner(inttim)
{
if(!tim)
{
if(wherex()<79)
{
textbackground(RED);
cprintf(" ");
sound(wherex()*20);
delay(600);
}
}
}
voidAccount_type()
{
window(46,33,72,47);textcolor(RED);textbackground(GREEN);
cprintf("PRESSnnrSforSAVINGSBANKACCOUNTnnrCforCURRENTACCOUNTnnr");
cprintf("FforTermor FixedAccountnnrLtotake a loannnr");
cin>>tp;window(46,33,72,47);textbackground(BLUE);textcolor(15);clrscr();window(1,1,80,50);
gotoxy(33,31);
table.open("C:bankingRates.bank",ios::in);
table.seekg(52);
table>>sb>>cd>>f1>>f2>>f3>>f4>>f5>>f6;
table.close();
11. if(tp=='s'||tp=='S')
{
cprintf("SAVINGSBANK");
ty=45;
fixit();
cout<<" ";cprintf("PRESENTS.BRATE");cout<<"t"<<sb<<"%nnnt";
cout<<" SavingsBanknnt Enterthe initial depositforSBt";
cin>>d;
fixout();
}
else if(tp=='c'||tp=='C')
{
cprintf("CURRENTACCOUNT");
ty=45;
fixit();
cout<<" ";cprintf("PRESENTC.DRATE");cout<<"t"<<cd<<"%nnnt";
cout<<" CurrentAccountnnt Enterthe initial depositt";
cin>>d;
fixout();
}
else if(tp=='f'||tp=='F')
{
cprintf("FIXEDDEPOSIT");
fixit();
cout<<" ";cprintf("DURATIONr");cout<<"tttt";cprintf("PRESENTRATE");
cout<<"nnt 1. 15 daysand upto45 dayst"<<f1<<"%";
cout<<"nnt 2. 46 daysand upto179 dayst"<<f2<<"%";
cout<<"nnt 3. 180 days andupto 1 yeart"<<f3<<"%";
cout<<"nnt 4. 1 year to lessthan2 yearst"<<f4<<"%";
12. cout<<"nnt 5. 2 yearsto lessthan3 yearst"<<f5<<"%";
cout<<"nnt 6. 3 yearsand abovett"<<f6<<"%";
cout<<"nnt Enter the termperiodt";
cin>>term;
cout<<"nt Enteramountof Fixeddepositt";
cin>>d;
if(term>=15&&term<=45) fixra=f1;
if(term>=46&&term<=179) fixra=f2;
if(term>=180&&term<=365) fixra=f3;
if(term>=1&&term<2) fixra=f4;
if(term>=2&&term<3) fixra=f5;
if(term>=3) fixra=f6;
cout<<"nnnnnThe calculatedrate forthis"
<<"nnperiod_________";cout<<fixra;
ln=fixra;per=term;
fixout();
}
else if(tp=='l'||tp=='L')
{
cprintf("LOAN");
}
else {cprintf("Wrongchoice");Account_type();}
window(1,1,80,50);
}
voidwittpart(intposit)
{
if(type==2)
{
if(posit==3) {strcpy(par,"ByCash");}
13. if(posit==4) {strcpy(par,"FromCheque");}
if(posit==5) {strcpy(par,"ByPerson");}
if(posit==6) {strcpy(par,"FromNRE");}
if(posit==7) {strcpy(par,"ByInterest");}
if(posit==8) {strcpy(par,"ByClearing");}
if(posit==9) {strcpy(par,"ByBF");}
if(posit==10) {strcpy(par,"BySalary");}
}
else if(type==1)
{
if(posit==3) {strcpy(par,"ByCash");}
if(posit==4) {strcpy(par,"ToAccount");}
if(posit==5) {strcpy(par,"ToWithdraw");}
if(posit==6) {strcpy(par,"ToSelf");}
if(posit==7) {strcpy(par,"ToPerson");}
}
puts(par);
}
voidwittwain()
{
char sck[4000],getop;ints=3;
gettext(50,26,60,36,sck);
gotoxy(50,26);textattr(YELLOW);
cprintf("Particulars");
textbackground(BLUE);textcolor(GREEN);
if(type==1){screwith();}
if(type==2)scredepo();
textbackground(5);
gotoxy(50,27);cprintf("ByCash ");
14. do
{
gotoxy(15,n+4);
char getop=getch();
if(getop=='2')
{
if(type==2)if(s<10) s++;
if(type==1)if(s<7) s++;
puttext(50,24,60,36,sfk);
gotoxy(50,24+s);cprintf(" ");
gotoxy(50,24+s);wittpart(s);
}
if(getop=='8')
{
if(s>3) s--;
puttext(50,24,60,36,sfk);
gotoxy(50,24+s);cprintf(" ");
gotoxy(50,24+s);wittpart(s);
}
if(getop=='5')
{
puttext(50,26,60,36,sck);
gotoxy(15,n+4);wittpart(s);
if(s==4||s==5||s==6)
{
gotoxy(15,n+4);getch();
textattr(YELLOW+BLINK);
cprintf("ENTERHERE ");
textcolor(YELLOW);
15. gotoxy(15,n+4);
cin>>rap;
strcpy(par,"FROM");
}
return;
}
}while(getop);
}
voidscrewith()
{
window(50,27,60,31);clrscr();
window(1,1,80,50);
gotoxy(50,24+3);
cout<<"By Cash";
gotoxy(50,24+4);
cout<<"To Account";
gotoxy(50,24+5);
cout<<"To Withdraw";
gotoxy(50,24+6);
cout<<"To Self";
gotoxy(50,24+7);
cout<<"To Person";
gettext(50,24,60,36,sfk);
}
voidscredepo()
{
window(50,27,60,34);clrscr();
window(1,1,80,50);
gotoxy(50,24+3);
16. cout<<"By Cash";
gotoxy(50,24+4);
cout<<"From Cheque ";
gotoxy(50,24+5);
cout<<"By Person";
gotoxy(50,24+6);
cout<<"From NRE";
gotoxy(50,24+7);
cout<<"By Interest";
gotoxy(50,24+8);
cout<<"By Clearing";
gotoxy(50,24+9);
cout<<"By BF";
gotoxy(50,24+10);
cout<<"By Salary";
gettext(50,24,60,36,sfk);
}
voidfixed()
{
if(tracc()==3||tracc()==4)
{
name(na);
edit.open(na,ios::in);
edit>>dd>>mm>>yy>>per>>d>>ln;
edit.close();
if((yearr-yy)<=per) d=(d*(yearr-yy)*ln)/100;
edit.open(na,ios::out);
edit<<dd<<"n"<<mm<<"n"<<yy<<"n"<<per<<"n"<<d<<"n"<<ln;
18. g=(d*pow(1+(ln/100),per));
k=d/100*ln;
cout<<"Loan Amountttt"<<d<<"nnLoanPeriodttt"<<per<<"Years"
<<"nnLoaninterestedratett"<<ln<<"%"
<<"nnLoaninterestedforthisyeart"<<k
<<"nnTotal loanamountpayable tontdispose thisyeart"<<d+k
<<"nnInterestafterloanperiodt"<<g-d
<<"nnAmountpayable after"<<per<<"Yearst"<<g;
}
char* name(charna[90])
{
strcat(na,".tra");
strcat(kna,na);
strcpy(na,kna);
strcpy(kna,"C:BankingSactions");
}
voidrepairlab(intget)
{
int noche;
window(1,1,80,22);
while(get!=5)
{
textbackground(BLUE);
clrscr();
gotoxy(17,3);
textcolor(RED+BLINK);
cprintf("YOUHAVEUNLOCKEDTHE UNDERWORLD ZONE");
gotoxy(15,4);
textbackground(GREEN);
19. textcolor(WHITE);
cprintf("tt ttnr");
textcolor(BLACK);
textbackground(3);
gotoxy(17,5);
cprintf("--The Complete CheatcomRepairlab--");
textcolor(4);
textbackground(9);
cprintf("nnrOperationsforfirstrunnr");
textcolor(YELLOW);
cprintf("nnnnr1.Operation1(I.M.C)nr");
cprintf("2.Operation2(G.F.M)nr3.About menr4.Operation4(D.P.L)nr5.Skipnr6.Exitfrom
programnr");
cin>>get;
cout<<"n";
if(get==1)
{
textbackground(GREEN);clrscr();
inters(1);
cprintf("nOperation1Sucessfull!nrGraphicsMode initilised");
}
else if(get==2)
{
endfil=1;
cprintf("nOperation2Sucessfull!");
}
else if(get==3)
{
textbackground(RED);
20. gotoxy(0,20);
cprintf("nIamUjjaystudyinginXIIsc,Oriental EnglishMediumSchool Pauvizhal.");
cprintf("nrIhave workedforthisasmyschool computerproject.Althoughthis");
cprintf("programisa betaversionforme.But it can provide all sortsof simple");
cprintf("bankingtechniques.The calculationall i appliediswhichi studied inmy");
cprintf("laterclasses.Idon'treferanybankingsubjects.Alsoi amnot a commerce");
cprintf("student.Thisimperfectionyoucanvisualize inthisprogram.nrPlease");
cprintf("forwardall yourfeedbackstomy number.n");
cprintf("nnrContactme atnrujjay@rediffmail.comnrRingme atnr9496351021");
getch();
}
else if(get==4)
{ return;
char all[4096];
ifstreamcheck;
check.open("C:bankingdatabase.dat",ios::in);
textcolor(GREEN);
clrscr();cout<<"PROF.DAT";
if(!matx_check("prof"))getch();
cout<<"nDisplaying1n";
for(inth=0;!check.eof(),h<200;h++)
{
sound(300);
check>>all;
cout<<all<<"tEnd of line "<<h<<"n";
delay(100);
}
nosound();
getch();
26. cprintf("Currentlynoprofilescorresponds"
" tothis accountnumberor");
gotoxy(3,22);
cprintf("nr Nodatapinnedinour registryatall");
return 0;
}
if(!strcmp("Newaccount",gud))
{
if(tp=='l'){strcpy(acctp,"Loan");return4;}
else if(tp=='s'){strcpy(acctp,"SavingsBank");return1;}
else if(tp=='c'){strcpy(acctp,"CurrentBank");return2;}
else if(tp=='f'){strcpy(acctp,"FixedAccount");return3;}
}
}
cout<<"nnThe account"<<acc1<<"-"<<acc2<<"-"<<acc<<" neverexists!!!";
getch();
return65;
}
}
int matx_check(charr[70])
{
char inn;
puttext(59,8,80,12,erropen);
textcolor(GREEN);
textbackground(RED);
gotoxy(59,8);
if(prof.bad())
{
gotoxy(1,40);
28. cout<<"nnt5.2 yearsto lessthan3 yearst"<<f5<<"%t"<<l2<<"%";
cout<<"nnt6.3 yearsand abovett"<<f6<<"%t"<<l3<<"%";
}
findcode(charcode[90])
{
bankingk;
char fch1[10],fch2[90];intposd;
prof.close();
prof.open("C:bankingAccounts.bank",ios::in);
while(!prof.eof())
{
posd=0;
prof>>fch1;
if(!strcmpi(fch1,code))
{
posd=prof.tellg();
if(posd<150)
prof.seekg(posd-50);
else prof.seekg(posd-100);
while(prof.tellg()!=posd)
{
prof>>fch2;
if(!strcmpi(fch2,"Newaccount")) break;
}
posd=prof.tellg();
prof>>acc>>na>>occ>>h1>>h2>>
po>>dt>>ct>>ph>>tp>>dd>>mm>>yy;
endfil=prof.tellg();
if(tp=='s')strcpy(acctp,"SavingsBank");
29. else if(tp=='c')strcpy(acctp,"CurrentBank");
else if(tp=='f')strcpy(acctp,"FixedAccount");
else if(tp=='l')strcpy(acctp,"Loan");
textbackground(13);clrscr();
gotoxy(7,1);endfil=0;
cout<<"ntttProfileLoadedas....nttt-------------------";
k.profview();returnposd;
}
}cout<<"ntSorryCode '"<<code<<"' not Found!!!";return0;
}
};
classbanking:publicbackgrounds
{
public:
banking() //Constructor
{
floatrop;
matx.open("C:bankingBase.bank",ios::in,ios::binary);
matx>>d2>>m2>>y2;
matx.close();
if(month<=3)
{
if(yearr>y2)
{
clrscr();textattr(WHITE);
cprintf("nr March day check ");
inters(1);
matx.open("C:bankingBase.bank",ios::out);
matx<<dayy<<"t"<<month<<"t"<<yearr<<"t"<<q;
31. gotoxy(33,6);
gets(na);
gotoxy(33,8);
gets(occ);
gotoxy(33,12);
gets(h1);
gotoxy(33,14);
gets(h2);
gotoxy(33,16);
gets(po);
gotoxy(33,18);
gets(dt);
gotoxy(33,20);
gets(ct);
gotoxy(33,22);
gets(ph);
gotoxy(40,24);
textattr(-3);
cprintf("Yto Insertthe date");
cout<<" "<<dayy<<"-"<<month<<"-"<<yearr;
gotoxy(40,26);
cprintf("Else othertoaddanother");
gotoxy(40,28);
getop=getch();
if(getop=='y'||getop=='Y')
{
gotoxy(33,25);
cout<<dayy;
gotoxy(33,27);
33. voidprofview()
{
gotoxy(5,45);
cout<<"nViewingACno:2008-1678-"<<acc<<"n";
gotoxy(1,3);
cout<<"nnnAccountancy'sName--------------nnOccupation-----";
cout<<"-----------------nnAddressnntHouse FirstName--------";
cout<<"nntHouse SecondName-------nntPostbox----------------";
cout<<"nntDistrict----------------nnCity---------------------";
cout<<"-------nnPhone number--------------------nnType of account";
cout<<"-----------------nnDate of creationof accountntdd----------------------nntmm";
cout<<"----------------------nntyyyy--------------------nn";
gotoxy(33,6);
cout<<na;
gotoxy(33,8);
cout<<occ;
gotoxy(33,12);
cout<<h1;
gotoxy(33,14);
cout<<h2;
gotoxy(33,16);
cout<<po;
gotoxy(33,18);
cout<<dt;
gotoxy(33,20);
cout<<ct;
gotoxy(33,22);
cout<<ph;
gotoxy(33,24);
34. cout<<acctp;
gotoxy(33,27);
cout<<dd;
gotoxy(33,29);
cout<<mm;
gotoxy(33,31);
cout<<yy;
getch();
}
voidediting()
{
screeninge;
int diffy,bal,res,acc3;charede,fna[90];
textbackground(BLUE);
textcolor(YELLOW);
strcpy(fna,na);
ed:clrscr();
if(endfil==1){carre(1);numbe(1);}
else if(!endfil){numbe();carre();}
e.showlasttrans();
gotoxy(42,4);
cout<<"Date of processingof account";
gotoxy(44,6);cout<<"dd-------";
gotoxy(44,8);cout<<"mm-------";
gotoxy(44,10);cout<<"yyyy-----";
gotoxy(48,12);
cprintf("Yto Insertthe date ");
cout<<dayy<<"-"<<month<<"-"<<yearr;
gotoxy(48,14);
38. gotoxy(46,46);
cprintf("UJ J A Y U D A Y A B H A N U");
getch();
}
voiddepositing()
{
gotoxy(42,15);
cout<<"DepositAmount ";
cin>>d;
gotoxy(4,28+n);
cout<<d;
w=0;++k;
balancing();particulars();
}
voidwithdrawing()
{
gotoxy(42,16);
if(b<=274)
{ textattr(WHITE+BLINK);
cprintf("Youcan'tmake a withdrawl when");
gotoxy(42,18);
cprintf("the balance islessthanRs 275-");
textcolor(YELLOW);
can=1;
edit.close();
}
else
{
gotoxy(42,13);
40. b+=d-w;
gotoxy(15,28+n);
cout<<b;
gotoxy(3,n+4);
cout<<d1<<"-"<<m1<<"-"<<yearr;
}
voidshowlasttrans()
{
sload:
strcpy(fna,na);
name(na); edit.open(na,ios::in);
if(edit.bad())
{
if(iup){ gotoxy(42,39);cout<<"Trycreatingafolder"<<kna;}
iup++;
gotoxy(42,35);
cout<<"Datas of earliertransactionmissing";
gotoxy(42,37);
cprintf("Wouldyoulike tocreate NEW? YN ");
cin>>getop;
if(getop=='Y'||getop=='y')
{
edit.open(na,ios::out);w=0;edit.close();return;
}
else if (getop=='N'||getop=='n')
{
gotoxy(42,44);
cprintf("Errorinopeningafile");
gotoxy(42,46);cprintf("Pressanytoskip...");
41. getch();main();
}
else {gotoxy(42,33);cout<<" Sorrywrongchoice "; goto sload;}
}
gotoxy(45,41);cout<<"Name "<<fna;
gotoxy(45,43);cout<<"Type of Account"<<acctp;
gotoxy(45,45);cout<<"Accountno2008-1678-"<<acc;
gotoxy(45,2);cprintf("PA G E 1");
for(n=1;!edit.eof();n++)
{ if(!(n%21))
{
getch();
window(1,1,40,52);textbackground(RED);
clrscr();numbe();carre();
gotoxy(45,2);cprintf("PA GE ");gotoxy(54,2);cout<<(n/21)+1;
window(1,1,80,50);n=1;
}
edit>>dd>>mm>>yy>>rap>>par>>k>>w>>d>>b;
gotoxy(3,n+4);
cout<<dd<<"-"<<mm<<"-"<<yy;
gotoxy(4,n+28);
gotoxy(15,n+4);
cout<<rap<<" "<<par;
gotoxy(4,n+28);
if(d==0) cout<<"-";
else
cout<<d;
gotoxy(15,n+28);
if(b==0) cout<<"-";
43. textcolor(GREEN+BLINK);
cout<<"ntttt";
cprintf("Menunr");
cout<<"tttt";
textbackground(14);
cprintf(" ");
textcolor(RED);
textbackground(BLACK);
cprintf("nnr1.Create new accountprofile.nnr2.View anaccountprofile.nnr");
cprintf("3.Search, Editor Remove profiles.nnr4.Processingan");
cprintf("SavingsbankorCurrentaccount.nnr5.Show transactionsof a account.nnr");
cprintf("6.Viewpresentrate of interest.nnr7.Change the persent");
cprintf("rate of interest.nnr8.Viewtotal balanc");
cprintf("e of accountancy.nnr9.Takinga loan.nnr10.Renual");
cprintf("of a loanaccount.nnr11.Checkloanstatus.");
cprintf("nnr12.Viewtotal orstandardbankbalance.nnr13.Resetallnnr0.Exit");
gotoxy(1,35);
textbackground(CYAN);
cprintf(" ");
cprintf(" nnr");
textbackground(BLUE);
textcolor(YELLOW);
cout<<"tttt";
cprintf("Inputareannr");
cin>>mnu;
clrscr();
switch(mnu)
{
case 1:
49. cprintf("Show Transactionof the account");
cout<<"nttt---------------------------------";
textcolor(q+17);
cprintf("nnrWhichaccountstransactionsare youwantto seernn");
gotoxy(1,43);
cout<<"Enterthe correct accoundno:-";
totacc=dw.tracc();
if(totacc==1||totacc==2)
{
if(!endfil){dw.numbe();dw.carre();}
else if(endfil==1){dw.carre(1);dw.numbe(1);}
c.showlasttrans();
matx.close();
}
else
{
textattr(RED);sound(200);
cprintf("nrYouare abouttoentera S.B or C.D account number");
delay(5000);nosound();
}
break;
case 6: case 7:
gotoxy(7,1);
char ch;
textbackground(RED);clrscr();
if(mnu!=6)
{
cout<<"ntttSetrate of interestnttt---------------------nnn";
textattr(6);textbackground(BLUE);
50. cprintf("1.Change interestrate forSavingsaccountnnr2.Changerate");
cprintf("of interestforcurrentdepositsnnr3.Changerate for");
cprintf("loaningnnr4.Change interestof Fixeddepositsnnr ");
}
else cout<<"ntttViewrate of interestnttt----------------------nnn";
textattr(10);
table.open("C:bankingRates.ban",::ios::in);
table.seekg(52);
table>>sb>>cd>>f1>>f2>>f3>>f4>>f5>>f6>>l1>>l2>>l3;table.close();
cprintf("nnrSavingsBanknnrOLDn%r");cout<<sb;
cprintf("nnrCurrentDepositnnrOLDn%r");cout<<cd;
textattr(WHITE);
cout<<"ttttt";cprintf("Fixed");
cout<<" ";cprintf("Loan");
textattr(5);
dw.perioder();
if(mnu==6) break;
gotoxy(1,14);cin>>ch;
if(ch=='1')
{ gotoxy(14,18);cprintf("NEWn%");
gotoxy(14,19);cin>>sb;
}
else if(ch=='2')
{ gotoxy(14,23);cprintf("NEWn%");
gotoxy(14,24);cin>>cd;
}
else if(ch=='4')
{ intchfd;
cprintf(" Whichtab inFD as givenBelow ");
52. switch(chfd)
{
case 1:
gotoxy(50,37);cin>>l1;
break;
case 2:
gotoxy(50,39);cin>>l2;
break;
case 3:
gotoxy(50,41);cin>>l3;
break;
}
}
table.open("C:bankingRates.ban",::ios::out);
table<<"SavingsBanktCurrentDepositnFixedDepositnLoaning";
{
table<<sb<<"tt";
table<<cd<<"n";
table<<f1<<"t";
table<<f2<<"t"<<f3<<"t"<<f4<<"t"<<f5<<"t";
table<<f6<<"n"<<l1<<"t"<<l2<<"t"<<l3<<"n";
table.close();
}
break;
case 8:
gotoxy(7,1);
cout<<"ntttAccountancy,scurrentbalancenttt-------------------------------";
gotoxy(1,41);
cout<<"nnEnterthe accountnumbern";
53. totacc=dw.tracc();
gotoxy(2,6);
cout<<"nnNamettt"<<na;
if(totacc==3) c.fdloan();
else if(totacc==4) c.fdloan();
else if(totacc==1||totacc==2)
{
c.showlasttrans();clrscr();
cout<<"nnnnAccountnott2008-1678-"<<acc;
cout<<"nnType of accounttt"<<acctp;
cout<<"nnnnThe currentaccountbalance istt"<<b;
cout<<"nnThe calulatedinterest";
if(totacc==1) cout<<" added";
else if(totacc==2) cout<<" deduced";
cout<<"after9 March of commingyearforthis"
<<" balance is"<<dw.inters(0);
}
break;
case 9:floatper,ln;
gotoxy(7,1);
cout<<"ntttApplicationforaLoannttt------------------------";
cout<<"nnFora loanyou have to fll the formnHere isthe rate chart";
table.open("C:bankingRates.ban",::ios::in);table.seekg(52);
table>>sb>>cd>>f1>>f2>>f3>>f4>>f5>>f6>>l1>>l2>>l3;table.close();
dw.fixit();
cout<<"nnt 1. 1 year to lessthan2 years "<<l1<<"%";
cout<<"nnt 2. 2 yearsto lessthan3 years "<<l2<<"%";
cout<<"nnt 3. 3 yearsand abovett "<<l3<<"%";
cout<<"nnnntttPRESSHTOLEAVEn";
55. exit(0);
case 10:case 11:
gotoxy(7,1);
cout<<"ntttLoanStatusnttt------------";
gotoxy(1,43);
cout<<"Enter the loanaccount number";
if(dw.tracc()==4)
{
cout<<"NAMEtttt"<<na<<"nn";
c.fdloan();
if(mnu==10)
{
floatv;
gotoxy(1,30);
cout<<"nEnterthe amountto payt";cin>>v;
if(v<=0)
{
textattr(YELLOW+BLINK);
cprintf("nnrSorrynotapplicablennSkippingtomenu");
}
edit.open(na,ios::in);edit>>dd>>mm>>yy>>per>>d>>ln;
edit.close();
d-=v;
edit.open(na,ios::out);
edit<<"n"<<dayy<<"n"<<month<<"n"<<yearr
<<"n"<<per<<"n"<<d<<"n"<<ln;edit.flush();edit.close();
gotoxy(1,10);c.fdloan(1);
}
}
56. else
{
gotoxy(1,20);
cout<<"nnYouare aboutto Enter a loanaccount numbern";
}
break;
case 12:
matx.open("C:bankingAccounts.bank",ios::in);
gotoxy(1,43);intd1,d2,d3,d4;
d1=d2=d3=d4=l1=f2=l3=l2=0;
do
{
dw.loderunner(matx.eof());
matx>>gud;
if(!strcmp("Newaccount",gud))
{
matx>>totacc>>na>>occ>>h1>>h2>>
po>>dt>>ct>>ph>>tp>>dd>>mm>>yy;
c.name(na);
edit.open(na,ios::in);
if(edit.good())
{
if(tp=='l')
{
edit>>dd>>mm>>yy>>per>>d1>>ln;
edit.close();
l2-=d1;
}
else if(tp=='s')
58. break;
case 13:
char reset;
gotoxy(7,1);
cout<<"ntttResetAllnttt-----------";
gotoxy(2,22);
cout<<"Do youwant to resetnnPressrtocontinuenn";
cin>>reset;
if(reset=='r'||reset=='R')
{
textbackground(BLUE);
prof.open("C:bankingAccounts.bank",ios::in);
gotoxy(1,30);
textattr(RED);
cprintf("PLEASESTANDBY........nrwhilerestoringnr");
textbackground(RED);
cprintf(" nr ");
gotoxy(1,43);
while(!prof.eof())
{
prof>>na;
c.name(na);
dw.loderunner(prof.eof());
edit.open(na,ios::out);
if(edit.good()) remove(na);
edit.close();
}
prof.close();
gotoxy(1,30);
59. textattr(GREEN);
cprintf("RESETEDANDRESTORED...nr FINISHEDnr");
textbackground(GREEN);
cprintf(" nr ");
nosound();
prof.open("C:bankingAccounts.bank",ios::out);
prof<<"1n";prof.close();
matx.open("C:bankingBase.bank",ios::out);
matx<<dayy<<"t"<<month<<"t"<<yearr<<"t"<<q;
matx.close();table.close();
table.open("C:bankingRates.bank",::ios::out);
table<<"SavingsBanktCurrentDepositnFixedDeposittLoaning";
table<<"4t4.5n5.25t6.5t5.7t8t8t8.5n5.5t7t8";
table.close();
}
break;
default:
cout<<"nnNolinkexistas"<<mnu;
break;
}
getch();
link:
textbackground(q+4);
clrscr();
gotoxy(22,22);
++q;
textattr(12);
cprintf("nrSelectone amoungnnr1.Linktomenunnr2.Exit........nnr");