04-atmsystem source code
TRANSCRIPT
SOURCE CODE GENERATIONFOR
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. Login2. Withdraw3. Mini statement4. 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.
LOGIN VERIFY
WITHDRAW
DEPOSITCUSTOMER
MINI STATEMENT
ATM ADMINATM STATUS
USECASE DIAGRAM FOR ATM SYSTEM
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:
ATM_MC
Limit : integerWithdraw : integerBalance : integer
Login_verify()check_mc()confirmation()
Transaction
Acc_no : integerdate : datetype : stringamt : integerbalance : integer
ministmt()display()update()
User
Username : StringPassword : StringDOB : dateAcc_no : integer
read()write()
NewClass3
Acc_no : integerBalance : integer
Withdraw()Deposit()Display_avail()
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 CODEUSER:
Option Explicit
'##ModelId=4D774A5B01F4Private Limit As Integer
'##ModelId=4D774A60037APrivate Withdraw As Integer
'##ModelId=4D774A66036BPrivate Balance As Integer
'##ModelId=4D774A70030DPublic Sub Login_verify()
End Sub
'##ModelId=4D774A770000Public Sub check_mc()
End Sub
'##ModelId=4D774A7B002EPublic Sub confirmation()
End Sub
ATM_MACHINE:
Option Explicit
'##ModelId=4D774A8600DAPrivate Acc_no As Integer
'##ModelId=4D774A91007DPrivate Balance As Integer
'##ModelId=4D774B0F0222Public NewProperty As Transaction
End Sub
'##ModelId=4D774A9B0213Public Sub Withdraw()
End Sub
ACCOUNT:
Option Explicit
'##ModelId=4D774AD00186Private Acc_no As Integer
'##ModelId=4D774ADB02DEPrivate date As date
'##ModelId=4D774AEF01F4Private balance As Integer
'##ModelId=4D774AF900DAPublic Sub ministmt()
End Sub
'##ModelId=4D774AFD00FAPublic Sub display()
End Sub
'##ModelId=4D774B00004EPublic Sub update()
End Sub
TRANSACTION:
Option Explicit
'##ModelId=4D774A2601B5Private Username As String
'##ModelId=4D774A2B02EEPrivate Password As String
'##ModelId=4D774A320271Private DOB As Date
'##ModelId=4D774A3A002EPrivate Acc_no As Integer
'##ModelId=4D774B0C008CPublic NewProperty As ATM_MC
##ModelId=4D774B110399Public NewProperty2 As Account
'##ModelId=4D774A48032CPublic Sub write()
End Sub
'##ModelId=4D774A450251Public Sub read()
End Sub