Bank account C Project involves maintaining of account related information. This requires greater accuracy, speed that is why the proposed system is the computerization of the existing system.BANK-ACCOUNT-SYSTEM-A-C-PROJECT-REPORT-WITH-CODE.

Account system involved maintaining data related different customer and his transaction. This required greater accuracy, speed that is why the proposed system is the computerization of the existing system. The computerized system does the job of the monitoring the information easy and effective manner. 

The application certainly has same striking advantage over manual system. There will be no paper work as possible and the information will be updated as it changes. It is automation of Telephone directory system. With this system one can generate the report of the address. It secures the database of Telephone directory system from the unauthorized person. 

The application certainly has some striking feature over manual system. User queries have become quite accurate and efficient. Lot of paper work has been eliminated. 

Future modification and enhancements have become quite easier now in comparison to the previous manual system. Last but one of the most important advantages of the banking system is that, through this system the whole procedure will take too less time in comparison of the manual system. 

Use of BAS: 

No doubt BAS will be helpful for institutes in all procedure, which will be monitoring through Account. At the first step BAS will only be installed in the bank. 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
#include<malloc.h>
#include<dos.h>
#include<fstream.h>
#include<stdlib.h>
#include<string.h>
void intro(void);
int main_menu(void);
void new_account(void);
void new_account_gui(void);
int getaccount_no(char *);
void sav_account(int,char*,int,char*,int,int,int,int,int);
void update_main(char *);
void process(void);
void list_all(void);
void print_it(char*);
void list_all_gui(void);
void trans_menu(void);
int trans_gui(void);
void show_trans(void);
void mod_trans(void);
void see_it(void);
void report(void);
void dep_gui(void);
void deposite(void);
void mod_choice(void);
void withdraw(void);
main(){
intro();
process();
return 0;
}
void process(void){
int option;
option=main_menu();
if(option==1)
new_account();
if(option==2)
list_all();
if(option==3)
trans_menu();
if(option==4)
exit(0);
}
void intro(void){
void *image;
int size;
int dr=9,mode=2;
initgraph(&dr,&mode,"..\\bgi");
size=imagesize(140,140,500,250);
image=malloc(size);
setfillstyle(SOLID_FILL,GREEN);
circle(200,200,50);
floodfill(200,200,WHITE);
setcolor(LIGHTGRAY);
circle(200,200,19);
setcolor(WHITE);
circle(200,200,18);
circle(200,200,49);
circle(200,200,53);
circle(200,200,20);

arc(215,215,350,90,30);
arc(210,182,90,194,30);
arc(180,195,180,300,30);
settextstyle(1,HORIZ_DIR,1);
setcolor(LIGHTGRAY);
outtextxy(270,180,"National Bank");

outtextxy(270,185,"___________________");
outtextxy(270,210,"Of Pakistan Pvt Ltd.");
settextstyle(0,HORIZ_DIR,0);
setcolor(DARKGRAY);
outtextxy(270,240,"COPYRIGHT 2002");
getimage(141,141,499,259,image);
cleardevice();
for(int count=1;count<300;count+=2)
putimage(1+count,100,image,COPY_PUT);
for(int down=0;down<640;++down)
{
delay(5);
line(1,220,1+down,220);
}
setcolor(BLUE);
for(int bottom=0;bottom<300;bottom+=4)
line(1,220+bottom,640,220+bottom);
free(image);
getch();
closegraph();
}
// ----------------- m a i n - m e n u ---------------------
int main_menu(void){
int option;
int size;
int dr=9,mode=2;
initgraph(&dr,&mode,"..\\bgi");
void *main_window,*button_down;
size=imagesize(10,70,251,351);
main_window=malloc(size);
size=imagesize(10,310,251,351);
button_down=malloc(size);
setfillstyle(SOLID_FILL,LIGHTGRAY);
setcolor(DARKGRAY);
rectangle(1,1,640,480);
floodfill(3,3,DARKGRAY);
setcolor(WHITE);
line(1,1,1,480);
line(1,1,640,1);
setcolor(BLUE);
rectangle(3,3,637,15);
setfillstyle(SOLID_FILL,BLUE);
floodfill(5,5,BLUE);
setcolor(DARKGRAY);
rectangle(620,4,635,14);
rectangle(602,4,617,14);
rectangle(585,4,599,14);
setfillstyle(SOLID_FILL,LIGHTGRAY);
floodfill(586,6,DARKGRAY);
floodfill(604,6,DARKGRAY);
floodfill(624,6,DARKGRAY);
setcolor(BLACK);
line(622,6,633,12);
line(633,6,622,12);
rectangle(604,6,615,12);
line(587,12,597,12);
setcolor(WHITE);
line(620,4,620,14);
line(620,4,635,4);
line(602,4,617,4);
line(602,4,602,14);
line(584,4,599,4);
line(584,4,584,14);
outtextxy(8,5,"BANKING SYSTEM");
setcolor(WHITE);
line(5,30,635,30);
line(5,60,635,60);
setcolor(DARKGRAY);
line(5,29,635,29);
line(5,59,635,59);
setcolor(DARKGRAY);
outtextxy(40,40,"B A N K I N G S Y S T E M designed for national bank of pakistan");
rectangle(10,70,200,100);
setcolor(WHITE);
line(9,69,9,99);
line(10,69,200,69);
setcolor(BLACK);
outtextxy(30,80,"M A I N M E N U");
setcolor(DARKGRAY);
rectangle(10,110,250,150);
setcolor(BLACK);
rectangle(10,110,251,151);
setcolor(WHITE);
line(10,110,10,150);
line(10,110,250,110);
setcolor(BLACK);
outtextxy(40,130,"1. Create new account");
setcolor(DARKGRAY);
rectangle(10,160,250,200);
setcolor(BLACK);
rectangle(10,160,251,201);
setcolor(WHITE);
line(10,160,10,200);
line(10,160,250,160);
setcolor(BLACK);
outtextxy(40,180,"2. List all accounts");
setcolor(DARKGRAY);
rectangle(10,210,250,250);
setcolor(BLACK);
rectangle(10,210,251,251);
setcolor(WHITE);
line(10,210,10,250);
line(10,210,250,210);
setcolor(BLACK);
outtextxy(40,230,"3. Show individual info");
setcolor(DARKGRAY);
rectangle(10,260,250,300);
setcolor(BLACK);
rectangle(10,260,251,301);
setcolor(WHITE);
line(10,260,10,300);
line(10,260,250,260);
setcolor(BLACK);
outtextxy(40,280,"4. Quit");
setcolor(LIGHTGRAY);
rectangle(10,310,250,350);
getimage(10,70,251,351,main_window);
setcolor(WHITE);
rectangle(10,310,251,351);
setcolor(DARKGRAY);
line(10,310,10,350);
line(11,311,11,350);
line(10,310,250,310);
line(11,311,250,311);
setcolor(BLACK);
getimage(10,310,251,351,button_down);
cleardevice();
setfillstyle(SOLID_FILL,LIGHTGRAY);
setcolor(DARKGRAY);
rectangle(1,1,640,480);
floodfill(3,3,DARKGRAY);
setcolor(WHITE);
line(1,1,1,480);
line(1,1,640,1);
setcolor(BLUE);
rectangle(3,3,637,15);
setfillstyle(SOLID_FILL,BLUE);
floodfill(5,5,BLUE);
setcolor(DARKGRAY);
rectangle(620,4,635,14);
rectangle(602,4,617,14);
rectangle(585,4,599,14);
setfillstyle(SOLID_FILL,LIGHTGRAY);
floodfill(586,6,DARKGRAY);
floodfill(604,6,DARKGRAY);
floodfill(624,6,DARKGRAY);
setcolor(BLACK);
line(622,6,633,12);
line(633,6,622,12);
rectangle(604,6,615,12);
line(587,12,597,12);
setcolor(WHITE);
line(620,4,620,14);
line(620,4,635,4);
line(602,4,617,4);
line(602,4,602,14);
line(584,4,599,4);
line(584,4,584,14);
outtextxy(8,5,"BANKING SYSTEM");
setcolor(WHITE);
line(5,30,635,30);
line(5,60,635,60);
setcolor(DARKGRAY);
line(5,29,635,29);
line(5,59,635,59);
setcolor(DARKGRAY);
outtextxy(40,40,"B A N K I N G S Y S T E M designed for national bank of pakistan");
putimage(10,70,main_window,COPY_PUT);
char check;
setcolor(BLACK);
check=getch();
if(check==49)
{
putimage(10,110,button_down,COPY_PUT);
outtextxy(40,130,"1. Create new account");
option=1;
delay(600);
}
if(check==50)
{
putimage(10,160,button_down,COPY_PUT);
outtextxy(40,180,"2. List all accounts");
option=2;
delay(600);
}
if(check==51)
{
putimage(10,210,button_down,COPY_PUT);
outtextxy(40,230,"3. Show individual info");
option=3;
delay(600);
}
if(check==52)
{
putimage(10,260,button_down,COPY_PUT);
outtextxy(40,280,"4. Quit");
option=4;
delay(600);
}
free(main_window);
free(button_down);
cleardevice();
closegraph();
return(option);
}
void new_account(void){
int withdraw=0;
int deposit=0;
int account_no=888;
int balance=0;
char address[25];
char name[10]={'D','E','F','A','U','L','T'};
struct date dat;
getdate(&dat);
account_no=getaccount_no(name);
int year=dat.da_year;
int day=dat.da_day;
int month=dat.da_mon;
--account_no;
new_account_gui();
gotoxy(20,9);
cout<<account_no;
gotoxy(42,9);
cout<<day<<" of "<<month<<" "<<year;
gotoxy(40,13);
cout<<" ";
cin>>name;
gotoxy(40,17);
cout<<" ";
cin>>balance;
gotoxy(40,21);
cout<<" ";
cin>>address;
sav_account(account_no,name,balance,address,day,month,year,deposit,withdraw);
cleardevice();
closegraph();
process();
}
int getaccount_no(char *name)
{
char string[10];
int count=0;
int account_no=0;
ifstream pfile("main");
if(pfile==NULL)
{
account_no=2;
pfile.close();
ofstream pfile2("main");
pfile2<<name;
pfile2.close();
return account_no;
}
ifstream pfile3("main");
while(string[0]!=NULL)
{
pfile3>>string;
++count;
}
pfile3.close();
account_no=count;
return account_no;
}
void sav_account(int account_no,char *name,int balance,char *address,int day,int month,int year,int deposit,int withdraw){
ofstream pfile(name);
pfile<<account_no;
pfile<<endl;
pfile<<name;
pfile<<endl;
pfile<<balance;
pfile<<endl;
pfile<<address;
pfile<<endl;
pfile<<day<<"of"<<month<<"-"<<year;
pfile<<endl;
pfile<<deposit;
pfile<<endl;
pfile<<withdraw;
pfile.close();
update_main(name);
}
void update_main(char *name){
ofstream pfile;
pfile.open("main",ios::app);
pfile<<endl;
pfile<<name;
pfile.close();
}
void new_account_gui(void)
{
int dr=9,mode=2;
initgraph(&dr,&mode,"..\\bgi");
setfillstyle(SOLID_FILL,LIGHTGRAY);
setcolor(DARKGRAY);
rectangle(1,1,640,480);
floodfill(3,3,DARKGRAY);
setcolor(WHITE);
line(1,1,1,480);
line(1,1,640,1);
setcolor(BLUE);
rectangle(3,3,637,15);
setfillstyle(SOLID_FILL,BLUE);
floodfill(5,5,BLUE);
setcolor(DARKGRAY);
rectangle(620,4,635,14);
rectangle(602,4,617,14);
rectangle(585,4,599,14);
setfillstyle(SOLID_FILL,LIGHTGRAY);
floodfill(586,6,DARKGRAY);
floodfill(604,6,DARKGRAY);
floodfill(624,6,DARKGRAY);
setcolor(BLACK);
line(622,6,633,12);
line(633,6,622,12);
rectangle(604,6,615,12);
line(587,12,597,12);
setcolor(WHITE);
line(620,4,620,14);
line(620,4,635,4);
line(602,4,617,4);
line(602,4,602,14);
line(584,4,599,4);
line(584,4,584,14);
outtextxy(8,5,"BANKING SYSTEM");
setcolor(WHITE);
line(5,30,635,30);
line(5,60,635,60);
setcolor(DARKGRAY);
line(5,29,635,29);
line(5,59,635,59);
setcolor(DARKGRAY);
outtextxy(40,40,"B A N K I N G S Y S T E M designed for national bank of pakistan");
rectangle(10,70,200,100);
outtextxy(20,80,"N E W A C C O U N T");
setcolor(WHITE);
line(9,70,9,100);
line(10,69,200,69);
setcolor(DARKGRAY);
rectangle(10,110,500,400);
setcolor(WHITE);
line(11,111,11,399);
line(11,111,499,111);
setcolor(DARKGRAY);
outtextxy(40,130,"ACCOUNT NO DATED ");
setcolor(DARKGRAY);
rectangle(130,125,200,150);
rectangle(310,125,450,150);
setcolor(WHITE);
line(199,149,131,149);
line(199,149,199,126);
line(449,149,311,149);
line(449,149,449,126);
setcolor(DARKGRAY);
line(130,125,130,150);
line(130,125,200,125);
line(310,125,310,150);
line(310,125,450,125);

line(30,160,470,160);
setcolor(WHITE);
line(30,161,470,161);
setcolor(DARKGRAY);
outtextxy(30,200,"Enter your name (10 char max)");
outtextxy(30,270,"Enter your balance (1000 min)");
outtextxy(30,340,"Enter your address (25 char max)");
setcolor(WHITE);
rectangle(300,190,470,210);
setfillstyle(SOLID_FILL,WHITE);
floodfill(310,195,WHITE);
line(472,212,472,189);
line(472,212,299,212);
setcolor(DARKGRAY);
line(300,190,300,210);
line(300,190,470,190);
line(299,189,299,211);
line(299,189,471,189);
setcolor(WHITE);
rectangle(300,260,470,280);
setfillstyle(SOLID_FILL,WHITE);
floodfill(310,265,WHITE);
line(472,282,472,259);
line(472,282,299,282);
setcolor(DARKGRAY);
line(300,260,300,280);
line(300,260,470,260);
line(299,259,299,281);
line(299,259,471,259);
setcolor(WHITE);
rectangle(300,330,470,350);
setfillstyle(SOLID_FILL,WHITE);
floodfill(310,335,WHITE);
line(472,352,472,329);
line(472,352,299,352);
setcolor(DARKGRAY);
line(300,330,300,350);
line(300,330,470,330);
line(299,329,299,351);
line(299,329,471,329);
}
void list_all(void){
struct date d;
getdate(&d);
list_all_gui();
ifstream pfile("main");
int count=0;
char string[10];
while(string[0]!=NULL){
pfile>>string;
++count;
}
--count;
pfile.close();
ifstream pfile2("main");
for(int var=count;var>0;--var)
{
pfile2>>string;
if((var!=count)&&(string!=NULL))
print_it(string);
}
pfile2.close();

gotoxy(80,25);
getch();
cleardevice();
closegraph();
process();
}
void print_it(char *name){
static value=0;
char address[25];
char account_no[5];
char balance[5];
char withdraw[30];
char date[20];
char deposit[30];
ifstream pfile(name);
pfile>>account_no;
pfile>>name;
pfile>>balance;
pfile>>address;
pfile>>date;
pfile>>deposit;
pfile>>withdraw;
pfile.close();
gotoxy(6,10+value);
cout<<"#";
gotoxy(10,value+10);
cout<<account_no;
gotoxy(14,value+10);
cout<<name;
gotoxy(25,value+10);
cout<<balance;
gotoxy(35,value+10);
cout<<address;
gotoxy(50,value+10);
cout<<date;
++value;
}
void list_all_gui(void){
int dr=9,mode=2;
initgraph(&dr,&mode,"..\\bgi");
setfillstyle(SOLID_FILL,LIGHTGRAY);
setcolor(DARKGRAY);
rectangle(1,1,640,480);
floodfill(3,3,DARKGRAY);
setcolor(WHITE);
line(1,1,1,480);
line(1,1,640,1);
setcolor(BLUE);
rectangle(3,3,637,15);
setfillstyle(SOLID_FILL,BLUE);
floodfill(5,5,BLUE);
setcolor(DARKGRAY);
rectangle(620,4,635,14);
rectangle(602,4,617,14);
rectangle(585,4,599,14);
setfillstyle(SOLID_FILL,LIGHTGRAY);
floodfill(586,6,DARKGRAY);
floodfill(604,6,DARKGRAY);
floodfill(624,6,DARKGRAY);
setcolor(BLACK);
line(622,6,633,12);
line(633,6,622,12);
rectangle(604,6,615,12);
line(587,12,597,12);
setcolor(WHITE);
line(620,4,620,14);
line(620,4,635,4);
line(602,4,617,4);
line(602,4,602,14);
line(584,4,599,4);
line(584,4,584,14);
outtextxy(8,5,"BANKING SYSTEM");
setcolor(WHITE);
line(5,30,635,30);
line(5,60,635,60);
setcolor(DARKGRAY);
line(5,29,635,29);
line(5,59,635,59);
setcolor(DARKGRAY);
outtextxy(40,40,"B A N K I N G S Y S T E M designed for national bank of pakistan");
rectangle(10,70,300,100);
setcolor(WHITE);
line(9,69,9,100);
line(10,69,300,69);
setcolor(DARKGRAY);
outtextxy(30,80,"A C C O U N T L I S T I N G S");
setcolor(WHITE);
rectangle(30,110,610,450);
setfillstyle(SOLID_FILL,WHITE);
floodfill(35,115,WHITE);
line(612,452,612,109);
line(612,452,29,452);
setcolor(DARKGRAY);
line(30,110,30,450);
line(30,110,610,110);
line(29,110,29,450);
line(29,109,610,109);
}
void trans_menu(void)
{
int check;
check=trans_gui();

if(check==1)
{
show_trans();
see_it();
}
if(check==2)
{
mod_choice();
}
getch();
cleardevice();
closegraph();
process();
}
int trans_gui(void){
int dr=9,mode=2,option;
initgraph(&dr,&mode,"..\\bgi");
void *main_menu,*button_down;
int size;
size=imagesize(10,110,251,201);
main_menu=malloc(size);
size=imagesize(10,310,251,351);
button_down=malloc(size);
setfillstyle(SOLID_FILL,LIGHTGRAY);
setcolor(DARKGRAY);
rectangle(1,1,640,480);
floodfill(3,3,DARKGRAY);
setcolor(WHITE);
line(1,1,1,480);
line(1,1,640,1);
setcolor(BLUE);
rectangle(3,3,637,15);
setfillstyle(SOLID_FILL,BLUE);
floodfill(5,5,BLUE);
setcolor(DARKGRAY);
rectangle(620,4,635,14);
rectangle(602,4,617,14);
rectangle(585,4,599,14);
setfillstyle(SOLID_FILL,LIGHTGRAY);
floodfill(586,6,DARKGRAY);
floodfill(604,6,DARKGRAY);
floodfill(624,6,DARKGRAY);
setcolor(BLACK);
line(622,6,633,12);
line(633,6,622,12);
rectangle(604,6,615,12);
line(587,12,597,12);
setcolor(WHITE);
line(620,4,620,14);
line(620,4,635,4);
line(602,4,617,4);
line(602,4,602,14);
line(584,4,599,4);
line(584,4,584,14);
outtextxy(8,5,"BANKING SYSTEM");
setcolor(WHITE);
line(5,30,635,30);
line(5,60,635,60);
setcolor(DARKGRAY);
line(5,29,635,29);
line(5,59,635,59);
setcolor(DARKGRAY);
outtextxy(40,40,"B A N K I N G S Y S T E M designed for national bank of pakistan");
rectangle(10,70,300,100);
setcolor(WHITE);
line(9,69,9,100);
line(10,69,300,69);
setcolor(DARKGRAY);
outtextxy(30,80," ACCOUNT TRANSACTION MENU");
setcolor(DARKGRAY);
rectangle(10,110,250,150);
setcolor(BLACK);
rectangle(10,110,251,151);
setcolor(WHITE);
line(10,110,10,150);
line(10,110,250,110);
setcolor(BLACK);
outtextxy(40,130,"1. View transaction");
setcolor(DARKGRAY);
rectangle(10,160,250,200);
setcolor(BLACK);
rectangle(10,160,251,201);
setcolor(WHITE);
line(10,160,10,200);
line(10,160,250,160);
setcolor(BLACK);
outtextxy(40,180,"2. Modify transaction");
getimage(10,110,251,201,main_menu);

setcolor(WHITE);
rectangle(10,310,251,351);
setcolor(DARKGRAY);
line(10,310,10,350);
line(11,311,11,350);
line(10,310,250,310);
line(11,311,250,311);
setcolor(BLACK);
getimage(10,310,251,351,button_down);
rectangle(10,310,251,351);
setfillstyle(SOLID_FILL,LIGHTGRAY);
floodfill(15,315,BLACK);

setcolor(LIGHTGRAY);
rectangle(10,310,251,351);
setcolor(BLACK);
char check;
check=getch();
if(check==49)
{
putimage(10,110,main_menu,COPY_PUT);
putimage(10,110,button_down,COPY_PUT);
outtextxy(40,130,"1. View transaction");
option=1;
delay(600);
}
if(check==50)
{
putimage(10,110,main_menu,COPY_PUT);
putimage(10,160,button_down,COPY_PUT);
outtextxy(40,180,"2. Modify transaction");
option=2;
delay(600);
}
free(main_menu);
free(button_down);
cleardevice();
closegraph();
return(option);
}
void show_trans(void)
{
int dr=9,mode=2;
initgraph(&dr,&mode,"..\\bgi");
setfillstyle(SOLID_FILL,LIGHTGRAY);
setcolor(DARKGRAY);
rectangle(1,1,640,480);
floodfill(3,3,DARKGRAY);
setcolor(WHITE);
line(1,1,1,480);
line(1,1,640,1);
setcolor(BLUE);
rectangle(3,3,637,15);
setfillstyle(SOLID_FILL,BLUE);
floodfill(5,5,BLUE);
setcolor(DARKGRAY);
rectangle(620,4,635,14);
rectangle(602,4,617,14);
rectangle(585,4,599,14);
setfillstyle(SOLID_FILL,LIGHTGRAY);
floodfill(586,6,DARKGRAY);
floodfill(604,6,DARKGRAY);
floodfill(624,6,DARKGRAY);
setcolor(BLACK);
line(622,6,633,12);
line(633,6,622,12);
rectangle(604,6,615,12);
line(587,12,597,12);
setcolor(WHITE);
line(620,4,620,14);
line(620,4,635,4);
line(602,4,617,4);
line(602,4,602,14);
line(584,4,599,4);
line(584,4,584,14);
outtextxy(8,5,"BANKING SYSTEM");
setcolor(WHITE);
line(5,30,635,30);
line(5,60,635,60);
setcolor(DARKGRAY);
line(5,29,635,29);
line(5,59,635,59);
setcolor(DARKGRAY);
outtextxy(40,40,"B A N K I N G S Y S T E M designed for national bank of pakistan");
rectangle(10,70,200,100);
outtextxy(20,80,"SHOW TRANSACTION");
setcolor(WHITE);
line(9,70,9,100);
line(10,69,200,69);
setcolor(DARKGRAY);
line(30,170,610,170);
setcolor(WHITE);
line(30,171,610,171);
setcolor(DARKGRAY);
outtextxy(30,200,"Enter your account holder's name");
setcolor(WHITE);
rectangle(300,190,470,210);
setfillstyle(SOLID_FILL,WHITE);
floodfill(310,195,WHITE);
line(472,212,472,189);
line(472,212,299,212);
setcolor(DARKGRAY);
line(300,190,300,210);
line(300,190,470,190);
line(299,189,299,211);
line(299,189,471,189);
}
void mod_trans(void)
{
int dr=9,mode=2;
initgraph(&dr,&mode,"..\\bgi");
setfillstyle(SOLID_FILL,LIGHTGRAY);
setcolor(DARKGRAY);
rectangle(1,1,640,480);
floodfill(3,3,DARKGRAY);
setcolor(WHITE);
line(1,1,1,480);
line(1,1,640,1);
setcolor(BLUE);
rectangle(3,3,637,15);
setfillstyle(SOLID_FILL,BLUE);
floodfill(5,5,BLUE);
setcolor(DARKGRAY);
rectangle(620,4,635,14);
rectangle(602,4,617,14);
rectangle(585,4,599,14);
setfillstyle(SOLID_FILL,LIGHTGRAY);
floodfill(586,6,DARKGRAY);
floodfill(604,6,DARKGRAY);
floodfill(624,6,DARKGRAY);
setcolor(BLACK);
line(622,6,633,12);
line(633,6,622,12);
rectangle(604,6,615,12);
line(587,12,597,12);
setcolor(WHITE);
line(620,4,620,14);
line(620,4,635,4);
line(602,4,617,4);
line(602,4,602,14);
line(584,4,599,4);
line(584,4,584,14);
outtextxy(8,5,"BANKING SYSTEM");
setcolor(WHITE);
line(5,30,635,30);
line(5,60,635,60);
setcolor(DARKGRAY);
line(5,29,635,29);
line(5,59,635,59);
setcolor(DARKGRAY);
outtextxy(40,40,"B A N K I N G S Y S T E M designed for national bank of pakistan");
rectangle(10,70,200,100);
outtextxy(20,80,"MODIFY ACCOUNT");
setcolor(WHITE);
line(9,70,9,100);
line(10,69,200,69);
setcolor(DARKGRAY);
line(30,170,610,170);
setcolor(WHITE);
line(30,171,610,171);
setcolor(DARKGRAY);
outtextxy(30,200,"Enter your account holder's name");
setcolor(WHITE);
rectangle(300,190,470,210);
setfillstyle(SOLID_FILL,WHITE);
floodfill(310,195,WHITE);
line(472,212,472,189);
line(472,212,299,212);
setcolor(DARKGRAY);
line(300,190,300,210);
line(300,190,470,190);
line(299,189,299,211);
line(299,189,471,189);
}
void see_it(void){
char name[10];
char address[25];
char account_no[5];
char balance[5];
char withdraw[30];
char date[20];
char deposit[30];
gotoxy(40,13);
cout<<" ";
cin>>name;
ifstream pfile(name);
pfile>>account_no;
pfile>>name;
pfile>>balance;
pfile>>address;
pfile>>date;
pfile>>deposit;
pfile>>withdraw;
pfile.close();
report();
gotoxy(20,10);
cout<<"ACCOUNT HOLDER NAME: "<<name<<endl;
gotoxy(20,11);
cout<<"DATE OF ISSUE: "<<date<<endl;
gotoxy(20,12);
cout<<"BALANCE LEFT: "<<balance<<endl;
gotoxy(20,13);
cout<<"ADDRESS: "<<address<<endl;
cout<<endl;
gotoxy(20,15);
cout<<"TRANSACTION REPORT"<<endl;
gotoxy(20,16);
cout<<"DEPOSIT REPORT: "<<deposit<<endl;
gotoxy(20,17);
cout<<"WITH DRAW REPORT: "<<withdraw<<endl;
}
void report(void)
{
int dr=9,mode=2;
initgraph(&dr,&mode,"..\\bgi");
setfillstyle(SOLID_FILL,LIGHTGRAY);
setcolor(DARKGRAY);
rectangle(1,1,640,480);
floodfill(3,3,DARKGRAY);
setcolor(WHITE);
line(1,1,1,480);
line(1,1,640,1);
setcolor(BLUE);
rectangle(3,3,637,15);
setfillstyle(SOLID_FILL,BLUE);
floodfill(5,5,BLUE);
setcolor(DARKGRAY);
rectangle(620,4,635,14);
rectangle(602,4,617,14);
rectangle(585,4,599,14);
setfillstyle(SOLID_FILL,LIGHTGRAY);
floodfill(586,6,DARKGRAY);
floodfill(604,6,DARKGRAY);
floodfill(624,6,DARKGRAY);
setcolor(BLACK);
line(622,6,633,12);
line(633,6,622,12);
rectangle(604,6,615,12);
line(587,12,597,12);
setcolor(WHITE);
line(620,4,620,14);
line(620,4,635,4);
line(602,4,617,4);
line(602,4,602,14);
line(584,4,599,4);
line(584,4,584,14);
outtextxy(8,5,"BANKING SYSTEM");
setcolor(WHITE);
line(5,30,635,30);
line(5,60,635,60);
setcolor(DARKGRAY);
line(5,29,635,29);
line(5,59,635,59);
setcolor(DARKGRAY);
outtextxy(40,40,"B A N K I N G S Y S T E M designed for national bank of pakistan");
rectangle(10,70,300,100);
setcolor(WHITE);
line(9,69,9,100);
line(10,69,300,69);
setcolor(DARKGRAY);
outtextxy(30,80,"TRANSACTION REPORT");
setcolor(WHITE);
rectangle(30,110,610,450);
setfillstyle(SOLID_FILL,WHITE);
floodfill(35,115,WHITE);
line(612,452,612,109);
line(612,452,29,452);
setcolor(DARKGRAY);
line(30,110,30,450);
line(30,110,610,110);
line(29,110,29,450);
line(29,109,610,109);
}
void deposite(void){
char name[10];
gotoxy(40,13);
cout<<" ";
cin>>name;
int val_dep;
char tmp_dep[5];
char address[25];
char dat[10];
char deposit[30];
char withdraw[40];
int account_no;
int balance;
ifstream pfile(name);
pfile>>account_no;
pfile>>name;
pfile>>balance;
pfile>>address;
pfile>>dat;
pfile>>deposit;
pfile>>withdraw;
dep_gui();
gotoxy(5,8);
cout<<account_no<<name<<balance<<dat<<deposit<<address<<withdraw<<endl;
pfile.close();
strcat(deposit,"#");
gotoxy(40,13);
cout<<" ";
cin>>tmp_dep;
strcat(deposit,tmp_dep);
val_dep=atoi(tmp_dep);
balance+=val_dep;
ofstream pfile2(name);
pfile2<<account_no<<endl;
pfile2<<name<<endl;
pfile2<<balance<<endl;
pfile2<<address<<endl;
pfile2<<dat<<endl;
pfile2<<deposit<<endl;
pfile2<<withdraw;
pfile2.close();
cleardevice();
closegraph();
process();
}
void dep_gui(void)
{
int dr=9,mode=2;
initgraph(&dr,&mode,"..\\bgi");
setfillstyle(SOLID_FILL,LIGHTGRAY);
setcolor(DARKGRAY);
rectangle(1,1,640,480);
floodfill(3,3,DARKGRAY);
setcolor(WHITE);
line(1,1,1,480);
line(1,1,640,1);
setcolor(BLUE);
rectangle(3,3,637,15);
setfillstyle(SOLID_FILL,BLUE);
floodfill(5,5,BLUE);
setcolor(DARKGRAY);
rectangle(620,4,635,14);
rectangle(602,4,617,14);
rectangle(585,4,599,14);
setfillstyle(SOLID_FILL,LIGHTGRAY);
floodfill(586,6,DARKGRAY);
floodfill(604,6,DARKGRAY);
floodfill(624,6,DARKGRAY);
setcolor(BLACK);
line(622,6,633,12);
line(633,6,622,12);
rectangle(604,6,615,12);
line(587,12,597,12);
setcolor(WHITE);
line(620,4,620,14);
line(620,4,635,4);
line(602,4,617,4);
line(602,4,602,14);
line(584,4,599,4);
line(584,4,584,14);
outtextxy(8,5,"BANKING SYSTEM");
setcolor(WHITE);
line(5,30,635,30);
line(5,60,635,60);
setcolor(DARKGRAY);
line(5,29,635,29);
line(5,59,635,59);
setcolor(DARKGRAY);
outtextxy(40,40,"B A N K I N G S Y S T E M designed for national bank of pakistan");
rectangle(10,70,200,100);
outtextxy(20,80,"MODIFY ACCOUNT");
setcolor(WHITE);
rectangle(30,110,610,130);
setfillstyle(SOLID_FILL,WHITE);
floodfill(310,115,WHITE);
line(612,132,612,109);
line(612,132,29,132);
setcolor(DARKGRAY);
line(30,110,30,130);
line(30,110,610,110);
line(29,109,29,131);
line(29,109,611,109);
setcolor(WHITE);
line(9,70,9,100);
line(10,69,200,69);
setcolor(DARKGRAY);
line(30,170,610,170);
setcolor(WHITE);
line(30,171,610,171);
setcolor(DARKGRAY);
outtextxy(30,200,"Enter the amount to deposite");
setcolor(WHITE);
rectangle(300,190,470,210);
setfillstyle(SOLID_FILL,WHITE);
floodfill(310,195,WHITE);
line(472,212,472,189);
line(472,212,299,212);
setcolor(DARKGRAY);
line(300,190,300,210);
line(300,190,470,190);
line(299,189,299,211);
line(299,189,471,189);
}
int mod_menu(void)
{
int dr=9,mode=2;
initgraph(&dr,&mode,"..\\bgi");
void *main_menu,*button_down;
int size;
size=imagesize(10,110,251,201);
main_menu=malloc(size);
size=imagesize(10,310,251,351);
button_down=malloc(size);
setfillstyle(SOLID_FILL,LIGHTGRAY);
setcolor(DARKGRAY);
rectangle(1,1,640,480);
floodfill(3,3,DARKGRAY);
setcolor(WHITE);
line(1,1,1,480);
line(1,1,640,1);
setcolor(BLUE);
rectangle(3,3,637,15);
setfillstyle(SOLID_FILL,BLUE);
floodfill(5,5,BLUE);
setcolor(DARKGRAY);
rectangle(620,4,635,14);
rectangle(602,4,617,14);
rectangle(585,4,599,14);
setfillstyle(SOLID_FILL,LIGHTGRAY);
floodfill(586,6,DARKGRAY);
floodfill(604,6,DARKGRAY);
floodfill(624,6,DARKGRAY);
setcolor(BLACK);
line(622,6,633,12);
line(633,6,622,12);
rectangle(604,6,615,12);
line(587,12,597,12);
setcolor(WHITE);
line(620,4,620,14);
line(620,4,635,4);
line(602,4,617,4);
line(602,4,602,14);
line(584,4,599,4);
line(584,4,584,14);
outtextxy(8,5,"BANKING SYSTEM");
setcolor(WHITE);
line(5,30,635,30);
line(5,60,635,60);
setcolor(DARKGRAY);
line(5,29,635,29);
line(5,59,635,59);
setcolor(DARKGRAY);
outtextxy(40,40,"B A N K I N G S Y S T E M designed for national bank of pakistan");
rectangle(10,70,300,100);
setcolor(WHITE);
line(9,69,9,100);
line(10,69,300,69);
setcolor(DARKGRAY);
outtextxy(30,80,"MODIFY ACCOUNT");
setcolor(DARKGRAY);
rectangle(10,110,250,150);
setcolor(BLACK);
rectangle(10,110,251,151);
setcolor(WHITE);
line(10,110,10,150);
line(10,110,250,110);
setcolor(BLACK);
outtextxy(40,130,"1. Want to deposite");
setcolor(DARKGRAY);
rectangle(10,160,250,200);
setcolor(BLACK);
rectangle(10,160,251,201);
setcolor(WHITE);
line(10,160,10,200);
line(10,160,250,160);
setcolor(BLACK);
outtextxy(40,180,"2. Want to withdraw");
getimage(10,110,251,201,main_menu);

setcolor(WHITE);
rectangle(10,310,251,351);
setcolor(DARKGRAY);
line(10,310,10,350);
line(11,311,11,350);
line(10,310,250,310);
line(11,311,250,311);
setcolor(BLACK);
getimage(10,310,251,351,button_down);
rectangle(10,310,251,351);
setfillstyle(SOLID_FILL,LIGHTGRAY);
floodfill(15,315,BLACK);
int option;
setcolor(LIGHTGRAY);
rectangle(10,310,251,351);
setcolor(BLACK);
char check;
check=getch();
if(check==49)
{
putimage(10,110,main_menu,COPY_PUT);
putimage(10,110,button_down,COPY_PUT);
outtextxy(40,130,"1. Want to deposite");
option=1;
delay(600);
}
if(check==50)
{
putimage(10,110,main_menu,COPY_PUT);
putimage(10,160,button_down,COPY_PUT);
outtextxy(40,180,"2. Want to withdraw");
option=2;
delay(600);
}
free(main_menu);
free(button_down);
return(option);
}
void mod_choice(void)
{
int check;
check=mod_menu();
if(check==1)
{
mod_trans();
deposite();
}
if(check==2)
{
mod_trans();
withdraw();
}
}
void withdraw(void){
int tmp;
char name[10];
char tmp_with[10];
char address[25];
char dat[10];
char deposit[40];
char withdraw[40];
int account_no;
int balance;
gotoxy(40,13);
cout<<" ";
cin>>name;
ifstream pfile(name);
pfile>>account_no;
pfile>>name;
pfile>>balance;
pfile>>address;
pfile>>dat;
pfile>>deposit;
pfile>>withdraw;
withdraw[0]=32;
cout<<account_no<<name<<balance<<dat<<deposit<<address<<withdraw<<endl;
pfile.close();
strcat(withdraw,"#");
gotoxy(40,13);
cout<<" ";
cin>>tmp;
itoa(tmp,tmp_with,10);
strcat(withdraw,tmp_with);
balance-=tmp;
ofstream pfile2(name);
pfile2<<account_no<<endl;
pfile2<<name<<endl;
pfile2<<balance<<endl;
pfile2<<address<<endl;
pfile2<<dat<<endl;
pfile2<<deposit<<endl;
pfile2<<withdraw;
pfile2.close();
cleardevice();
closegraph();
process();
}

Primary Advantage of BAS: 

The main advantage of BAS is that, it will become a powerful tool in establishment of better system in comparison of the existing system. It helps to protect the system from the corruption. After installation of BAS in the bank, there is a greater possibility of stabilization a clear and fair system, which will be accurate, update and fast. There is no doubt that there always remains some scope of improvement. 

The important thing is that the system developed should be flexible to accommodate any future enhancements. This system can be used to provide some enhancement without rewriting of existing code.

download Project Report  and sample code of  CSE Bank account C Project  .