Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bank Menu Design #1142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions bankMenu.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,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;
}