Professional Documents
Culture Documents
ATM Application
ATM Application
DATE:
ATM APPLICATION
I. Problem Statement:
1. Basic Requirement:
1. Validity of the card.
2. Balance in the account.
3. Verification of password and PIN id number.
2. Functional Requirements:
1. Details of Transactions.
2. Validate Bank Client.
3. Amount to be withdrawn.
4. Cross Withdrawal limit.
3. Non-Functional Requirement:
1. ATM System failure.
2. Failure of ATM Network due to power cut or something else.
3. Card validity.
4. Invalid PIN id and password.
5. Withdrawal of amount exceeding maximum balance.
6. Withdrawal of amount affecting minimum balance.
IV. Design or Modeling:
Withdraw
Overdraft
Deposit
Bankclient
Approval Process
Transaction History
Invalid Pin
4.1 Use Case Diagram for Withdraw:
Insert ATM
Check Pin
Enter Pin
Request Amount
Client Terminate
ATM Machine
Enter Amount
Withdraw Successful
Withdraw checking
Request to take cash
Print Receipt
STEPS:
1. Analyse the problem statement & identify the actor & use cases.
2. Create actor & use cases.
3. Drag & drop the actor & use cases from browser window to drawing window.
4. Establish connections between actor & use cases using associations.
5.Sequence Diagram
5.1 Sequence Diagram for withdraw :
1: insert atm
2: req pin
3: enter pin
4: verify pin
5: pin ok
6: process trans
7: req amt
8: enter amt
9: withdraw checking
STEPS:
11: req to take cash
1. Create packages for both Analysis model and Design model in logical view.
2. In the Analysis model,12:create class and set the stereotype of class control, entity or
terminate
boundary.
3. After creating class of13:specifies
print receipttype, give operation to the created classes.
4. In the design model package, create a package for “Use case Realisation”.
5. Draw the sequence diagram for the selected usecase realization.
6. Press f5 to get the collaboration diagram automatically.
6.Collaboration Diagram:
6.1 Collaboration Diagram for Withdraw :
Class Diagram:
Class Diagram For withdraw:
ATMMachine
Account
cardid
bank no. balance
name
withdraw( )
insertcard( )
enteramount( )
Customer Transaction
name transid
address transdate
phone transtime
password transtype
enterpin( ) display( )
STEPS:
1. Drag and drop the class diagram from the analysis model.
2. Relate the classes by using associations.
Activity diagram:
Activity diagram for withdraw:
WITH DRAW
AMOUNT
(SUFFICIENT AMOUNT)
RETURN OK
9. Component Diagram:
ATM
Application
System
Update
Front Panel
STEPS:
ATM
application system
counter pc
Skeleton Code Generation:
FORM 1:
Private Sub Command1_Click()
Adodc1.Refresh
While Not Adodc1.Recordset.EOF
If (Text1.Text) = (Adodc1.Recordset.Fields("NAME")) And (Text2.Text =
Adodc1.Recordset.Fields("ACC NO")) And (Text3.Text =
Adodc1.Recordset.Fields("PASSWORD")) Then
MsgBox ("valid customer")
Text5.Text = Adodc1.Recordset.Fields("BALANCE")
GoTo 1
End If
Adodc1.Recordset.MoveNext
Wend
MsgBox ("invalid customer")
End Sub
Private Sub Command2_Click()
Adodc1.Refresh
While Not Adodc1.Recordset.EOF
If (Text1.Text) = (Adodc1.Recordset.Fields("acc no")) Then
Adodc1.Recordset.Edit
Adodc1.Recordset.Fields("balance") = Val(Text5.Text)
Adodc1.Recordset.Update
GoTo 1
End If
Adodc1.Recordset.MoveNext
End
End Sub
Private Sub Command3_Click()
Dim bal As Double
bal = Text5.Text
Text5.Text = bal - Val(Text4.Text)
End Sub
Private Sub Command4_Click()
Dim bal As Double
bal = Text5.Text
Text5.Text = bal + Val(Text4.Text)
End Sub
Private Sub Command5_Click()
Data report1.Show
End Sub
Private Sub Command6_Click()
End
End Sub