Sie sind auf Seite 1von 15

SOURCE CODE GENERATION

FOR
ATM SYSTEM

AIM:

To create a system to perform ATM banking transactions for the


corresponding UML diagrams.

Problem statement:

 This system is build for the client banking and managing process.

 The bank client must be able to deposital and withdrawal amount from
his/her accounts using the ATM machine. Each transaction must be recorded
and the client must be able to review all transactions performed in his/her
account. Recorded transactions must include the date, time, transaction type,
amount and account balance after the transaction.

 The bank manager is authorization to view the ATM machine status and its
is the consolidated balance details of the ATM machine, today’s withdrawal,
today’s balance and the limitations of the machine also appended.

 The bank client is authenticated by login verification. If it is valid he/she


will access their account otherwise an appropriate message is displayed to the
client.

Software requirements:

Microsoft visual basic 6.0 is used as front-end for our project and ms-access is
used as back-end to store the data.

USE-CASE diagram:

The ATM transaction use cases in our system are:


1. Login
2. Withdraw
3. Mini statement
4. ATM machine status
5. Deposit
Actors involved:

1. User
2. Bank manager

USE-CASE name: Login

The user enters a user name and password. If it is valid, the user’s account
becomes available. If it is invalid, an appropriate message is displayed to the user.

USE-CASE name: Withdraw

The user tries to withdraw an amount from his or her checking account. The
amount is less than or equal to the checking account’s balance, the transaction is
performed and the available information is displayed. The system creates a record of
the transaction and the display confirmation message is displayed to the client.

USE-CASE name: Mini statement

The bank user requests a history of transactions for a checking account. The
system displays the transaction history for the checking account. The transaction
history consists of amount, date, transaction type and balance of the particular
account.

USE-CASE name: ATM machine status

The bank manager enters a username and password. If it is valid, the bank
manager accesses the machine status. If it is invalid, an appropriate message is
displayed to the user.

USE-CASE name: Deposit

The bank user requests the system to deposit money to an account. The user
accesses the account for which a deposit is going to be made and enters the amount.
The system creates a record of the transaction and an appropriate confirmation
message (display confirmation) is displayed to the client. The transaction must
include the date, type, amount and account balance after the transaction.
U S E C A S E D IA G R A M F O R A T M S Y S T E M

L O G IN V E R IF Y

W IT H D R A W

CU STO M E R
D E P O S IT

M IN I
STATEM ENT

ATM STATUS
A T M A D M IN

DESCRIPTION:
Use-case diagrams graphically depict system behavior (use cases). These
diagrams present a high level view of how the system is used as viewed from an
outsider’s (actor’s) perspective
CLASS DIAGRAM:

User AT M _ M C
U s e rn a m e : S tr in g L im it : in te g e r
P a s s w o rd : S tri n g W ith d ra w : in te g e r
D O B : d a te B a la n c e : in te g e r
Ac c _ n o : i n te g e r
L o g in _ ve r ify( )
r e a d () c h e ck _ m c ()
w r ite ( ) c o n fir m a tio n ()

T ra n s a c tio n
N e w C la s s 3 Ac c _ n o : in te g e r
d a te : d a te
Ac c _ n o : i n te g e r
typ e : s tr in g
B a la n c e : in te g e r
a m t : in te g e r
b a la n c e : in te g e r
W i th d ra w ( )
D e p o s it()
m i n is tm t( )
D is p l a y_ a va il( )
d is p la y()
u p d a te ()

DESCRIPTION:
The class diagram shows a set of classes, interfaces and collaboration and their
relationship. They are used for constructing executable system through forward and
reserve engineering. Class diagram shows the attributes and operation of a class and
constraints that apply to the way the object are connected.

\
STEP 1: Goto TOOLS -> select Visual Basic->select Component
Assignment Tool
STEP 2: In the Component Assignment Tool->select Unassigned
Classes.Drag all the Classes into the Visual Basic.
STEP 3: Select “Yes” option.

STEP 4: Select “Standard EXE” option->Click OK.


STEP 5: Select the EXE Project in the “Component View”->Right
Click->Select “Update Code”.

STEP 6: Select “Next” option.


STEP 7: Ensure whether the project is selected or not Else Click on the
Project->Click “Next” option.

STEP 8: Click “Finish” option.


STEP 9: Save the created project in “.mdl” extension.
STEP 10: Select “Close” option.
STEP 11: Now Source Code has been generated.
GENERATOR SOURCE CODE
USER:

Option Explicit

'##ModelId=4D774A5B01F4
Private Limit As Integer

'##ModelId=4D774A60037A
Private Withdraw As Integer

'##ModelId=4D774A66036B
Private Balance As Integer

'##ModelId=4D774A70030D
Public Sub Login_verify()

End Sub

'##ModelId=4D774A770000
Public Sub check_mc()

End Sub

'##ModelId=4D774A7B002E
Public Sub confirmation()

End Sub

ATM_MACHINE:

Option Explicit

'##ModelId=4D774A8600DA
Private Acc_no As Integer

'##ModelId=4D774A91007D
Private Balance As Integer

'##ModelId=4D774B0F0222
Public NewProperty As Transaction
End Sub

'##ModelId=4D774A9B0213
Public Sub Withdraw()

End Sub
ACCOUNT:

Option Explicit

'##ModelId=4D774AD00186
Private Acc_no As Integer

'##ModelId=4D774ADB02DE
Private date As date

'##ModelId=4D774AEF01F4
Private balance As Integer

'##ModelId=4D774AF900DA
Public Sub ministmt()

End Sub

'##ModelId=4D774AFD00FA
Public Sub display()

End Sub

'##ModelId=4D774B00004E
Public Sub update()

End Sub
TRANSACTION:

Option Explicit

'##ModelId=4D774A2601B5
Private Username As String

'##ModelId=4D774A2B02EE
Private Password As String

'##ModelId=4D774A320271
Private DOB As Date

'##ModelId=4D774A3A002E
Private Acc_no As Integer

'##ModelId=4D774B0C008C
Public NewProperty As ATM_MC

##ModelId=4D774B110399
Public NewProperty2 As Account

'##ModelId=4D774A48032C
Public Sub write()

End Sub

'##ModelId=4D774A450251
Public Sub read()

End Sub

Das könnte Ihnen auch gefallen