This is my ATM Source Code for C Programming
It's just a prototype
A bit of mess
Still need more improvement
Even my code report still need much more improvement
- //PLEASE RUN THIS CODE IN FULLSCREEN MODE
- //USE LARGE CURSOR, LUCIDA CONSOLE FONT (SIZE 24), 91/39 FOR WINDOW SIZE/HEIGHT, 250/210/25 FOR R/G/B
- //ABOVE PREFERENCE IS ENGINEERED FOR WINDOWS 7 OS
- #include<stdio.h>
- #include<stdlib.h> //206
- #include<conio.h> //165
- #include<windows.h>
- #include<string.h> //405
- //LOADING
- void FunctLoading()
- {
- int luar=1,dalam;
- do
- {
- dalam=1;
- printf("\a\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t LOADING\n\t\t ");
- do
- {
- printf("......");
- dalam++;
- }
- while(dalam <= luar);
- luar++;
- printf("\n\n\n\n\n\n\n\n\n\n\n\n");
- Sleep(600);
- system("cls");
- }
- while (luar <= 6);
- system("cls");
- }
- //LoadingYourLanguageApi
- void FunctLoadingYourLanguageApi()
- {
- system("cls");
- int luar=1,dalam;
- do
- {
- dalam=1;
- printf("\a\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t LOADING YOUR PREFERRED LANGUAGE A.P.I\n\t\t ");
- do
- {
- printf("......");
- dalam++;
- }
- while(dalam <= luar);
- luar++;
- printf("\n\n\n\n\n\n\n\n\n\n\n\n");
- Sleep(600);
- system("cls");
- }
- while (luar <= 6);
- system("cls");
- }
- //INITIAL
- void FunctInitial()
- {
- int tunnel,baris, sprh, jarak;
- system("cls");
- printf(":::::::::::::::::::::::::::::::://+oosssssssoo+/::::::::::::::::::::::::::::::::\n");
- Sleep(150);
- printf(":::::::::::::::::::::::::/+shdNMMMMMMMMMMMMMMMMMMNmhso/:::::::::::::::::::::::::\n");
- Sleep(150);
- printf(":::::::::::::::::::::/shmMMMMNmdhysoo+++++++osyydmNMMMMNhs/:::::::::::::::::::::\n");
- Sleep(150);
- printf("::::::::::::::::::+ymMMMNdyo/:::::::::::::oyhyo::::/oydNMMMmy+::::::::::::::::::\n");
- Sleep(150);
- printf(":::::::::::::::/smMMMdy+:::::::::::::::::sMMmNMNy/::::::+ydMMMmy/:::::::::::::::\n");
- Sleep(150);
- printf(":::::::::::::/hNMMms/::::::::::::::ys/:::Nm/:/sNMNh/:::::::/smMMMd+:::::::::::::\n");
- Sleep(150);
- printf(":::::::::::/hNMNh+::::::::::::::::+MMNyohMo::::/mMMNy:::::::::+hMMMd+:::::::::::\n");
- Sleep(150);
- printf("::::::::::yNMMh/::::::::::::::::/odMMNmdMd::sy+:/mMMMmso/:::::::+dMMMh/:::::::::\n");
- Sleep(150);
- printf("::::::::+mMMd+:::::::::::::/oydmdhhs+//+s::/NMNo:+MMMMMMNmy+::::::omMMNs::::::::\n");
- Sleep(150);
- printf(":::::::sNMNs::::::::::::/sdNdy++ohNm/:+mmy::odMN::dMMMMMMMMMmy/::::/yMMMh:::::::\n");
- Sleep(150);
- printf("::::::yMMm+::::::::::::yNNy+/oyhyso/ohNMNh::::+h::oMMMMMMMMMNyys:::::oNMMd/:::::\n");
- Sleep(150);
- printf(":::::yMMm/::::::::::::dMm+:////////dNdy+/::::/:::/yMMMMMMMMMMm/:::::::+NMMm/::::\n");
- Sleep(150);
- printf("::::sMMm/:::::::::::odMm/::hddNmdNNMNo:+yddo:/hs::smNMMN+odMMMm::::/:::+NMMm::::\n");
- Sleep(150);
- printf(":::+MMN+:::::::::+ymmhs/:::/mMMdhhNMy:+NMmo/::sMd:::/+o+:::+dMMs:::oo:::oMMMh:::\n");
- Sleep(150);
- printf(":::mMMs::::::::+hmho/::::::yms+/+dMy::mMd/::::sMMy::::os/::::sMm:::/m+:::yMMMo::\n");
- Sleep(150);
- printf("::sMMm:::::::/ymy/:::::::::///ohNNs::+MN/:::::mMMm::::/hNh+:::sm::::hm::::mMMm::\n");
- Sleep(150);
- printf("::NMMo::::::/hs/:::::::/sdh/+shyo/oyyhMy:::::yMMMm::::::yMNy:::+::::sMo:::sMMM+:\n");
- Sleep(150);
- printf(":+MMN::::::://:::::/ss+::yMd/:::+dMMMMMd::::sMMMMd:::+hhyNMMs:::/:::oMd:::/NMMs:\n");
- Sleep(150);
- printf(":yMMm:::::yyyyhhs::oooso:+MMmdhdNMy+omMMy::+NMMdNN::::oNMMNNN::hy:::+MN::::mMMh:\n");
- Sleep(150);
- printf(":hMMd:::::mMy/NMd::odyo+//odmmmmmNNs:/dMN::dMMMs/yo::::+NMd+o:+Mh:::oMN/:::hMMd:\n");
- Sleep(150);
- printf(":dMMd:::::+dmshM/:/s+sdmmm+:///::/smo:+MM/:mMMMN/:::::::yMM/::yMm:::sMN/:::hMMh:\n");
- Sleep(150);
- printf(":hMMm:::::::odMm::/+dho++ssshddddyo+/::mN::sMMMMh:::::::/MMs::yMM+::dMN::::dMMy:\n");
- Sleep(150);
- printf(":sMMM/:::::::/dM+::++::/ymmmdhhdNMMNh+:hy:::sNMMMo:::++/:NMh::yMMy:+MMd::::NMMo:\n");
- Sleep(150);
- printf(":/MMMs::::::::/hms+//ohNmo/:::::sMMMMN/+:::::+dMMh:::yNmyMMh::sMMN/dMMo:::+MMN/:\n");
- Sleep(150);
- printf("::dMMm::::::::::ohmdmmoNo::::::hMNomMMo::::::::hMs::::NMMNMy::sMMMdMMm::::hMMh::\n");
- Sleep(150);
- printf("::+MMMs:::::::::::::+hhNo:::::hMhdsNMd/:/+++/:::y:::::hMMoh+::hMMMMMN+:::+MMN/::\n");
- Sleep(150);
- printf(":::yMMN/::::::::::::::/o+////hMMmNNds/sdmmdmmd+:::::::yMM/::::NMMMMMs:::/mMMs:::\n");
- Sleep(150);
- printf("::::dMMm/:::::::::::::::+NsdNmmhyo/:/dNy/:::+NN/:::+o:dMM/:::sMMMMNs::::dMMh::::\n");
- Sleep(150);
- printf(":::::dMMm/:::::::::::::::mmNs::::::/mMo::::::mMs::+mNoMMN:::+NMMMNo:::/dMMd:::::\n");
- Sleep(150);
- printf("::::::dMMm+::::::::::::::+mMo:::::/mMy::::::sMN++hNMMMMMy::sNMMMh/:::/mMMd::::::\n");
- Sleep(150);
- printf(":::::::yMMNs::::::::::::::/ymdyo++dMM+:::::sMMNmNNmMMMMN/+dMMMd+::::oNMMy:::::::\n");
- Sleep(150);
- printf("::::::::+mMMm+:::::::::::::::+oyhdmNN:::::oddhso+:sMMMMmmMMNdo::::+dMMNo::::::::\n");
- Sleep(150);
- printf("::::::::::yNMMd+:::::::::::::::::::::::::::::::::+NMMMMMMmy/::::/hMMMh/:::::::::\n");
- Sleep(150);
- printf(":::::::::::/yNMMdo::::::::::::::::::::::::::::::oNMMMNds+:::::+hMMMd+:::::::::::\n");
- Sleep(150);
- printf(":::::::::::::/yNMMmy+::::::::::::::::::::::::::oNmds+::::::/smMMMd+:::::::::::::\n");
- Sleep(150);
- printf("::::::::::::::::odNMMmyo:::::::::::::::::::::::+/:::::::+ydMMMNy/:::::::::::::::\n");
- Sleep(150);
- printf("::::::::::::::::::/ohNMMNdyo/::::::::::::::::::::::/oydNMMMNho::::::::::::::::::\n");
- Sleep(150);
- printf("::::::::::::::::::::::+sdNMMMNmdhysoo+++++++ossydmNMMMMNds+:::::::::::::::::::::\n");
- Sleep(150);
- printf("::::::::::::::::::::::::::/oshdNMMMMMMMMMMMMMMMMMNmhyo/:::::::::::::::::::::::::\n");
- Sleep(150);
- printf(":::::::::::::::::::::::::::::::::/++oossssssoo+/::::::::::::::::::::::::::::::::\n");
- Sleep(1000);
- system("cls");
- printf("\n\n\n\n\n\n\n\n\n\t\t WELCOME TO MAYBANK AUTOMATIC TELLER MACHINE\n\n\n\a");
- for (tunnel=0;tunnel<7;++tunnel)
- {
- printf("\t\t\t\t|_______________|\n");
- Sleep(200);
- }
- for(baris=7; baris>=1; --baris)
- {
- for(jarak=0; jarak < 21-baris; ++jarak)
- printf(" ");
- for(sprh=baris; sprh <= 2*baris-1; ++sprh)
- printf("* ");
- for(sprh=0; sprh < baris-1; ++sprh)
- printf("* ");
- printf("\n");
- }
- Sleep(200);
- printf("\n\n\n\t\t\tPRESS ANY KEY TO START TRANSACTION\n\n\n\n\n\n\a");
- getche ();
- system("cls");
- }
- //PleaseWaitYourAccountBeingVerified
- void FunctPleaseWaitYourAccountBeingVerified()
- {
- int luar=1,dalam;
- do
- {
- dalam=1;
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\tPLEASE WAIT\n");
- printf("\t\t\t YOUR ACCOUNT BEING VERIFIED\n\t\t \a");
- do
- {
- printf("......");
- dalam++;
- }
- while(dalam <= luar);
- luar++;
- printf("\n\n\n\n\n\n\n\n\n\n\n\n");
- Sleep(600);
- system("cls");
- }
- while (luar <= 6);
- system("cls");
- }
- //PleaseWaitYourTransactionBeingProcess
- void FunctPleaseWaitYourTransactionBeingProcess()
- {
- int luar=1,dalam;
- do
- {
- dalam=1;
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t PLEASE WAIT\n");
- printf("\t\t\t YOUR TRANSACTION BEING PROCESS\n\t\t \a");
- do
- {
- printf("......");
- dalam++;
- }
- while(dalam <= luar);
- luar++;
- printf("\n\n\n\n\n\n\n\n\n\n\n\n");
- Sleep(600);
- system("cls");
- }
- while (luar <= 6);
- system("cls");
- }
- //YourPinBeingVerified
- void FunctYourPinBeingVerified()
- {
- int luar=1,dalam;
- do
- {
- dalam=1;
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t PLEASE WAIT\n");
- printf("\t\t\t YOUR PIN BEING VERIFIED\n\t\t \a");
- do
- {
- printf("......");
- dalam++;
- }
- while(dalam <= luar);
- luar++;
- printf("\n\n\n\n\n\n\n\n\n\n\n\n");
- Sleep(600);
- system("cls");
- }
- while (luar <= 6);
- system("cls");
- }
- main()
- {
- int L, InputPin, pin=1 , choice, deposit,withdraw,transfer,amount=5000,WithdrawLimit=1500,DepositLimit=9900,*NewPin;
- NewPin=&pin;
- long long int OtherAccount,account;
- char wish[3],receipt[3];
- system("color E0 ");
- Origin:
- FunctInitial();
- FunctLoading();
- //LANGUAGE
- Language:
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tPLEASE SELECT YOUR PREFERED LANGUAGE\n\n");
- printf("\t\t\t\t 1 = ENGLISH\n\n\n\n\n\n\n\n\n\n\a");
- printf("\t\t\t\t\t\t\t ENTER 0 TO CANCEL\n");
- scanf ("%d",&L);
- system("cls");
- if (L==0)
- {
- //ABORT
- Abort:
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t THANK YOU FOR USING OUR ATM SERVICES\n");
- printf("\t\t\t\tHAVE A NICE DAY\n");
- printf("\t\t\tSEE YOU SOON IN THE NEXT TIME \n\n\n\n\n\n\n\n\n\n\n\a");
- Sleep (3000);
- system("cls");
- goto Origin;
- }
- if(L!=1)
- {
- FunctLoadingYourLanguageApi();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t YOU HAVE ENTERED INVALID LANGUAGE CHOICE!!!\n\n");
- printf("\t\t PLEASE CHOOSE YOUR LANGUAGE AGAIN\n\n\n\n\n\n\n\n\n\n\n\a");
- Sleep(2200);
- system("cls");
- goto Language;
- }
- FunctLoadingYourLanguageApi();
- //ACCOUNT
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t PLEASE ENTER YOUR 12 DIGIT ACCOUNT NUMBER BELOW\n\n\n\n\n\n\n\n\n\n\n");
- EnterAccount:
- printf("\t\t\t\t\t\t\t ENTER 0 TO CANCEL\n\a");
- scanf("%lld\a", &account);
- system("cls");
- switch(account)
- {
- case 0:
- goto Abort;
- break;
- case 1 :
- FunctPleaseWaitYourAccountBeingVerified();
- break;
- default:
- FunctPleaseWaitYourAccountBeingVerified();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t YOU HAVE ENTERED INVALID ACCOUNT NUMBER!!!\n\n");
- printf("\t PLEASE ENTER YOUR 12 DIGIT ACCOUNT NUMBER BELOW AGAIN\n\n\n\n\n\n\n\n\n\n\n\a");
- goto EnterAccount;
- }
- //PIN
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t PLEASE ENTER YOUR 6 DIGIT PIN NUMBER BELOW\n\n\n\n\n\n\n\n\n\n\n");
- printf("\t\t\t\t\t\t\t ENTER 0 TO CANCEL\n\a");
- EnterPin:
- scanf("%d\a", &InputPin);
- system("cls");
- if (InputPin==0)
- {
- goto Abort;
- }
- if (InputPin == pin)
- {
- FunctYourPinBeingVerified();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t WELCOME MISS SITI NOORAIIN BINTI MOHD RAZALI \n\n\n\n\n\n\n\n\n\n\n\n\a");
- Sleep(3000);
- system("cls");
- goto MainMenu;
- }
- else
- {
- FunctYourPinBeingVerified();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t YOU HAVE ENTERED WRONG PIN NUMBER!!!\n\n");
- printf("\t\t PLEASE ENTER YOUR 6 DIGIT PIN NUMBER BELOW AGAIN\n\n\n\n\n\n\n\n\n\n\n\n\a");
- printf("\t\t\t\t\t\t\t ENTER 0 TO CANCEL\n\a");
- goto EnterPin;
- }
- //MAIN MENU
- MainMenu:
- printf("\n\n\n\n\n\n\n\n\n\n\t\t\tPLEASE SELECT YOUR TRANSACTION\n\n");
- printf("\n\t\t\t 1 = CASH WITHDRAW\n");
- printf("\n\t\t\t 2 = CASH DEPOSIT\n");
- printf("\n\t\t\t 3 = BALANCE INQUIRY\n");
- printf("\n\t\t\t 4 = TRANSFER\n");
- printf("\n\t\t\t 5 = PIN CHANGE\n\n\n");
- printf("\n\t\t\t 0 = CANCEL TRANSACTION\n\n\n\n\a");
- scanf("%d",&choice);
- system("cls");
- switch(choice)
- {
- case 0:
- {
- goto Abort;
- }
- break;
- //WITHDRAW
- case 1:
- FunctPleaseWaitYourTransactionBeingProcess();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t PLEASE ENTER THE WITHDRAW AMOUNT\n\n\n\n");
- EnterWithdraw:
- printf("\n\t\t\t ONLY THE AMOUNT IN MULTIPLES OF \n\n\n");
- printf("\t\t\t\tRM10, RM50, RM100\n\n\n\n\n");
- printf("\t\t\t MAXIMUM WITHDRAW AMOUNT IS 1500\n\n\n\n\n\n\n\n\n\n\n ");
- printf("\t\t\t\t\t\t\t ENTER 0 TO CANCEL\n\a");
- scanf("%d", &withdraw);
- system("cls");
- FunctPleaseWaitYourTransactionBeingProcess();
- if (withdraw % 10 != 0)
- {
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\t\t PLEASE RE-ENTER THE WITHDRAW AMOUNT AGAIN\n\n\n\n");
- goto EnterWithdraw;
- }
- if(withdraw==0)
- {system("cls");
- goto MainMenu;
- }
- if (withdraw >WithdrawLimit)
- {
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t YOUR TRANSACTION IS REJECTED \n\n\n");
- printf("\t YOUR WITHDRAW REQUEST EXCEED THE ATM WITHDRAW LIMIT\n\n\n\n\a");
- printf("\t\t TRY AGAIN LATER \n\n\n\n\n\n\n\n\a");
- Sleep (6000);
- system("cls");
- goto MainMenu;
- }
- if (withdraw >(amount-200))
- {
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t YOUR TRANSACTION IS REJECTED \n\n\n");
- printf("\t\t YOU HAVE INSUFFICENT ACCOUNT BALANCE\n\n\n\n\a");
- printf("\t\t TRY AGAIN LATER \n\n\n\n\n\n\n\n\n\a");
- Sleep (6000);
- system("cls");
- goto MainMenu;
- }
- else if(withdraw!=0)
- {
- amount = amount - withdraw;
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t DO YOU WISH TO PRINT RECEIPT?\n");
- printf("\n\n\n\t\t\t ENTER 'YES' IF YOU DO\n\n");
- printf("\n\t\tENTER OTHER KEY IF YOU DOESN'T NEED A RECEIPT\n\n\n\n\n\n\n\n\a");
- scanf("%s",&receipt);
- system("cls");
- FunctPleaseWaitYourTransactionBeingProcess();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tYOUR TRANSACTION HAVE BEEN ACCEPTED\n");
- printf("\n\n\n\t\t\tYOUR CURRENT ACCOUNT BALANCE IS %d", amount);
- printf("\n\n\n\n\t\t\t YOU CAN TAKE YOUR CASH\n");
- if (strcmp(receipt, "yes") == 0)
- {
- printf("\n\n\t\t\t\tAND YOUR RECEIPT NOW");
- }
- Sleep (6000);
- system("cls");
- Wish:
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\tDO YOU WISH TO CONTINUE WITH ANOTHER TRANSACTION?\n");
- printf("\n\n\n\t\t\t ENTER 'YES' IF YOU DO\n\n");
- printf("\n\t ENTER OTHER KEY IF YOU HAVE FINISHED YOUR TRANSACTION\n\n\n\n\n\n\n\n\a");
- scanf("%s",&wish);
- system("cls");
- if (strcmp(wish, "yes") == 0)
- {
- FunctPleaseWaitYourTransactionBeingProcess();
- goto MainMenu;
- }
- else
- goto Abort;
- }
- break;
- //DEPOSIT
- case 2:
- FunctPleaseWaitYourTransactionBeingProcess();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\tPLEASE ENTER THE DEPOSIT AMOUNT\n\n");
- printf("\n\n\t (THIS MACHINE ONLY ACCEPTS RM5 RM10 RM 20 RM50 RM100 NOTES)\n\n\n\n");
- printf("\t\t\tMAXIMUM DEPOSIT AMOUNT IS 9900\n\n\n\n\n\n\a ");
- printf("\t\t\t\t\t\t\t ENTER 0 TO CANCEL\n");
- EnterDeposit:
- scanf("%d", &deposit);
- system("cls");
- if (deposit % 5 != 0)
- {
- FunctPleaseWaitYourTransactionBeingProcess();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t YOUR TRANSACTION IS REJECTED \n\n\n\n");
- printf("\t\t YOU HAVE ENTERED INVALID CASH NOTES \n\n\n\n");
- printf("\t\t\t PLEASE TAKE BACK YOUR CASH \n\n\n\n\n\n\n\a");
- Sleep (5000);
- system("cls");
- goto MainMenu;
- }
- if(deposit==0)
- {
- FunctPleaseWaitYourTransactionBeingProcess();
- goto MainMenu;
- }
- if (deposit >DepositLimit)
- {
- FunctPleaseWaitYourTransactionBeingProcess();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t YOUR TRANSACTION IS REJECTED \n\n\n\n");
- printf("\t\tYOUR CASH AMOUNT EXCEED THE ATM DEPOSIT LIMIT\n\n\n\n\a");
- printf("\t\t\t PLEASE TAKE BACK YOUR CASH \n\n\n\n\n\n\n\a");
- Sleep (5000);
- system("cls");
- goto MainMenu;
- }
- else
- {
- FunctPleaseWaitYourTransactionBeingProcess();
- amount = amount + deposit;
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t DO YOU WISH TO PRINT RECEIPT?\n");
- printf("\n\n\n\t\t\t ENTER 'YES' IF YOU DO\n\n");
- printf("\n\t\tENTER OTHER KEY IF YOU DOESN'T NEED A RECEIPT\n\n\n\n\n\n\n\n\a");
- scanf("%s",&receipt);
- system("cls");
- FunctPleaseWaitYourTransactionBeingProcess();;
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t YOUR TRANSACTION HAVE BEEN ACCEPTED\n");
- printf("\n\n\n\t\t YOUR CURRENT ACCOUNT BALANCE IS RM %d\n\n\n\n", amount);
- if (strcmp(receipt, "yes") == 0)
- {
- printf("\n\t\t\t\tTAKE YOUR RECEIPT NOW");
- }
- Sleep (6000);
- system("cls");
- goto Wish;
- }
- break;
- //BALANCE
- case 3:
- FunctPleaseWaitYourTransactionBeingProcess();
- printf("\a\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t YOUR CURRENT BALANCE IS \n\n");
- printf("\t\t\t\t RM %d",amount);
- printf("\n\n\n\n\t\t\t YOU MAY WITHDRAW UP TO\n\n");
- printf("\t\t\t\t RM %d\n\n\n\n\n\n\n\n",amount-200);
- Sleep(6000);
- system("cls");
- goto Wish;
- break;
- //TRANSFER
- case 4:
- FunctPleaseWaitYourTransactionBeingProcess();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t PLEASE ENTER 12 DIGIT ACCOUNT NUMBER \n\n\n\n\n\n\n\n\n\n\n\a");
- printf("\t\t\t\t\t\t\t ENTER 0 TO CANCEL\n");
- scanf("%lld", &OtherAccount);
- system("cls");
- if(OtherAccount==0)
- {
- FunctPleaseWaitYourTransactionBeingProcess();
- goto MainMenu;
- }
- FunctPleaseWaitYourTransactionBeingProcess();;
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\tPLEASE ENTER THE AMOUNT TO BE TRANSFER INTO %lld ACCOUNT \n\n\n\n\n\n\n\n\n\n\n\a ",OtherAccount);
- printf("\t\t\t\t\t\t\t ENTER 0 TO CANCEL\n");
- EnterTransfer:
- scanf("%d", &transfer);
- system("cls");
- if(transfer==0)
- {
- system("cls");
- goto MainMenu;
- }
- if(transfer >(amount-200))
- {
- FunctPleaseWaitYourTransactionBeingProcess();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t YOUR TRANSACTION IS REJECTED \n\n\n");
- printf("\t\t YOU HAVE INSUFFICENT ACCOUNT BALANCE\n\n\n\n\a");
- printf("\t\t TRY AGAIN LATER \n\n\n\n\n\n\n\n\n\a");
- Sleep (6000);
- system("cls");
- goto MainMenu;
- }
- else
- {
- FunctPleaseWaitYourTransactionBeingProcess();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t RM %d \n\n\n",transfer);
- printf("\t HAVE BEEN SUCCESFULLY TRANSFER INTO %lld ACCOUNT\n\n\n\n",OtherAccount);
- printf("\n\n\n\t\t\tYOUR CURRENT ACCOUNT BALANCE IS %d\n\n\n\n\n\n", amount-transfer);
- Sleep(6000);
- system("cls");
- goto Wish;
- }
- break;
- //PIN CHANGE
- case 5:
- FunctPleaseWaitYourAccountBeingVerified();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t PLEASE RE-ENTER YOUR 6 DIGIT PIN NUMBER\n");
- printf("\t\t\t\tFOR VERIFICATION\n\n\n\n\n\n\n\n\n\n");
- EnterPinVerification:
- printf("\t\t\t\t\t\t\t ENTER 0 TO CANCEL\n\a");
- scanf("%d\a", &InputPin);
- printf("\n\n\n\n\n\n\n\n\n\a");
- system("cls");
- if(InputPin == pin)
- {
- FunctYourPinBeingVerified();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t PLEASE ENTER YOUR NEW PIN \n\n\n\n\n\n\n\n\n\n\n\a");
- scanf("%d",&pin);
- FunctYourPinBeingVerified();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t YOUR PIN NUMBER HAVE BEEN SUCCESFULLY CHANGED\n\n\n\n\n\n\n\n\n\n\n\n");
- Sleep(3000);
- system("cls");
- goto MainMenu;
- }
- if (InputPin ==0)
- {
- FunctPleaseWaitYourTransactionBeingProcess();
- goto MainMenu;
- }
- else
- FunctYourPinBeingVerified();
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t YOU HAVE ENTERED WRONG PIN NUMBER!!!\n\n");
- printf("\t\tPLEASE RE-ENTER YOUR 6 DIGIT PIN NUMBER BELOW AGAIN\n\n\n\n\n\n\n\n\n\n\n\n\a");
- goto EnterPinVerification;
- break;
- //INVALID CHOICE
- default:
- {
- printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\tYOU HAVE ENTERED INVALID TRANSACTION CHOICE !!!\n\n");
- printf("\t\t PLEASE SELECT YOUR TRANSACTION AGAIN\n\n\n\n\n\n\n\n\n\n\a");
- Sleep(3000);
- system("cls");
- goto MainMenu;
- }
- }
- }
- //MADE BY MUHAZREEN,ASYIQIN,SYASYA,RAUDAH,ADLI,ARIFF
- //INITIATED ON 22th NOVEMBER 2016 12:15:41 AM
I'm using this link to display my code
http://www.planetb.ca/syntax-highlight-word
You can DOWNLOAD my flowchart in report and code by below link
https://drive.google.com/drive/folders/0B-6exqH-YRY1czFXZ3IzUmhLU3c?usp=sharing
No comments:
Post a Comment