-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain_Code
More file actions
2031 lines (1906 loc) · 44 KB
/
Main_Code
File metadata and controls
2031 lines (1906 loc) · 44 KB
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
/*UNITY BANK*/
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
#include<time.h>
#include<dos.h>
#include<dir.h>
int main(void)
{
char em[1],singleline[10],userfile[10000],col[500],dob[500],u[100] ,just[60000],xi[60000] ,hmm[10000],op[60000],vp[200],ap[1000],lk[100],wp[1000],jk[10000],ab[10000],state[1000],colony[1000],az[100],reason[10000],id[1000],problem[65000],ok[1000],sug[10000],str[20];
int otp,number,stat,einnn=0,einn=0,chee=' ',cheee=' ',ein=0,che=' ',t,i,amount,newpin,gph,credit,date,month,mon,name3,account,pin,live,see,code,x,no,cd,bc,c,C,y,a,w,z,k,d,luck, e,D,r,f,ag,o,l,p,h,as,ak,ad,au,ju,name1,name2 ,proof,acc,rate,passcode,money,trans,Account;
textbackground(19);
textcolor(BLUE);
unsigned long long int lone=0,loneam=0,ar=0,arR=0,j=0;
newpin=8543;
clrscr();
time_t s, val = 1;
struct tm* current_time;
// time in seconds
s = time(NULL);
// to get current time
current_time = localtime(&s);
// print time in minutes,
// hours and seconds
time_t dk;
dk = time(NULL);
struct tm tm = *localtime(&dk);
date=tm.tm_mday;
month=tm.tm_mon+1;
newpin=1543+current_time->tm_hour+ current_time->tm_min+current_time->tm_sec+date+month+tm.tm_year+1900;
printf("\n\t\t\t\tVIRTUAL BANK");
printf("\n\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t ");
{
printf("\n\n\n\n\n WELCOME TO UNITY BANK \n\n\t\t\t (SECURED BY YUKOMZ) ");
printf("\n\n\n\n\n\n\nPRESS ENTER TO CONTINUE");
getch();
clrscr();
printf("\n\n\n\nEnter Bank's login CODE: ");
while (einnn<=3)
{
str[einnn]=getche();
cheee=str[einnn];
if(cheee==13) break;
else printf("");
einnn++;
}
str[einnn]='\0';
passcode=atoi(str);
sound(400);
delay(200);
nosound();
if(passcode==2000)
{
clrscr();
printf("LOGIN TIME: %02d:%02d:%02d",
current_time->tm_hour,
current_time->tm_min,
current_time->tm_sec);
printf("\t\t\t\tCurrent Date: %d-%d-%d", tm.tm_mday, tm.tm_mon+1, tm.tm_year+1900);
printf("\n\n\n Press 1 to Transfer money\n\n Press 2 for transaction\n\n Press 3 for Forex Exchange\n\n Press 4 to get more information about US.\n\n Press 5 to file Application for loan.\n\n Press 6 for Application for New Account.\n\n Press 7 to CONTACT US.\n\n Press 8 to Register any issue\n\n Press 9 to have LIVE CHAT\n\n Press 10 to see YOUR DETAILS\n ");
scanf("%d",&a);
clrscr();
switch(a)
{
case 1:
printf("\n\n\t\t\t WELCOME TO TRANSFER UNIT");
printf("\n\nPlease enter your account no::7567 ");
scanf("%d",&mon);
Account=mon;
printf("\n\n\nPlease enter your secret code::");
while (ein<=3)
{
str[ein]=getch();
che=str[ein];
if(che==13) break;
else printf("*");
ein++;
}
str[ein]='\0';
w=atoi(str);
clrscr();
gph=mon-113;
sound(400);
delay(200);
nosound();
if(w==gph)
{
otp= (rand() % 100+rand()%100*100)+7819;
printf("\nCODE:%d\n",otp);
printf("\n\nPlease Enter The Above Code:::");
scanf("%d",&number);
if(number!=otp)
{
clrscr();
printf("\n\n\n!!SORRY!! LAST TRANSACTION CANCELLED");
getch();
exit(1);
}
if(number==otp)
{clrscr();
printf("\n\n\nVerifying..........");
printf("\n\nPlease enter amount:");
scanf("%lld",&j);
money=j;
if(j>10000)
{
clrscr();
printf("\n\n\n\n\n\n\t\t\t!!Sorry You cannot Tranfer More than 10000 at a Time!!");
getch();
exit(1);
}
printf("\n\nProcessing amount.....");
printf("\n\nEnter Account NO. to Transfer Money:::");
scanf("%d",&account);
trans=account;
FILE * fp1;
sprintf(userfile,"t%d.txt",account);
fp1 = fopen(userfile, "r");
if(fp1==NULL)
{
clrscr();
printf("\n\n\n\n\n\t\t\t!!SORRY!! NO SUCH ACCOUNT HAS BEEN CREATED!");
getch();
exit(1);
}
if(fp1!=NULL)
{
printf("\n\nROBOT TEST \t\t(Press Enter)");
getch();
clrscr();
if(j<10001)
{
fclose(fp1);
FILE * fp;
sprintf(userfile,"t%d.txt",mon);
fp = fopen(userfile, "r");
if(fp==NULL)
{
clrscr();
sound(400);
delay(200);
nosound();
printf("\n\n\n!!SORRY!!NO SUCH ACCOUNT HAS BEEN CREATED");
exit(1);
}
if(fp!=NULL)
{
fscanf(fp,"%lld",&ar);
while(!feof(fp))
{
fscanf(fp,"%lld",&ar);
}
fclose(fp);
if(ar+1>j)
{
FILE * fPointer1;
sprintf(userfile,"t%d.txt",mon);
fPointer1= fopen(userfile,"w");
arR=ar-j;
fprintf(fPointer1,"%lld",arR);
fclose(fPointer1);
sound(400);
delay(200);
nosound();
FILE * fPointer;
fPointer = fopen("transaction.txt","a");
fprintf(fPointer,"\nDATE : %d/0%d/2021",date,month);
fprintf(fPointer,"\n7567 %d account",mon);
fprintf(fPointer,"\nTransfer amount %d",j);
fprintf(fPointer,"\nTransfer to %d",account);
fprintf(fPointer,"\nTIME>%02d:%02d:%02d",
current_time->tm_hour,
current_time->tm_min,
current_time->tm_sec);
fprintf(fPointer,"\nAvailable Amount : %11u\n\n",arR);
fclose(fPointer);
FILE*pf;
sprintf(userfile, "%dh.txt",mon);
pf = fopen(userfile, "a");
fprintf(pf,"\nDATE : %d/0%d/2021",date,month);
fprintf(pf,"\n7567 %d account",mon);
fprintf(pf,"\nTransfer amount %d",j);
fprintf(pf,"\nTransfer to %d",account);
fprintf(pf,"\nTIME>%02d:%02d:%02d",
current_time->tm_hour,
current_time->tm_min,
current_time->tm_sec);
fprintf(pf,"\nAvailable Money : %d\n\n",arR);
fclose(pf);
printf("\n\n\nAVAILABLE AMOUNT:::%d\n\n",arR);
getch();
FILE*fp;
fp = fopen("ammount.txt", "r");
fscanf(fp,"%lld",&ar);
while(!feof(fp))
{
fscanf(fp,"%lld",&ar);
}
fclose(fp);
fPointer1 = fopen("ammount.txt","w");
arR=ar-j;
fprintf(fPointer1,"%lld",arR);
fclose(fPointer1);
if(j<10001)
{
FILE * fp;
sprintf(userfile,"t%d.txt",account);
fp = fopen(userfile, "r");
if(fp==NULL)
{clrscr();
sound(400);
delay(200);
nosound();
printf("\n\n\n!!SORRY!!NO SUCH ACCOUNT HAS BEEN CREATED");
exit(1);
}
if(fp!=NULL)
{
fscanf(fp,"%lld",&ar);
while(!feof(fp))
{
fscanf(fp,"%lld",&ar);
}
fclose(fp);
FILE * fPointer1;
sprintf(userfile,"t%d.txt",account);
fPointer1= fopen(userfile,"w");
arR=ar+j;
fprintf(fPointer1,"%lld",arR);
fclose(fPointer1);
FILE * fPointer;
fPointer = fopen("transaction.txt","a");
fprintf(fPointer,"\n\nDATE : %d/0%d/2021",date,month);
fprintf(fPointer,"\n7567 %d account",account);
fprintf(fPointer,"\nTransfer Recieve amount %d",j);
fprintf(fPointer,"\nAmount Sent From %d",mon);
fprintf(fPointer,"\nTIME>%02d:%02d:%02d",
current_time->tm_hour,
current_time->tm_min,
current_time->tm_sec);
fprintf(fPointer,"\nAvailable Money : %d\n\n",arR);
fclose(fPointer);
FILE * pf;
sprintf(userfile, "%dh.txt",account);
pf = fopen(userfile, "a");
fprintf(pf,"\nDATE : %d/0%d/2021",date,month);
fprintf(pf,"\n7567 %d account",account);
fprintf(pf,"\nTransfer Recieve amount %d",j);
fprintf(pf,"\nAmount Sent From %d",mon);
fprintf(pf,"\nTIME>%02d:%02d:%02d",
current_time->tm_hour,
current_time->tm_min,
current_time->tm_sec);
fprintf(pf,"\nAvailable Money : %d\n\n",arR);
fclose(pf);
clrscr();
printf("\n\n%d Ammount Succesfully Sent from 7536 %d to 7536 %d\n\n",money,Account,trans);
getch();
FILE*fp;
fp = fopen("ammount.txt", "r");
fscanf(fp,"%lld",&ar);
while(!feof(fp))
{
fscanf(fp,"%lld",&ar);
}
fclose(fp);
fPointer1= fopen("ammount.txt","w");
arR=ar+j;
fprintf(fPointer1,"%lld",arR);
fclose(fPointer1);
if(ar+1<j)
{clrscr();
sound(400);
delay(200);
nosound();
sound(400);
delay(200);
nosound();
printf("\n\n\n!!SOORY!!INSUFFICIENT BALANCE");
printf("\n\nAVAILABLE BALANCE:::%lld",ar);
if(ar<50)
{
textattr(2 + ((8) << 4));
cprintf("Low Balance");
}
}
}}}}}}}}
clrscr();
printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tTHANKS FOR CHOOSING UNITY BANK");
getch();
break;
case 2:
textattr(1 + ((3) <<4));
clrscr();
printf("\n\n\n>Press 1 for Widthdrawl\n\n\n>Press 2 for Deposition.\n\n");
scanf("%d",&p);
clrscr();
if(p==1)
{
printf("\n\n\t\t\t WELCOME TO WIDTHDRAWL UNIT");
printf("\n\nPlease enter your account no::7567 ");
scanf("%d",&mon);
printf("\n\n\nPlease enter your secret code::");
while (ein<=3
){
str[ein]=getch();
che=str[ein];
if(che==13) break;
else printf("*");
ein++;
}
str[ein]='\0';
w=atoi(str);
clrscr();
gph=mon-113;
sound(400);
delay(200);
nosound();
if(w==gph)
{
clrscr();
printf("\n\n\nVerifying..........");
printf("\n\nPlease enter amount:");
scanf("%lld",&j);
if(j>10000)
{
clrscr();
textattr(2 + ((8) << 4));
printf("\n\n\n\n\n!!Sorry Amount exceeds 10000!!");
getch();
exit(1);
}
printf("\n\nProcessing amount.....");
printf("\n\nROBOT TEST \t\t(Press Enter)");
getch();
clrscr();
if(j<10001)
{
FILE * fp;
sprintf(userfile,"t%d.txt",mon);
fp = fopen(userfile, "r");
if(fp==NULL)
{
clrscr();
sound(400);
delay(200);
nosound();
textattr(2 + ((8) << 4));
printf("\n\n\n!!SORRY!!NO SUCH ACCOUNT HAS BEEN CREATED");
getch();
}
if(fp!=NULL)
{
fscanf(fp,"%lld",&ar);
while(!feof(fp))
{
fscanf(fp,"%lld",&ar);
}
if(fp==NULL)
{
sound(400);
delay(200);
nosound();
textattr(2 + ((8) << 4));
printf("\n\n\n!!SORRY!!NO SUCH ACCOUNT HAS BEEN CREATED");
fclose(fp);
}
if(ar+1>j)
{
int otp,otp1;
otp=random(1000)+17890;
printf("\n\nOTP : %d\n",otp);
printf("Enter The above No. To Continue :");
scanf("%d",&otp1);
if(otp1!=otp)
{
clrscr();
printf("\nLast Transaction was cancelled:");
printf("\n\n!SORRY!");
getch();
exit(1);
}
FILE * fPointer1;
sprintf(userfile,"t%d.txt",mon);
fPointer1= fopen(userfile,"w");
arR=ar-j;
fprintf(fPointer1,"%lld",arR);
fclose(fPointer1);
sound(400);
delay(200);
nosound();
printf("\n\nKINDLY COLLECT AMOUNT:::%lld",j);
FILE * fPointer;
fPointer = fopen("transaction.txt","a");
fprintf(fPointer,"\nDATE : %d/0%d/2021",date,month);
fprintf(fPointer,"\n7567 %d account",mon);
fprintf(fPointer,"\nWidthdrawl amount %d",j);
fprintf(fPointer,"\nTIME>%02d:%02d:%02d",
current_time->tm_hour,
current_time->tm_min,
current_time->tm_sec);
fprintf(fPointer,"\nAvailable Amount : %lld\n\n",arR);
fclose(fPointer);
FILE * pf= NULL;
sprintf(userfile, "%dh.txt",mon);
pf = fopen(userfile, "a");
fprintf(pf,"\nDATE : %d/0%d/2021",date,month);
fprintf(pf,"\n7567 %d account",mon);
fprintf(pf,"\nWidthdrawl amount %d",j);
fprintf(pf,"\nTIME>%02d:%02d:%02d",
current_time->tm_hour,
current_time->tm_min,
current_time->tm_sec);
fprintf(pf,"\nPIN : %d",w);
fprintf(pf,"\nAvailable Money : %11u\n\n",arR);
fclose(pf);
printf("\n\n\nAVAILABLE AMOUNT:::%11u",arR);
if(arR<50)
{
textattr(2 + ((8) << 4));
printf("Low Balance");
}
long int ar=0;
fp = fopen("ammount.txt", "r");
fscanf(fp,"%lld",&ar);
while(!feof(fp))
{
fscanf(fp,"%lld",&ar);
}
fclose(fp);
fPointer1 = fopen("ammount.txt","w");
arR=ar-j;
fprintf(fPointer1,"%lld",arR);
fclose(fPointer1);
}
if(ar+1<j)
{clrscr();
sound(400);
delay(200);
nosound();
sound(400);
delay(200);
nosound();
textattr(1 + ((3) <<6));
printf("\n\n\n!!SOORY!!INSUFFICIENT BALANCE");
printf("\n\nAVAILABLE BALANCE:::%lld",ar);
if(ar<50)
{ textattr(2 + ((8) << 4));
printf("Low Balance");
}
}
}
getch();
}
}
}
if (p==2)
{
printf("\n\n\t\t\t WELCOME TO DEPOSITION UNIT");
printf("\n\nPlease enter your account no::7567 ");
scanf("%d",&mon);
printf("\n\n\nPlease enter your secret code::");
while (ein<=3
){
str[ein]=getch();
che=str[ein];
if(che==13) break;
else printf("*");
ein++;
}
str[ein]='\0';
w=atoi(str);
clrscr();
sound(400);
delay(200);
nosound();
if(w==mon-113)
{
int otp,number;
otp= (rand() % 100+rand()%100*100)+7819;
printf("\nCODE:%d\n",otp);
printf("\n\nPlease Enter The Above Code:::");
scanf("%d",&number);
if(number!=otp)
{
clrscr();
printf("\n\n\n!!SORRY!! LAST TRANSACTION CANCELLED");
getch();
exit(1);
}
if(number==otp)
{clrscr();
printf("\n\n\nVerifying.........");
printf("\n\nPlease enter deposit amount:");
scanf("%lld",&j);
if(j>10000)
{
clrscr();
printf("\n\n\n\n\n!!Sorry Amount exceeds 10000!!");
getch();
exit(1);
}
if(j<10001)
{
printf("\n\nProcessing amount.....");
printf("\n\nROBOT TEST \t\t(Press Enter)");
getch();
int otp,otp1;
otp=random(1000)+17890;
printf("\n\nOTP : %d\n",otp);
printf("Enter The above No. To Continue :");
scanf("%d",&otp1);
if(otp1!=otp)
{
clrscr();
printf("\nLast Transaction was cancelled:");
printf("\n\n!SORRY!");
getch();
exit(1);
}
clrscr();
printf("\n\n\n\nKindly deposit amount %lld",j);
sound(400);
delay(200);
nosound();
FILE * fp;
sprintf(userfile,"t%d.txt",mon);
fp = fopen(userfile, "r");
if(fp==NULL)
{clrscr();
sound(400);
delay(200);
nosound();
textattr(2 + ((8) << 4));
printf("\n\n\n!!SORRY!!NO SUCH ACCOUNT HAS BEEN CREATED");
getch();
}
if(fp!=NULL)
{
fscanf(fp,"%lld",&ar);
while(!feof(fp))
{
fscanf(fp,"%lld",&ar);
}
FILE * fPointer1;
sprintf(userfile,"t%d.txt",mon);
fPointer1= fopen(userfile,"w");
arR=ar+j;
fprintf(fPointer1,"%lld",arR);
fclose(fPointer1);
FILE * fPointer;
fPointer = fopen("transaction.txt","a");
fprintf(fPointer,"\n\nDATE : %d/0%d/2021",date,month);
fprintf(fPointer,"\n7567 %d account",mon);
fprintf(fPointer,"\nDeposition amount %lld",j);
fprintf(fPointer,"\nTIME>%02d:%02d:%02d",
current_time->tm_hour,
current_time->tm_min,
current_time->tm_sec);
fprintf(fPointer,"\nAvailable Money : %lld\n\n",arR);
fclose(fPointer);
FILE * pf=NULL;
sprintf(userfile, "%dh.txt",mon);
pf = fopen(userfile, "a");
fprintf(pf,"\nDATE : %d/0%d/2021",date,month);
fprintf(pf,"\n7567 %d account",mon);
fprintf(pf,"\nDeposition amount %lld",j);
fprintf(pf,"\nTIME>%02d:%02d:%02d",
current_time->tm_hour,
current_time->tm_min,
current_time->tm_sec);
fprintf(pf,"\nAvailable Money : %lld\n\n",arR);
fclose(pf);
textattr(1 + ((3) <<4));
printf("\n\n\nAVAILABLE AMOUNT:::%lld",arR);
fp = fopen("ammount.txt", "r");
fscanf(fp,"%lld",&ar);
while(!feof(fp))
{
fscanf(fp,"%lld",&ar);
}
fclose(fp);
fPointer1= fopen("ammount.txt","w");
arR=ar+j;
fprintf(fPointer1,"%lld",arR);
fclose(fPointer1);
getch();
}}
}}}
clrscr();
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tTHANKS FOR CHOOSING UNITY BANK");
break;
case 3:
textattr(1 + ((3) <<4));
printf("\n\t\t\t FOREX EXCHANGE");
printf("\n\n\nROBOT CHECK \t\t\t\t\t(PRESS ENTER 3 TIMES)");
getch();
getch();
getch();
printf("\n\n\nYOU PROVED TO BE HUMAN");
printf("\n\n\tACCOUNT NO: 7567 ");
scanf("%d",&acc);
FILE * pff;
sprintf(userfile, "%d.txt",acc);
pff = fopen(userfile, "r");
if(pff==NULL)
{
textattr(2 + ((8) << 4));
printf("\n\n\nNO SUCH ACCOUNT HAS BEEN CREATED ");
textattr(1 + ((3) <<4));
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tTHANKS FOR CHOOSING UNITY BANK");
exit(1);
}
if(pff!=NULL)
{
printf("\n\n\tPIN:");
while (ein<=3
){
str[ein]=getch();
che=str[ein];
if(che==13) break;
else printf("*");
ein++;
}
str[ein]='\0';
w=atoi(str);
}
fclose(pff);
if(w==acc-113)
{
FILE* fPointer;
fPointer = fopen("forex.txt","a");
clrscr();
printf("\n\n\tWE HAVE ABOVE CURRENCY");
printf("\n\n\n\tU.S. DOLLARS \n\tEUROS\n\tDHIRAM");
printf("\n\n>Press 1 for Dollars to RUPPEES\n>Press 2 for EUROS to RUPPEES\n>Press 3 for DHIRAM to RUPPEES\n ");
scanf("%d",&x);
if(x==1)
{ textattr(1 + ((3) <<4));
printf("\nEnter Dollars :");
scanf("%lld",&d);
if(d<451)
{
r=d*76;
printf("\nYOU GET %lld RUPPEES OF %lld DOLLARS",r,d);
fprintf(fPointer,"\n\nACCOUNT NO : 7567 %lld get %lld RUPPEES of %lld DOLLARS",acc,r,d);
}
if(d>450)
{clrscr();
printf("!!SORRY WE DON't GIVE MORE THAN 450 USD");
}
getch();
}
if(x==2)
{ textattr(1 + ((3) <<4));
printf("\nEnter Euros :");
scanf("%lld",&e);
if(e<401)
{
r=e*85;
printf("YOU GET %lld RUPPEES OF %lld EUROS",r,e);
fprintf(fPointer,"\n\nACCOUNT NO : 7567 %lld get %lld RUPPEES of %lld EUROS",acc,r,e);
getch();
}
if(e>400)
{
clrscr();
printf("!!SORRY WE DON't GIVE MORE THAN 400 EUROS");
}
}
if(x==3)
{ textattr(1 + ((3) <<4));
printf("\nEnter Dhirams :");
scanf("%lld",&D);
r=20*D;
if(D<1701)
{
printf("YOU GET %lld RUPPEES OF %lld DHIRAMS",r,D);
fprintf(fPointer,"\n\nACCOUNT NO : 7567 %lld get %lld RUPPEES of %lld DHIRAMS",acc,r,D);
}
if(D>1700)
{
clrscr();
printf("SORRY WE DONT GIVE MORE THAN 1700 DHIRAMS");
}
getch();
}
if(x>3)
{
clrscr();
textattr(2 + ((8) << 4));
printf("\n\n\n\nINVALID INFORMATION");
getch();
}}
clrscr();
textattr(1 + ((3) <<4));
printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tTHANKS FOR CHOOSING UNITY BANK");
break;
case 4:
textattr(1 + ((3) <<4));
printf("\n\n\n\t\t\tOUR RULES");
printf("\n\n\n>WE DO NOT GIVE MORE THAN 400 U.S.D. TO A SINGLE PERSON\n\n>WE DO NOT GIVE MORE THAN 420 EUROS TO A SINGLE PERSON \n\n>WE ALSO DO NOT GIVE MORE THAN 1700 DHIRAMS TO A SINGLE PERSONS \n\n>WE ONLY CREATE ACCOUNT AT ONLY AGE OF 18 YEARS OLD TEENAGERS \n\n>LOANS ARE NOT GIVEN FOR THAN 5 YEARS.\n\n>DEVELOPER CREDIT GOES TO:::NIKHIL SINGH\n\n>WE DO NOT MAKE NEW ACCOUNTS OF THOSE WHO ARE NOT 18 IN PRESENT YEAR\n\n>BASIC CREDIT SCORE IS 100 \n\n\n>>>*NOTE THAT OUR BANK CODE IS 2000");
getch();
clrscr();
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tTHANK YOU FOR CHOOSING UNITY BANK");
break;
case 5:
printf("\n\n\t\t\tWELCOME to LOAN BRANCH");
printf("\n\n\nHUMAN VERIFICATION\t\t\t\t(PRESS ENTER 3 TIMES)");
getch();
getch();
getch();
clrscr();
printf("\n\nPLEASE ENTER FEW DETAIL");
printf("\n\nEnter last four digit of Account no:");
scanf("%d",&t);
FILE * fpp;
sprintf(userfile,"t%d.txt",t);
fpp = fopen(userfile, "r");
if(fpp==NULL)
{
clrscr();
sound(400);
delay(200);
nosound();
textattr(1 + ((3) <<6));
printf("\n\n\n!!SORRY!!NO SUCH ACCOUNT HAS BEEN CREATED");
getch();
exit(1);
}
printf("\nPIN:");
while (ein<=3
){
str[ein]=getch();
che=str[ein];
if(che==13) break;
else printf("*");
ein++;
}
str[ein]='\0';
w=atoi(str);
sound(400);
delay(200);
nosound();
if(w==t-113)
{clrscr();
printf("\nCVV NO:");
while (einn<=2){
str[einn]=getch();
chee=str[einn];
if(chee==13) break;
else printf("*");
einn++;
}
str[einn]='\0';
C=atoi(str);
printf("\nAge:");
scanf("%d",&f);
if(f<18)
{
clrscr();
printf("\n\nNOT APPLICABLE TO GET LOAN");
getch();
}
if(f>17)
{clrscr();
printf("\n\nEnter amount for loan:");
scanf("%lld",&lone);
printf("\n\nEnter time(in months) for loan(approx):");
scanf("%d",&o);
if(o>60)
{clrscr();
sound(400);
delay(200);
nosound();
printf("\n\nNOT APPLICABLE TO GET LOAN");
getch();
}
if(o<61)
{
printf("\n\nEnter your Credit score:");
scanf("%d",&ag);
if(ag<100)
{
clrscr();
sound(400);
delay(200);
nosound();
textattr(2 + ((8) << 4));
printf("\n\nNOT APPLICABLE TO GET LOAN");
getch();
}
if(ag>99)
{
FILE * fPointer;
fPointer = fopen("loan.txt","a");
char em[1];
gets(em);
printf("\n\nEnter type of loan:\n>");
gets(reason);
printf("\n\nEnter Collatral Security:\n>");
gets(col);
clrscr();
sound(400);
delay(200);
nosound();
loneam=lone+lone*3/100+o;
printf("\n\n\nAccount no.7567%d of Age %d is applicable to get %s .\nInterest rate for loan is 3%\n",t,f,reason);
printf("\n\nLONE FINAL AMOUNT:::%lld",loneam);
printf("\n\n\n\nPRESS ENTER");
getch();
clrscr();
l=t+f+o;
printf("\n\n\n\nYour application for loan is filed\n\nYour Application no. is 6677%d\n\nWE will soon send you further details on registered mobile\n",l);
fprintf(fPointer,"\n\nDATE : %d/0%d/2021",date,month);
fprintf(fPointer,"\nTIME>%02d:%02d:%02d",
current_time->tm_hour,
current_time->tm_min,
current_time->tm_sec);
fprintf(fPointer,"\nACCOUNT NO:7567 %d",t);
fprintf(fPointer,"\nBANK's PIN:%d",w+3);
fprintf(fPointer,"\nCVV NO:%d",C);
fprintf(fPointer,"\nAGE:%d",f);
fprintf(fPointer,"\nAMMOUNT:%lld",lone);
fprintf(fPointer,"\nCREDIT SCORE:%d",ag);
fprintf(fPointer,"\nTIME(in months):%d",o);
fprintf(fPointer,"\nPURPOSE:%s loan",reason);
fprintf(fPointer,"\nLOAN ID:6677 %d",l);
fprintf(fPointer,"\nCollatral Security: %s",col);
fprintf(fPointer,"\nTOTAL MONEY PAID:%lld",loneam);
fprintf(fPointer,"\n\nSTATUS ::: ");
fclose(fPointer);
FILE * PFF=NULL;
sprintf(userfile,"%dloan",t);
PFF=fopen(userfile,"w");
fclose(PFF);
fprintf(PFF,"%lld",loneam);
FILE * pf=NULL;
sprintf(userfile, "%da.txt",t);
pf = fopen(userfile, "a");
fprintf(pf,"\nDATE : %d/0%d/2021",date,month);
fprintf(pf,"\nTIME>%02d:%02d:%02d",
current_time->tm_hour,
current_time->tm_min,
current_time->tm_sec);
fprintf(pf,"\nACCOUNT NO:7567 %d",t);
fprintf(pf,"\nCVV NO:%d",C);
fprintf(pf,"\nAGE:%d",f);
fprintf(pf,"\nAMMOUNT:%lld",lone);
fprintf(pf,"\nCREDIT SCORE:%d",ag);
fprintf(pf,"\nTIME(in months):%d",o);
fprintf(pf,"\nPURPOSE:%s loan",reason);
fprintf(pf,"\nLOAN ID:6677 %d",l);
fprintf(pf,"\nCollatral Security: %s",col);
fprintf(pf,"\nTOTAL MONEY PAID:%lld",loneam);
fclose(pf);
sprintf(userfile, "s%d.txt",t);
pf = fopen(userfile, "w");
fprintf(pf,"\nStatus:::Pending loan ammount:%lld\nTo pay:%lld",lone,loneam);
fclose(pf);
printf("\n\n\n\n\n\n*NOTE:\nVERIFICATION IS DONE AT LOAN BRANCH AFTER VERIFICATION YOU ARE ABLE TO GET \n%s LOAN",reason);
getch();
}}}}
clrscr();
printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tTHANKS FOR CHOOSING UNITY BANK");
break;
case 6:
clrscr();
printf("\n\n\n\t\t NEW ACCOUNT APPLICATION FORM\n\n");
gets(em);
printf("\nNAME:");
gets(vp);
printf("\nFATHER's NAME:");
gets(ap);
printf("\nMOTHER's NAME:");
gets(wp);
printf("\nAGE:");
scanf("%d",&as);
gets(em);
printf("\nDate of Birth:");
gets(dob);
ad=2022-as;
if(as>18)
{ak=as-18;
clrscr();
printf("\n\n\nYOU ARE NOT APPLICABLE FOR NEW ACCOUNT\n\nYOU ARE %d YEARS OLDER FOR NEW ACCOUNT\n\nWE TAKE ONLY TEENAGERS OF 18yrs.",ak);
printf("\n\nYOU BORN IN %d YEAR",ad);
printf("\n\n\n\n\n\t\t\t\t!!SORRY!!");
getch();
}
if(as<18)
{
ak=18-as;
clrscr();
printf("\n\n\nYOU ARE TOO YOUNGER TO CREATE NEW ACCOUNT\n\nPLEASE COME AFTER %d YEARS",ak);
printf("\n\nYOU BORN IN %d YEAR",ad);
printf("\n\n\n\n\n\t\t\t\t!!SORRY!!");
getch();
}
if(as==18)
{
clrscr();
printf("\nSTATE: ");
gets(state);
printf("\nCITY: ");
gets(jk);
printf("\nSector: ");
gets(colony);
printf("\nHouse NO: ");
gets(az);
printf("\n\n\nTHANK YOU \n\n\nPress Enter");
getch();
clrscr();
printf("\n\n\nMOBILE NO:");
gets(lk);
clrscr();
printf("\n\n\nGOVERNMENT ID PROOF ");
printf("\n\n\n\nPress 1 for AADHAR CARD\n\nPress 2 for PAN CARD\n\n");
scanf("%d",&proof);
if(proof==1)
{
clrscr();
printf("\n\n\nPLEASE ENTER YOUR AADHAR NO:::");
scanf("%s",&id);