sudhagarblog.files.wordpress.com  · web viewthis project on atm is based on the processing of...

13
ATM SYSTEM 1.PROBLEM STATEMENT: This project on atm is based on the processing of debit cards in atm.There are two main section and the administrator section.In withdraw module the requested amount is deducted from the user’s account if sufficient balance is available.If the balance in the user’s account is insufficient the service is denied.In deposit module the deposited amount is added to the user’s balance.In balance enquiry module the amount that is present in the user’s account is displayed. The user must enter his pin and account number to perform any of the transactions. 2.OVERALL DESCRIPTION: 2.1 MODULES: Login Deposit Withdraw Changing pin number Balance enquiry 2.1MODULE DELIVERABLES: 2.1.1 LOGIN: Basic Flow : User enters correct pin and logs into the machine Alternative Flow : User enters wrong pin and the card gets rejected Pre-condition : User must know the correct pin number. 2.1.2DEPOSIT AMOUNT: Basic Flow: User enters the amount and feds cash to machine. Alternative Flow: User cancels transaction. Pre condition: User should know the amount to be deposited. Post condition: User balance gets updated in the account. 2.1.3WITHDRAWAL:

Upload: ledan

Post on 16-May-2018

215 views

Category:

Documents


1 download

TRANSCRIPT

ATM SYSTEM

1.PROBLEM STATEMENT:This project on atm is based on the processing of debit cards in atm.There are two main section and the administrator section.In withdraw module the requested amount is deducted from the user’s account if sufficient balance is available.If the balance in the user’s account is insufficient the service is denied.In deposit module the deposited amount is added to the user’s balance.In balance enquiry module the amount that is present in the user’s account is displayed. The user must enter his pin and account number to perform any of the transactions.

2.OVERALL DESCRIPTION:2.1 MODULES:

Login Deposit Withdraw Changing pin number Balance enquiry

2.1MODULE DELIVERABLES:2.1.1 LOGIN:Basic Flow : User enters correct pin and logs into the machineAlternative Flow : User enters wrong pin and the card gets rejectedPre-condition : User must know the correct pin number.

2.1.2DEPOSIT AMOUNT:Basic Flow: User enters the amount and feds cash to machine.Alternative Flow: User cancels transaction.Pre condition: User should know the amount to be deposited. Post condition: User balance gets updated in the account.2.1.3WITHDRAWAL:Basic Flow: User enters amount and gets cash from machine.Alternative Flow: Not enough cash in account and so the card gets rejected.Pre condition: User knows the amount to withdraw.Post condition: Balance is updated in account.2.1.4BALANCE ENQUIRY:Basic Flow: User enquires about balance and the balance is displayed.Alternative Flow: User cancels transaction.

2.1.5 DELETE ACCOUNT:Basic Flow: User confirms deletion and account gets deleted.Alternative Flow: User doesn’t confirm and resumes transaction.

3. DESIGN3.1 USECASE DIAGRAM

3.2 CLASS DIAGRAM

Insert cardcard

insert your card()

Enter Pin Nopin no

enter your pin no and verify pin no()

Choose Acc. Typecurrent accountsaving account

choose your account type()

Withdrawbalancecash

withdraw your cash()

Depositbalancecash

deposit cash to your account()

Balance Enquiryaccount nobalancename

check your balance()

Change Pinnoold pin nonew pin no

change your pin no()

Display Optionswithdrawdepositbalance enquirychange pin no

choose your option for further operation()

3.3 ACTIVITY DIAGRAM

Validate pin

Display Options

Valid

Enter Pin no.

Insert Card

Enter Amount to Withdraw

Enter Amount to Deposit

Enter old pin no.

Enter new pin no.

Re-enter Pin no.

Update Balance

Balance Available?

Output the withdrawal Cash

Available

View Balance

Invalid

Balance Enquiry

Update Database

Withdrawal Deposit Pin ChangeBalance Enquiry

Not Available

3.1.4 COLLABORATION DIAGRAM

CUSTOMER

MACHINE

SERVER

1: welcome2: insert card3: enter pin no

9: withdraw11: amount entered

16: deposit18: amount entered22: balance enquiry25: change pin no

8: display options

4: verify pin no12: verify balance

19: update balance23: check balance

5: accept pin no13: enough balance20: balance updated

6: display acc type10: enter amount14: withdraw cash15: display options17: enter amount

21: display options

7: select acc type

24: display balance

26: pin no entered and changed

3.1.7 COMPONENT DIAGRAM

User ATM Machine

Administrator

3.1.5 SEQUENCE DIAGRAM

3.1.5 DEPLOYMENT DIAGRAMATM

Machine

Customer Administator

4. DATABASE DESIGN

Database Name: ATMTable Name : Infor atm

Fields Data typeACC NO TextUSER NAME TextPIN NO IntegerACCOUNT BALANCE Double(8)

Table data:

ACC NO PIN NO USER NAME ACCOUNT BALANCE

a6666 9999 Magdalene Rs.19000

b7777 7777 hhhh Rs.35000

5. IMPLEMENTATION:Form1 (Login form)

Coding:Private Sub Command1_Click()Data1.Recordset.MoveFirstWhile Not Data1.Recordset.EOFIf ((Text1.Text = Data1.Recordset.Fields("AccNO")) And (Text2.Text = Data1.Recordset.Fields("PIN"))) ThenWelcome.Text1.Text = Data1.Recordset.Fields("UserName")Welcome.Text2.Text = Data1.Recordset.Fields("AccNO")Welcome.Show

GoTo outElseData1.Recordset.MoveNextEnd IfMsgBox ("Enter correct AccNO and PIN")Wendout:End Sub

Form2 (Welcome Form)

Coding:Private Sub Command1_Click()Data1.Recordset.MoveFirstWhile Not Data1.Recordset.EOFIf ((Text1.Text = Data1.Recordset.Fields("UserName")) And (Text2.Text = Data1.Recordset.Fields("accno"))) ThenMsgBox (Data1.Recordset.Fields("Account Balance"))Balanceenquiry.Text1.Text = Data1.Recordset.Fields("Account Balance")Balanceenquiry.ShowGoTo outElseData1.Recordset.MoveNextEnd IfMsgBox ("check user name and account number")Wendout:End Sub

Private Sub Command2_Click()Pinchange.ShowEnd SubPrivate Sub Command3_Click()

Withdrawal.ShowEnd Sub

Form3(Balanceenquiry form)

Coding:Private Sub Command1_Click()Welcome.ShowEnd Sub

Private Sub Command2_Click()EndEnd Sub

Form4 (Pinchange form)

Coding:Private Sub Command1_Click()Data1.Recordset.MoveFirst

Data1.Recordset.EditWhile Not Data1.Recordset.EOFIf (Text1.Text = Data1.Recordset.Fields("PIN")) ThenData1.Recordset.Fields("PIN") = Text3.TextMsgBox ("Pin Change Success")Data1.Recordset.UpdateGoTo outElseData1.Recordset.MoveNextEnd IfMsgBox ("Pin change not succesful")Wendout:End Sub

Private Sub Command2_Click()Welcome.ShowEnd Sub

Private Sub Command3_Click()EndEnd Sub

Form5 (Withdrawal form)

Coding:Private Sub Command1_Click()Dim s Welcome.Data1.Recordset.EditIf Welcome.Data1.Recordset.Fields("Account Balance") > Text1.text then

s=val(Welcome.Text2.text) – val(Text1.text)Welcome.Data1.Recordset.Fields("Account Balance") = sWelcome.Data1.Recordset.UpdateElseMsgbox(“Insuficient amount”)End ifEnd Sub

Private Sub Command2_Click()Welcome.ShowEnd Sub

Private Sub Command3_Click()EndEnd Sub

6.TESTING:

RESULT:The ATM system was designed and implemented successfully.

Test case ID: Test_01

Test priority

(Low/Medium/High):Medium

Module name: login

Test title :verify login with valid username and password

Precondition: user has invalid username and password

S.NO

TEST STEPS EXPECTED

RESULTS

ACTUAL

RESULTS

STATUS NOTES

1 Provide valid

User name

User should

Be able to

login

The user is able to move to next

Entry

Success -

2 Provide valid password

User should be

Able to

Login

The user is able

To login

Successfully

Success Incase of wrong

Password was given an error

Message box was

displayed

3 Click login User should be able to navigate to next page after validation

User name and password is validated and next page is displayed

Success Incase user gives wrong entry the sign in page remains active

4 Click signup User should be able to navigate to next page where user enters his credentials

User navigates to the signup page where his user name and password is validated

success -