TUTORIAL || How To Make ATM Application With Programming Language C
What Will I Learn?
- we will take in the working procedure of the ATM machine framework
- we will take in the capacities in programming C
- we Learn the fundamental rationale in making the program ATM
Requirements
- DEV -C++ 5.11
Difficulty
- Basic
Tutorial Contents
Description
ATM is an electronic instrument that serves bank clients to take cash and check their investment accounts without being served by a human teller. Numerous ATM likewise serve to store cash or checks, exchange cash or even purchase mobile phone credit.
Here is the flowchat of the ATM System that we will make.
In an ATM available menus as follows pull cash, balance, transfer
Withdraw
If the user will withdraw the amount of money, select Cash Withdraw> Number to withdraw, and will display Details of cash withdrawal whether the user will continue the transaction or not, if "Yes" then the user's balance will decrease as much as the nominal withdrawn, if "No" then will return.Transfer
If the user will transfer the amount of money, select transfer funds> Nominal (Amount) Transfer, then will appear Transfer details and question whether the user will continue the transaction or not, if "Yes" then the user's balance will be reduced as much as nominal transferred, if "No "Then it will come back.Balance
This menu serves to check the remaining balance that is in the user account.
Here is the sourcode:
'#include
#include
int main(void)
{
int pilihan;
int transaksi,saldo=2000000,setor;
printf("------------+ATM Bank ABC+------------\n1.Tarik Tunai\n2.Transfer\n3.Informasi Saldo\n");
printf("------------------+++------------------\nMasukan Pilihan Anda : ");
scanf ("%d", & pilihan );
switch (pilihan)
{
case 1:
printf("\n 1.Withdrawal\n ");
printf(" input amount: ");
scanf("%d",&transaksi);
saldo-=transaksi;
printf(" Your Balance Now : %d\n",saldo);
break;
case 2:
printf("\n 2.Transfer\n");
printf(" Input Amount : ");
scanf("%d",&setor);
saldo+=setor;
printf(" Your Balance Now : %d\n",saldo);
break;
case 3:
printf("\n 3.Balance\n");
printf(" Your Balance Now : %d\n",saldo);
break;
default:
printf("wrong command (Enter 1-3)\n");
break;
}
system("pause");
return(0);
} '
Result Work :
Program description:
Notice the sourcode below:
'case 1:
printf("\n 1.Withdrawal\n ");
printf(" input amount: ");
scanf("%d",&transaksi);
saldo-=transaksi;
printf(" Your Balance Now : %d\n",saldo);
break; '
if you select 1 then it will generate the output "input amount" then after the amount in input, your balance and the withdrawal amount will be reduced, and then generate the balance output now.
And it will look like the following:
" case 2:
printf("\n 2.Transfer\n");
printf(" Input Amount : ");
scanf("%d",&setor);
saldo+=setor;
printf(" Your Balance Now : %d\n",saldo);
break; "
if you select 2 then it will generate output "input amount" then after amount in input, your balance and transfer amount will be subtracted, and then generate balance output now.
Examples like the following:
"
case 3:
printf("\n 3.Balance\n");
printf(" Your Balance Now : %d\n",saldo);
break;
"
if you select 3 then it will automatically generate your balance output now.
For example seprti following :
"
default:
printf("wrong command (Enter 1-3)\n");
break;
"
if the input is not 1,2,3 it will come out like this.
Posted on Utopian.io - Rewarding Open Source Contributors
Your contribution cannot be approved because it does not follow the Utopian Rules.
Suggestions:
You can contact us on Discord.
[utopian-moderator]
Congratulations @rajamalikulfajar! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Award for the number of upvotes received
Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP