ATM SIMULATION
Abstract :
It is a GUI –based project used with the
swing library to organize all the elements that work
under the ATM simulator application. It was
invented by John Adrian Shepherd-Barron OBE.It
helps the user in performing various transactions.
Software Specification :
ATMs world wide use
Microsoft windows. Requirements needed are card
reader, key pad, screen, cash dispenser, deposit
slot ,printer ,communication infrastructure. It should
be able to perform balance inquiry, deposit cash,
deposit check, withdraw cash, transfer funds. The
chain of responsibility design pattern is used here.
The ATM machine is a hardware and the
programming falls under embedded system
programming.
Module Description :
It enables the customers
toper from the basic banking transaction. The system
provides the access to the customer to create an
account , deposit / withdraw the cash from his /her
account , also to view reports of all accounts present .
This project has been developed to carry out the
processes easily and quickly , which is not possible
with the manuals system , which are overcome by
this software .
Coding:
import java.util.*;
public class Main {
public static void main(String[]args)
{
int debit, credit, balance;
balance = 100000;
while(true)
{
Scanner sc= new Scanner(System.in);
System.out.println (“Select option 1 for debit”);
System.out.println (“Select option 2 for credit”);
System.out.println (“Select option 3 for balance”);
System.out.println (“Select option 4 for exit”);
System.out.println (“Select an option”);
int s= sc . nextlnt ();
switch (s)
{
case1:
System.out.println (“amount to debit:”);
Debit = sc . nextlnt ();
if(debit<=balance)
{
balance=balance-debit;
System.out.println (“amount debited successfully”);
else
{
System.out.println (“insufficient balance”);
}
break;
case2:
System.out.println (“Enter amount to be credited”);
credit = sc . nextlnt ();
balance = balance+credit;
System.out.println (“amount credited successfully”);
}
else
{
System.out.println (“amount credited failed”);
}
break;
case3:
System.out.println (“balance”);
break;
case4:
System.out.println (“transaction completed
successfully”);
System.exit(0);
}
}
}
}
Conclusion :
An ATM is an electronic
telecommunication system that allows customers of
banking firms to conduct financial transactions . We
can create an ATM program in java to display ATM
transactions and the user can withdraw money ,
deposit money ,check the balance and exit from the
ATM.
Future Enhancement :
This includes using
fingerprint scanner , facial recognition technology
and even iris scanner to verify a user’s identity. It
also includes integration with mobile banking . It
could include the use of larger , high – resolution
screen , faster transaction speeds and more user –
friendly interfaces.