-
Notifications
You must be signed in to change notification settings - Fork 753
Expand file tree
/
Copy pathbankMenu.c
More file actions
72 lines (69 loc) · 1.97 KB
/
bankMenu.c
File metadata and controls
72 lines (69 loc) · 1.97 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
#include<stdio.h>
int menu();
int NewAccount();
int CashWithdraw(int OrgAmount);
void DisplayAll(int amount);
void LoanCalculator();
int CashDeposit(int orgamount);
void Return();
int i=0;
char AccNo[10];
char FName[10];
char LName[10];
char CNIC[10];
int Pin=3515;;
int Amount;
char Email[10];
int main()
{
int option;
system("COLOR F");
printf("\n\t\t\t\t\t *****HSA Bank Limited****\n\n\t\t\t");
printf("\n\t\t----------------------------------------------------------------------------------");
printf("\n\t\t|\t\t\t\t MAIN MENU \t\t\t\t |");
printf("\n\t\t----------------------------------------------------------------------------------");
printf("\n\t\t|Select the following options to Proceed:\t\t\t\t\t |");
printf("\n\t\t|\t\t\t\t\t\t\t\t\t\t |");
printf("\n\t\t|Press 1 to Create an Account\t\t\tPress 4 to Take Loan\t\t |");
printf("\n\t\t|Press 2 for Money Withdrawal\t\t\tPress 5 to Display all accounts |");
printf("\n\t\t|Press 3 for Money Deposit\t\t\tPress 6 to Exit\t\t\t |");
printf("\n\t\t----------------------------------------------------------------------------------");
printf("\n\t\t Option:");
scanf("%d",&option);
switch(option)
{
case 1 :NewAccount();
Return();
break;
case 2: CashWithdraw(Amount);
Return();
break;
case 3 :CashDeposit(Amount);
Return();
break;
case 4: LoanCalculator();
Return();
break;
case 5: DisplayAll(Amount);
Return();
break;
case 6: system("CLS");
printf("Closing the Application");
for(i=0;i<=4;i++)
{
sleep(320);
printf(".");
}
system("CLS");
system("COLOR B");
printf("\n\n\t\t\t---------------------------------------------------------");
printf("\n\t\t\t|\t\t\t\t\t\t\t|");
printf("\n\t\t\t|\t\tApplication Has Been Closed\t\t|");
printf("\n\t\t\t|\t\t\t\t\t\t\t|");
printf("\n\t\t\t---------------------------------------------------------\n\n\n\n");
for(i=0;i<=3;i++)
{
sleep(320);
}
return 0;
}