Ini adalah Carta Organisasi JKR Tanah Merah Pada 21 August 2018
MUH42R33N BLOG
I am trying to keep my blog as simple as possible to save your mobile data and this blog was created to share my assignment for future student reference.
Tuesday 21 August 2018
Wednesday 19 April 2017
Applications of Gas Laws in Real Life
(Full HD Poster Download Link Included)
(Full HD Poster Download Link Included)
(Diagram 1: Applications of gas laws in real life poster)
P = Pressure (Based on the Gas Constant)
V = Volume (Liter)
n = Number of moles (Mol)
R = Gas Constant (Based on Data Given)
T = Temperature (Kelvin)
This is a poster about ideal gas law that I made in Piktochart as my assignment. There is a Boyle, Charles's Law, Gay - Lussac's Law (Pressure Law), and also Avogadro's Law and the download link are located at the bottom of the post)
1) Avogadro's Law
Avogadro's Law state that when at the same temperature and pressure, the volume of gas proportional to the number of mole which mean V ∝ n . The application of the Avogadro's Law in real life is :
i ) Balloon Pumping
As you blow up a balloon, you are forcing more gas molecules into the balloon which would increase the balloon volume and cause the to balloon inflate.
ii ) Flat and Inflated Tire
A flat tire contain less air volume than the inflated tire. It is because that the flat tire were containing less air molecule than the inflated tire.
2) Boyle's Law
Boyle's Law state that when at the constant temperature, volume of gas is inversely proportional to its pressure which mean V∝1/P .The application of the Boyle's Law in real life is :
i ) Inhalation
When the process of inhale occurs, the lungs volume will increasing which would cause the lungs pressure lower than the atmosphere pressure. Thus,
the air rushes in the lung.
the air rushes in the lung.
ii ) Aircraft Altitude Change
During take-off or landing, Your ears
will pop due to the changes of your altitude that cause a difference of air pressure inside and outside of the eardrums. The air in the ears will change its volume then causes yours ears to pop due to the strain.
will pop due to the changes of your altitude that cause a difference of air pressure inside and outside of the eardrums. The air in the ears will change its volume then causes yours ears to pop due to the strain.
iii) Using Syringe
When syringe plunger been pushed, the syringe volume will decrease and the syringe pressure level would increase, this higher pressure will push out the liquid out of the syringe.
3) Charles's Law
Charles's Law state that the volume of gas at constant pressure is proportional to its absolute temperature which mean V ∝ T. The application of the Charles's Law in real life is :
i ) Hot Air Balloon
A torch used to heat up the and rise the air temperature inside the balloon. This cause the air volume inside the balloon to increased and becoming less dense than the surrounding air. Thus causes the balloon to float.
ii ) Gasoline Engine
The heat from the combustion of the fuel inside the engine cause the air volume inside the engine cylinder block to increase, which will pushes the piston and turns the crankshaft.
iii) Winter Jogging
When you are jogging in a freezing winter day, our lung capacity will decrease in colder weather and may make its more difficult for us
to breath optimally like usual day.
to breath optimally like usual day.
4) Gay - Lussac's Law
Gay - Lussac's Law state that the pressure of gas at constant volume is proportional to its absolute temperature which mean P ∝ T. The application of the Gay - Lussac's Law in real life is:
i ) Firing a Bullet
When gunpowder burns, it creates a large amount of superheated gas. This high pressure hot gas behind the bullet will increase the gun barrel pressure that will shoot the bullet out of the gun .
ii ) Dented Ping Pong Ball
Restoring a dented ping pong ball can be done by immerse the ball in a pan of hot water. The pressure inside the ball will increase as it heats up, then the pressure will push out the dent and restore the ball’s roundness.
iii) Pressure Cooker
The pressure cooker is heated up and sealed tightly so the pressure don’t lost to surrounding. The pressure inside the cooker will increase the cooker temperature much higher and cook the food much faster.
5) Ideal Gas Law
Ideal Gas Law is a derivation of combined Boyle, Charles, Gay - Lussac and Avogadro laws together into one single unifying equation as PV = nRT. The applications of Ideal Gas Law in real life is
i ) Refrigerator
The air in the refrigerator will be compressed to increase their temperature. This hot gas will be passed through a radiator to equalize their temperature with their surrounding. When the gas are release into the refrigerator, they will expands and cause them to cools down.
If you wanted to visit my poster in Piktochart, you can click the link down here.
https://magic.piktochart.com/output/22222858-applications-of-gas-law-in-real-life
And Here the link to download full HD image of this poster.
https://drive.google.com/file/d/0B-6exqH-YRY1bGFlb2xaYUVZUHR0TDNVcEV0M3VBM1otRUpn/view?usp=sharing
(P.S: You might have notice there is some more improvement and proofing needed, I might improve that soon)
Tags :
#Applications of Gas Laws in Real Life
#Applications of Gas Laws in Real Life
#Gas Law Poster
Sunday 11 December 2016
ATM Source Code
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
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
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
Subscribe to:
Posts (Atom)