You are on page 1of 9

S.K.T.R.M COLLEGE OF ENGINEERING, KONDAIR – 509125.

DATE: Exp. No

WITHDRAW MONEY FROM ATM

PROBLEM STATEMENT:-

When user wants to withdraw money first he need to


insert ATM card into ATM machine. The ATM will then verify card is valid ATM
card or not. If the card is invalid, the system will show error message and
reject the card. If the card is valid then system will ask user to enter pin
code. Once the user has entered pin code then system will verify account
and pin with the bank. If the pin is invalid then system will ask user to
reenter the pin. If the pin is valid then system will ask user what action
system wants to perform for him. If user selects withdraw money, then
system will ask the user to enter the amount he wants to withdraw. The
system will then check for the amount balance of the user. If the balance is
enough, withdraw cash to the user. If the balance is not enough, the system
will display error message indicates that withdraw was failed. The user can
re-enter the amount that he want to withdraw or simply cancel action. In
order to communicate with the bank the ATM system need the help from the
bank consortium. This acts as the middle man between the ATM system and
the bank will pass through the consortium.

1.1
S.K.T.R.M COLLEGE OF ENGINEERING, KONDAIR – 509125.
DATE: Exp. No
Class Diagram of ATM System

CLA S S DIA GRA M

Cas h di s pens er ATM c ont r ol l er


dispense c as h(am ont:float):voi() withdraw(amt:float):void()
depos it(amt:float):void()
c heck balanc e():float()
c ancel operation():void()
verify c ard(bank id):boolean()
login(acc no:java.lang.string pin:string):boolean()

Car d c ont r ol l er
Bank c ons or t i um
eject c ard():void()
get bank:id:int() look up bank (bank id:int)balance()
get ac c no():string()
1

1. . *

Ac c ount Bank
acc no : java.lang.s tring bank id
pin : java.lang.string name : string
balanc e : float
get bank id():int()
get acc no() get bank name():s tring()
0. . *
get balanc e() : float() get acc ount(ac c. no:string)acc ount()
depos it amt:(float):void()
withdraw(amount:float):boolean()
is valid(pin.java.lang.s tring):boolean()
update pin(old pin:s tring,new pin:string):boolean()

1.2
S.K.T.R.M COLLEGE OF ENGINEERING, KONDAIR – 509125.
DATE: Exp. No

USECASE DIAGRAM

Withdraw money

Deposit money

Check balance

User

Transfer money

Login

1.3
S.K.T.R.M COLLEGE OF ENGINEERING, KONDAIR – 509125.
DATE: Exp. No

CO LLA BO RA T IO N F O R EN T I

1 :In s e r t c a r d
3 :e n t e r p i n c o d e
5 :s e l e c t w i t h d r a w
7 :e n t e r a m o u n t t o w i t h d r a w

: U ser A TM
2: e n t e r p i n r e q u e s t s y s te m
4:e n t e r s e r v i c e r e q u e s t
6 :a s k f o r a m o u n t t o w i t h d r a w
8 :s h o w w i t h d r a w s u c c e s s s c r e e n
9 :d i s p e n s e c a s h
1 0 e: j e c t c a r d

1.4
S.K.T.R.M COLLEGE OF ENGINEERING, KONDAIR – 509125.
DATE: Exp. No

SEQUENCE DIAGRAM FOR ENTIRE ATM SYSTEM


ATM system

: User

insert card

enter pin request

enter pin code

enter service request

select with draw

ask for amount to withdraw

enter amount to withdraw

show with draw success screen

dispense cash

eject card

1.5
S.K.T.R.M COLLEGE OF ENGINEERING, KONDAIR – 509125.
DATE: Exp. No

C O L L A B O R A T IO N D I A G R A M
1 2 :e n te r p in re q u e st
2 4 :w ith d r a w a m o u n t
ke y pa d

: U se r 2 0 : se le c t w ith d ra w l

1 1: sh o w p in D isp la y
1 9: d isp la y m a in m e n u
2 3: e n te r a m o u n t
3 1: su c c e ss m e sse g e
1 : i n se rt c a rd 3 6: sh o w m a in m e n u
2 1 :w ith d ra w m o n e y 1 3 p: i n c o d e
2 5w: ith d ra w re q u e st
3 4 :u se r re cie v e ca rd a sk fo r p in
10:

1 8 : d i sp la y m a in m e n u
2 2 : a sk fo r a m o u n t
3 0 : sh o w w i h d ra w
3 5 : sh o w m a i n
C a rd C a rd
re a d e r c o n tr o l le r
3 3 : e j e ct th e ca rd
a tm
c o n tro l le r
2 : v e rify c a rd

3:v e rify c a rd
9 : c a rd v a lid

8 :c a rd v a lid
3 2 d: i sp e n se ca sh 4 :v e rify c a rd
1 4:v e r ify a c co u n t
C a sh 2 6:w ith d ra w re q u e st
c o n tro lle r 7 : c a rd v a lid
1 7 :a c c o u n t o k
2 9 : w ith d ra w o k

6 : c a rd v a lid
1 6 :a c c o u n t o k
2 8 :w i th d r a w o k
a cco un t ba nk

5 : v e rify c a rd
1 5 :v e rify a cc o u n t
2 7 :w ith d ra w re q u e st

1.6
S.K.T.R.M COLLEGE OF ENGINEERING, KONDAIR – 509125.
DATE: Exp. No

S T A T E DIA GRA M

i n se r t c a r d (i n v a li d c a r d )

m a in sc r e e n w a i t fo r p i n (c a rd
M a i n sc r e e n W a it fo r p in

tra n sa c ti o n su c c e ss o p e r a ti o n c a n c e l

u se r c a n c e l o p e r a ti o n

P r o c e ss tr a n sa c ti o n Ca nce l W a it fo r a c c o u n t

u se r c a n c e l
u se r c a n c e l o p e r a ti o na c c o u n t o k

e n te r a m o u n t

W a it fo r e n te ri n g a m o u n t se le c t w i th d ra w l m o n e y W a it fo r se le c tin g

1.7
S.K.T.R.M COLLEGE OF ENGINEERING, KONDAIR – 509125.
DATE: Exp. No
Activity Diagram of ATM

Insert Card

Enter
Password
Invalid
Password
Choose Type of
Valid Password Transaction

Carry out the


transaction

Transaction Completed Remove


Card

1.8
S.K.T.R.M COLLEGE OF ENGINEERING, KONDAIR – 509125.
DATE: Exp. No

Activity Diagram for the account class withdrawal method

Withdraw using class Account Withdraw


method (an Amount)

Insufficient Amount A/C doesn’t have permission for overdraft

Has Permission

Check Withdraw Limit

Within Limit Cross the limit


Return Code Return Code
= Ok = Cancel

1.9

You might also like