ATM Banking System
ATM Banking System
C Language Project
GROUP – 16
HARIPRIYA THOTAPALLI - AP21110010830.
NANDITA MARRI - AP21110010829.
JOSHITHA CHINTHOTI - AP21110010828
Table of Contents
INTRODUCTION: 2
OBJECTIVE 2
ALGORITHM: 3
Flow Chart 4
SOURCE CODE 5
OUTPUT 7
If we press 1 7
If we press 2 8
If we press 3 8
If we press 4 9
CONCLUSION 10
1 | Page
INTRODUCTION:
In this ATM management system, we can operate different types of bank transactions using
C programming. The transactions are like Money Withdraw, deposit, Check balance, transfer
etc.; Here first we need a credit card(or)debit card which is linked with our bank account. By
inserting the card, we can get all details about our account. For this process we need to
enter our personal PIN number, so that it can confirm ownership of the account. We have
different steps in process like Transaction type etc.;
OBJECTIVE
2 | Page
ALGORITHM:
Step1: Start
Step7: print “your transaction successful, thank you for using our service”
Step8: Stop
3 | Page
Flow Chart
Start
Enter pin
2nd try
Is the pin No
correct
Saving Account
Choose Current or
Saving Account
Checking Account
Decision
Yes
Withdraw
Yes
Amount to withdraw
No
yes no
4 | Page
End
SOURCE CODE
#include <stdio.h>
unsigned long amount=2000, deposition, withdrawal;
int pin, choice, k;
char transaction ='y';
void main()
{
while (pin != 2025) // Using while loop to check for the condition on a pin number matching
{
printf("Enter your four digit pin number:");
scanf("%d", &pin);
if (pin != 2025) // Checking if the pin number types by the user is matched with the database
record or not
printf("Please enter a valid number\n");
}
do
{
printf("Hello! Welcome to our ATM Service\n");
printf("1. Balance Checking\n");
printf("2. Cash Withdrawal\n");
printf("3. Cash Deposition\n");
printf("4. Exit\n");
printf("Please proceed with your choice: ");
scanf("%d", &choice);
switch (choice)
{
5 | Page
case 1:
printf("\n The account balance in Rs : %lu ", amount);
break;
case 2:
printf("\n Enter the amount to be withdrawal: ");
scanf("%lu", &withdrawal);
if (withdrawal % 100 != 0)
{
printf("\n You are requested to enter the amount in multiples of 100");
}
else if (withdrawal >(amount - 500))
{
printf("\n You are having an insufficient balance");
}
else
{
amount = amount - withdrawal;
printf("\n\n You can now collect the cash"); // after having a sufficient amount in the
account the ATM machine will provide the cash amount.
printf("\n The current balance is: %lu", amount);
}
break;
case 3:
printf("\n Enter the amount to be deposited: ");
scanf("%lu", &deposition);
amount = amount + deposition;
printf("The balance is: %lu", amount); // Displays the new current balance after the cash
deposition in the user’s account
break;
case 4:
6 | Page
printf("\n We are thankful to you for USING our ATM services!");
break;
default:
printf("\n You have made an invalid choice");
}
printf("\n\n\n Would you like to have another ATM transaction?(Y/N): \n");
fflush(stdin);
scanf("%c", &transaction);
if (transaction == 'n'|| transaction == 'N')
k = 1;
} while (!k);
printf("\n\n Thank you so much for your time to choose The our ATM services!");
}
OUTPUT
If we press 1
7 | Page
If we press 2
If we press 3
8 | Page
If we press 4
CONCLUSION
9 | Page
We can complete the ATM transaction like withdrawl and can deposit the cash.It also shows
the balance money of the account.
10 | Page