Bachelor of Computer Application: Minor Project Report On

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 48

MINOR PROJECT REPORT ON

ATM SYSTEM

Submitted in partial fulfillment of the requirements

For the award of the degree of

BACHELOR OF COMPUTER APPLICATION


To

Guru Gobind Singh Indraprastha University, Delhi

Under The Guidance of Submitted by

VARUN Niruktt Sharma

BCA- V Semester

42724002017

Session 2019-2020

TRINITY INSTITUTE OF PROFESSIONAL STUDIES


(Affiliated to Guru Gobind Singh Indraprastha University, Delhi)

Ranked “A+” Institution by SFRC, Govt. of NCT of India

Recognized under section 2(f) of the UGC Act, 1956

NAAC Accredited “B++” Grade Institution


TABLE CONTENT

S.No Topic Page No


1 Certificate 1

2 Acknowledgement 2

3 List of Tables 3

4 Project Features 3

5 System Requirement 4

6 Project Abstract 5

7 Chapter 1 : Introduction 6-7


8 Chapter 2 : System Analysis 8

9 Chapter 3 : Feasibility Studies 9

10 Chapter 4 : System Design 10


11 Chapter 5 : System Development(Coding) 11-27

12 Chapter 6 : System Implementation 28-33

13 Chapter 7 : Testing

14 Future Scope 34
CERTIFICATE
This is to certify that this project report entitled “ATM System “ being submitted to the record,
Trinity Institute Of Professional Studies, Dwarka, by Niruktt Sharma for the partial fulfillment
for the award of degree of BCA (Computer Application), is a bonafide record of work carried out
by him, under our guidance and supervision. It has not been submitted for the award of any other
degree.
ACKNOWLEDGEMENT

First of all, I would like to thank my teacher for helping me to acquire some basic knowledge of
“Visual Basic Language”. At the same time, he gave me the opportunity to learn something new
related to our module like methods, arrays, Buttons etc.

Beside from my teacher, I like to thank my other classmates for helping understand the
assignment related question more clearly. They gave their best for completing this report on time.
I thank them for their efforts.
List of Tables

Table Information
Withdrawal Table
Deposit Table

PROJECT FEATURES:

 Login Form
 Registeration Form
 Admin Form
 Withdrawal
 Balance Inquiry
 Deposit
SYSTEM REUIREMENT

Processor Required: Intel Pentium or Later or Compatible


Windows Platform Required: Windows 7, 8, 10
Software Required (Font End): Visuals Basic 2012
Software Required(Back End): Microsoft Access 7
Min Ram Required: 1 GB
Max Ram Required: 2 GB
Minimum Hard Disk Space Required 5 GB
Maximum Hard Disk Space Required 10 Gb
PROJECT ABSTRACT

The ATM System is the project which is used to access their bank accounts in order to make
cash withdrawals. Whenever the user need to make cash withdraws, they can enter their Pincode
Number) and it will display the Option to user so he/she can make choice accordingly if they
want to withdraw money, Check Balance Inquiry etc.

The Atm System is developed in VB.NET and Back-end database as Ms-Access. VB.NET is the
one of the powerful version of Framework and Object oriented Programming. Hence we use this
software in our project.

The ATM will service one customer at a time. A Customer will required to enter ATM Card
Number, Personal Identification Number (PIN)- both of which will sent to the database for
validation as part of each transaction. The Customer will them be able to perform one or more
transactions. Also customer must be able to make a balance of any account linked to the card.

The ATM will provide the customer with a printed receipt for each successful transaction,
showing the date , time, machine location, type of transaction, account(s), amount, and ending
and available balance(s), of the affected account(“to” account for transfer).
CHAPTER 1. INTRODUCTION

This assignment is based on developing an ATM(Automated Teller Machine) Using “ Visual


Basic Software”. For The Database For this project we have used Microsoft Access For Database
so that it will become more users friendly to interact.

Besides, we also added text files for user’s records that are directly linked with program. It is so
called a heart of this program where all the function depends on it.

An Automated Teller Machine (ATM) Allows customers to perform banking transaction


anywhere and at anytime without the need of human teller . By using a debit or ATM card at an
ATM, individuals can withdraw cash from checking or saving account’s, make a deposit or
transfer money from one account to another or perform other functions. You can also get cash
advances using credit card at an ATM. Individuals should be aware that many bank charge
transaction fees – generally ranging from Rs 50- 150 transaction-for using another Bank’s AT<.

1.2 PROBLEM DEFINITION

The System mainly used by the bank clients. When a clients comes to ATM center to update and
delete their account. It reduces the time consumption and lot of paperwork.

For any single operation it involves numerous references and updating also takes subsequent
changes in other places.

1.3 EVIDENCE OF PROBLEM DEFINITION

Now a day’s every one very busy in their work. So they feel that the job must be easier so the
system is used to reduce their work which is done in the ATM system. Instead of keeping lts of
paper into a record or file and it may be missed somewhere so, this system help to keep the
record of the customer it also keeps the details of the customer.
1.4 PROPOSED SOLUTION

The System customer transactions, satisfies the requirements of the existing system in fledged
manner. Through this system , customer can make fast transaction and view the least transactions
easily.

1.5 NEED FOR THE ATM SYSTEM

Millions of times per day around the globe people are instantly withdrawing money at automatic
teller machines (ATMs). Given the fast-pace of the world today, it is not surprising that the
demand for access to quick cash is so immense. The power of ATMs would not be possible
without secure connections. The final act of ATM dispending cash is the result of an amazingly
fast burst of the customer never sees, but a trust is being done in a confidential manner.
PROJECT DESCRIPTION

Now a days every one very busy in their work. So they feel that the job must be easier so the
system is used to reduce their work which is done in the ATM system. Instead of keeping lots of
paper into a record or file and it may be missed somewhere.

PROBLEM DESCRIPTION

The system mainly used by the bank clients. When a client comes to ATM centre to update and
delete their account. It reduces the time consumption and lot of paperwork. For any single
operation it involves numerous references and updating also takes subsequent changes in other
places.
CHAPTER 2 : SYSTEM ANALYSIS

Existing System:

1. The existing system is manual system.

2. The manual system is prone to error.

3. This system involves a lot of manual entries with the application to perform a desired task.

4. Usage of papers and records in the process leads to less efficiently less productivity.

5. Increase lots of mistakes while writing in paper.

6. Time delay between the user and customer is reduced.

7. For this reason the new system in invented.


Proposed System :

The system customer transactions, satisfies the requirements of the existing system in full-
fledged manner. Through this system, customer can make fast transactions and view the last
transactions easily.

System Analysis:
Understand the problem before the system to create analysis model there is a tendency to rush to
a solution, even before the problem is understood.

Develop prototypes that enables user to understand how human/machine interaction will
occur. Since the perception of the quality of software is often based on the perception of the
“friendliness” of the interface prototyping is highly recommended.

Record the origin of and the reason for every requirement. This is the first step-in establishing
traceability back to the customer.

Use multiple views of requirements building data, functional and behavioral models provide the
software engineer with three different views. This reduces the likelihood that something will be
missed and increases the likelihood that inconsistency will be recognized.

Rank requirements. Tight deadlines may preclude the implementation of every software
requirements to be delivered in the first increment must be identified.

Work to eliminate ambiguity because most requirements are described in a natural language, the
opportunity for ambiguity abounds.
System Planning :

1. Analysis principles are applied and a model of the software to be build called a planning
(prototype) is constructed for customer and developer assessment.

2. The close-ended approach is often called throwaway prototyping using this approach a
prototype serves solely as a rough demonstration of requirements it is then discarded and the
software is engineered using a different paradigm.

3. An open-ended approach, called evolutionary prototyping uses the prototype as the first part
of an analysis activity that will be continued into design and construction the prototype of the
software is the first evolution of the finished system.
In the manual system, first the bank manager and its staff have to manage information
regarding the accounts and transaction of all the customer’s manually.

Doing this manual transaction was really tedious job. Secondly Information regarding
accounts and transaction of customers were to be maintained. This process is time consuming
and it requires a great manual effort.

2.1 Disadvantages

 More time is consumed


 More hard work to maintain all records.
 Bulk of paper is to be searched for a single search.
CHAPTER 3: FEASIBILITY STUDY

3.1 Technlogy:

This system is technically feasible, because the system activated by computers and recent
technology. We use client / server technology which is powerful and very user friendly.

3.2 Finance :

It is financially feasible. There is no need of spending over money. Mainly this system
constructed by existing devices only. Since we use netbeans as a front-end it was most power-
full, small and portable across platforms and operating systems both at the source and at the
binary level. This project reduces the number of workers wage also.

3.3 Time:

This system really time-to-market beat the competition. Because the system developed with in a
time span and worked based on time event. The time taken to access the account is very less and
avoids unnecessary waiting that was in the traditional system. Although it uses less time but its
performance is very well.
3.4 Technical Feasibility

The System is being developed in Visual Basic 2012. It provides comprehensive function to
make it user friendly. The data entry and report generation is also made easy. Backup and restore
of the database facility are also provided. It also provides easy retrieval of data . The Machine
configuration also supports this software.

3.5 Social Feasibility

As this system is user friendly and flexible some problems will also be solved which customer
may be facing when using existing system. So we can say that system is socially feasible.

3.6 Economical Feasibility

The cost of converting from manual system to new automatic computerized system is not
probably so it does not require any extra resource, only the software requirement is there.

3.7 Operation Feasibility

Since the system is being in user friendly way, the new customer within a few time can master it.
CHAPTER 4: SYSTEM DESIGN

4.1 Table Name: Table Info

Field Name Data Type


Account No Number
First Name Text
Last Name Text
Address Text
Contact No Memo
Gender Text
Birthday Text
Pin code Number
Type Text
Balance Text

4.2 Table Name: Table Withdraw

Field Name Data Type


Account No Number
Withdraw Text
Date Withdraw Date/Time

4.3 Table Name: Table Deposit

Field Name Data Type


Account No Number
Deposit Text
Date Deposit Date/Time
DATA FLOW DIAGRAM :

Level 0:

USE CASE DIAGRAM :

A use case diagram is a diagram which consists of set of usecases and actors enclosed by system
boundary, and association between usecases and actors. Usecases diagram especially important
in organizing, modeling the behavior of the system.

Use case is a set of scenarious tied together by a common user goal. A scenario is a sequence of
steps describing the interaction between a user and system.
ER DIAGRAM OF AN ATM
LEVEL 0 DIAGRAM :
USE CASE DIAGRAM :
CHAPTER 5 : SYSTEM DEVELOPMENT(CODING)

5.1 Admin Form

Public Class AdminForm


Dim da As New OleDb.OleDbDataAdapter
Dim con As New OleDb.OleDbConnection
Dim dt As New DataTable
Dim sql As String
Dim cmd As New OleDb.OleDbCommand

Private Sub AdminForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles MyBase.Load
con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +
"C:\Users\Niruktt\Documents\Atm.accdb"
Label11.Text = Date.Now

txtfname.Enabled = False
txtlname.Enabled = False
btnblock.Enabled = False
btnunblock.Enabled = False
GroupBox2.Enabled = False
btnok.Enabled = False
End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button4.Click
txtfname.Enabled = True
txtlname.Enabled = True

btnok.Enabled = True

End Sub

Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As


System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
Dim i, j As Integer

i = e.RowIndex
j = e.ColumnIndex
If j = 0 Then
txtAcctNo.Text = DataGridView1.Rows(i).Cells(j).Value
txtfnme.Text = DataGridView1.Rows(i).Cells(j + 1).Value
lblhide.Text = DataGridView1.Rows(i).Cells(j + 1).Value
txtlnme.Text = DataGridView1.Rows(i).Cells(j + 2).Value
'txtlname.Text = DataGridView1.Rows(i).Cells(j + 2).Value
txtaddr.Text = DataGridView1.Rows(i).Cells(j + 3).Value
txtcontact.Text = DataGridView1.Rows(i).Cells(j + 4).Value
cbGender.Text = DataGridView1.Rows(i).Cells(j + 5).Value
txtbday.Text = DataGridView1.Rows(i).Cells(j + 6).Value
txtPincode.Text = DataGridView1.Rows(i).Cells(j + 7).Value

End If
End Sub

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button5.Click

con.Open()

Dim ad As New OleDb.OleDbDataAdapter("select * from tlbinfo", con)


Dim data As New DataSet
ad.Fill(data, "info")
DataGridView1.DataSource = data.Tables("info").DefaultView

data.Dispose()
ad.Dispose()
con.Close()
End Sub

Private Sub btnupdate_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles btnupdate.Click
con.Open()

'Dim ad As New OleDb.OleDbDataAdapter("select * from book", con)

sql = "UPDATE tblinfo SET account_no='" & txtAcctNo.Text & "',pin_code='" &
txtPincode.Text & "',Firstname='" & txtfnme.Text & "',Lastname='" & txtlnme.Text &
"',Address='" & txtaddr.Text & "',Contact_no='" & txtcontact.Text & "',Gender='" &
cbGender.Text & "'where Firstname='" & lblhide.Text & "'"
cmd.CommandText = sql
cmd.Connection = con
cmd.ExecuteNonQuery()
cmd.Dispose()
MsgBox("success")

con.Close()
'Button5_Click(sender, e)
DataGridView1.Refresh()

End Sub

Private Sub btnok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles btnok.Click
sql = "SELECT * FROM tlbinfo where Firstname='" & txtfname.Text & "'" & "and
Lastname= '" & txtlname.Text & "'"
Try

con.Open()

da = New OleDb.OleDbDataAdapter(sql, con)

da.Fill(dt)

DataGridView1.DataSource = dt

Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Information)
End Try

con.Close()
btnok.Enabled = False

End Sub

Private Sub btnedit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles btnedit.Click
GroupBox2.Enabled = True
btnedit.Enabled = False
Button4.Enabled = False
btnblock.Enabled = True
btnunblock.Enabled = True

End Sub

Private Sub btncancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles btncancel.Click
GroupBox2.Enabled = False
btnedit.Enabled = True
Button4.Enabled = True
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
Login_frm.Show()

Me.Hide()

End Sub

Private Sub btnblock_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles btnblock.Click
con.Open()

Dim ad As New OleDb.OleDbDataAdapter("select * from tblinfo", con)

sql = "UPDATE tlbinfo SET type='" & "Block" & "'" & " Where Firstname ='" &
txtfnme.Text & "'"
cmd.CommandText = sql
cmd.Connection = con
cmd.ExecuteNonQuery()
cmd.Dispose()
MsgBox("success")

con.Close()
Button5_Click(sender, e)
End Sub

Private Sub btnunblock_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles btnunblock.Click
con.Open()
Dim ad As New OleDb.OleDbDataAdapter("select * from tblinfo", con)

sql = "UPDATE tlbinfo SET type='" & "Active" & "'" & " Where Firstname ='" &
txtfnme.Text & "'"
cmd.CommandText = sql
cmd.Connection = con
cmd.ExecuteNonQuery()
cmd.Dispose()
MsgBox("success")

con.Close()
Button5_Click(sender, e)
End Sub
End Class
5.2 Balance Inquiry

Public Class Balanceinq


Dim cmd As New OleDb.OleDbCommand
Dim da As New OleDb.OleDbDataAdapter
Dim ds As New DataSet
Dim con As New OleDb.OleDbConnection
Dim sql As String

Private Sub Balanceinq_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles MyBase.Load
Label2.Text = Date.Now

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
Dim sql As String
Dim Log_in As New DataTable
Try
If txtpin.Text = "" Then
MsgBox("Pls Enter Your Pin")

Else
con.ConnectionString = ("Provider=Microsoft.ACE.OLEDB.12.0;Data Source="
+ "C:\Users\Niruktt\Documents\Atm.accdb")
sql = "SELECT * FROM tlbinfo where pin_code = " & txtpin.Text & ""

With cmd
.Connection = con
.CommandText = sql
End With
da.SelectCommand = cmd
da.Fill(Log_in)
If Log_in.Rows.Count > 0 Then
Dim balance As String

balance = Log_in.Rows(0).Item("balance")

Receipt.Show()
'Receipt.lblaccno.Text = lblaccno.Text
Receipt.lblbal.Text = balance
Receipt.Label4.Hide()
Receipt.Label3.Hide()
Receipt.lbldep.Hide()
Receipt.lblwith.Hide()
Receipt.Label6.Hide()
Receipt.lblnewbal.Hide()

Me.Hide()

Else
MsgBox("Pincode is incorrect")
End If

End If

Catch ex As Exception

MsgBox(ex.Message)
End Try

txtpin.Text = ""
End Sub
End Class
5.3 Deposit

Public Class Deposit


Dim da As New OleDb.OleDbDataAdapter
Dim con As New OleDb.OleDbConnection
Dim dset As New DataSet
Dim cmd As New OleDb.OleDbCommand
Dim balance As String
Dim num1, num2, total As Integer

Private Sub Deposit_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles MyBase.Load
lbldate.Text = Date.Now
lblaccno.Text = Mainmenu.lblaccno.Text
End Sub

Private Sub btnok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles btnok.Click
Dim sql As String
Dim Log_in As New DataTable

Try

con.ConnectionString = ("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +


"C:\Users\Niruktt\Documents\Atm.accdb")
sql = "SELECT * FROM tlbinfo where account_no = " & lblaccno.Text & ""

With cmd
.Connection = con
.CommandText = sql
End With
da.SelectCommand = cmd
da.Fill(Log_in)
If Log_in.Rows.Count > 0 Then
balance = Log_in.Rows(0).Item("balance")
num1 = balance
num2 = txtamount.Text

If num2 > 25000 Then


MsgBox("You can Only Deposit Php 25,000!")
ElseIf num2 < 200 Then
MsgBox(" Mininum Deposit is 200")

Else
total = num1 + num2

Receipt.Show()

Receipt.lblbal.Text = balance
Receipt.Label3.Hide()
Receipt.lblwith.Hide()
Receipt.lbldep.Text = num2
Receipt.lblnewbal.Text = total

Receipt.Label5.Show()
Receipt.Label6.Show()

Receipt.lblbal.Show()
Receipt.Label3.Hide()
Receipt.lblwith.Hide()
Receipt.lbldep.Show()
Receipt.lblnewbal.Show()

Receipt.lblname.Text = Mainmenu.lblname.Text
Me.Hide()

End If
Else

End If

Catch ex As Exception
MsgBox(" Pls. Enter Ammount!")

End Try
txtamount.Text = ""

End Sub
5.4 Login Form

Public Class Login_frm


Dim cmd As New OleDb.OleDbCommand
Dim da As New OleDb.OleDbDataAdapter
Dim ds As New DataSet
Dim con As New OleDb.OleDbConnection

Private Sub btnlogin_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles btnlogin.Click
Dim sql As String
Dim Log_in As New DataTable
Try
If txtpin.Text = "" Then
MsgBox("Pls Enter both Fields")

Else
con.ConnectionString = ("Provider=Microsoft.ACE.OLEDB.12.0;Data Source="
+ "C:\Users\Niruktt\Documents\Atm.accdb")
sql = "SELECT * FROM tlbinfo where pin_code = " & txtpin.Text & ""

With cmd
.Connection = con
.CommandText = sql
End With
da.SelectCommand = cmd
da.Fill(Log_in)
If Log_in.Rows.Count > 0 Then
Dim Type, Fullname, accno As String
Type = Log_in.Rows(0).Item("type")
Fullname = Log_in.Rows(0).Item("Firstname")
accno = Log_in.Rows(0).Item("account_no")
If Type = "admin" Then
MsgBox("Welcome " & Fullname & " you login as Administrator ")
AdminForm.Show()
Me.Hide()

ElseIf Type = "Block" Then


MsgBox("Your account is currently Block")
MsgBox("Contact the Administrator for Help")

Else
MsgBox("Welcome " & Fullname)

Mainmenu.lblname.Text = Fullname
Mainmenu.lblaccno.Text = accno
Mainmenu.Show()
Me.Hide()

End If

Else
MsgBox("Yuo are Not Registered!!!")
MsgBox("Pls Register if You are New!")
End If
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try

txtpin.Text = ""

End Sub

Private Sub llblreg_LinkClicked(ByVal sender As System.Object, ByVal e As


System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles llblreg.LinkClicked
Regs_frm.Show()

End Sub
5.5 Registration Form

Public Class Regs_frm


Dim constr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +
"C:\Users\Niruktt\Documents\Atm.accdb"
Dim adapt, adapt1 As New OleDb.OleDbDataAdapter
Dim conn As New OleDb.OleDbConnection(constr)
Dim dset As New DataSet

Private Sub btnRegister_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles btnRegister.Click
If txtAcctNo.Text = "" And txtPincode.Text = "" And txtcontact.Text = "" And
txtfname.Text = "" And txtlname.Text = "" And txtaddr.Text = "" And txtcontact.Text = ""
And cbGender.Text = "" And cbday.Text = "" And cbmonth.Text = "" And cbyear.Text = ""
Then
MsgBox("Enter All Fields")

ElseIf txtAcctNo.Text = "" Or txtPincode.Text = "" Or txtcontact.Text = "" Or


txtfname.Text = "" Or txtlname.Text = "" Or txtaddr.Text = "" Or txtcontact.Text = "" Or
cbGender.Text = "" Or cbday.Text = "" Or cbmonth.Text = "" Or cbyear.Text = "" Then
MsgBox("Pls Complete all Fields")

Else
Dim adapt1 As New OleDb.OleDbDataAdapter("select * from tlbinfo where
Firstname='" & txtfname.Text & "'", conn)
Dim dset1 As New DataSet()
adapt1.Fill(dset1)
If dset1.Tables(0).Rows.Count <> 0 Then
MsgBox("Account name already exist")
Else
Dim dbcommand As String = "INSERT into tlbinfo (account_no, Firstname,
Lastname, Address, Contact_no, Gender, Birthday, pin_code , type, balance)" & " VALUES
('" & txtAcctNo.Text + "','" & txtfname.Text & "','" & txtlname.Text & "','" &
txtaddr.Text & "','" & txtcontact.Text & "','" & cbGender.Text & "','" & (cbmonth.Text +
cbday.Text + cbyear.Text) & "','" & txtPincode.Text & "','" & "Active" & "','" & "1000" &
"')"
Dim adapt As New OleDb.OleDbDataAdapter(dbcommand, conn)
Dim dset As New DataSet()
adapt.Fill(dset)
MsgBox("You Have Succesfully Registered!")
Me.Hide()
Login_frm.Show()
End If
End If
End Sub

Private Sub Regs_frm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles MyBase.Load
lbldate.Text = Date.Now

conn.ConnectionString = constr
conn.Open()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Me.Close()
Login_frm.Show()
End Sub
End Class
5.6 Main Menu

Public Class Mainmenu


Dim cmd As New OleDb.OleDbCommand
Dim da As New OleDb.OleDbDataAdapter
Dim ds As New DataSet
Dim con As New OleDb.OleDbConnection
Dim sql As String
Private Sub Label4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles lblaccno.Click

End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles btnlogout.Click
Login_frm.Show()
Me.Hide()
End Sub

Private Sub Mainmenu_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles MyBase.Load
lbldate.Text = Date.Now

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click

Dim sql As String


Dim Log_in As New DataTable
Try

con.ConnectionString = ("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +


"C:\Users\Niruktt\Documents\Atm.accdb")
sql = "SELECT * FROM tlbinfo where account_no = " & lblaccno.Text & ""

With cmd
.Connection = con
.CommandText = sql
End With
da.SelectCommand = cmd
da.Fill(Log_in)
If Log_in.Rows.Count > 0 Then
Dim balance As String

balance = Log_in.Rows(0).Item("balance")

Receipt.Show()
Receipt.lblname.Text = lblname.Text
'Receipt.lblaccno.Text = lblaccno.Text
Receipt.lblbal.Text = balance
Receipt.Label4.Hide()
Receipt.Label3.Hide()
Receipt.lbldep.Hide()
Receipt.lblwith.Hide()
Receipt.Label6.Hide()
Receipt.lblnewbal.Hide()

Me.Hide()

Else
MsgBox("Pincode is incorrect")

End If

Catch ex As Exception

MsgBox(ex.Message)
End Try

End Sub

Private Sub btnwith_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles btnwith.Click
Withdraw.Show()
Me.Hide()

End Sub

Private Sub btndep_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles btndep.Click
Deposit.Show()
Me.Hide()
End Sub
5.7 Receipt Form

Public Class Receipt


Dim da As New OleDb.OleDbDataAdapter
Dim con As New OleDb.OleDbConnection
Dim dt As New DataTable
Dim sql As String
Dim cmd As New OleDb.OleDbCommand

Private Sub Receipt_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles MyBase.Load

con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +


"C:\Users\Niruktt\Documents\Atm.accdb"
lbldate.Text = Date.Now

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
If lblnewbal.Text = "" Then

Else

con.Open()

Dim total As Integer = lblnewbal.Text


Dim ad As New OleDb.OleDbDataAdapter("select * from tblinfo", con)

sql = "UPDATE tlbinfo SET balance='" & total & "'" & " Where Firstname='" &
lblname.Text & "'"
cmd.CommandText = sql
cmd.Connection = con
cmd.ExecuteNonQuery()
cmd.Dispose()

con.Close()

End If

If MessageBox.Show("Do You Want to Continue Your transaction??", "Continue",


MessageBoxButtons.YesNo, MessageBoxIcon.Question) = Windows.Forms.DialogResult.Yes Then
Mainmenu.Show()
Else
MsgBox("Thank You Come Again")

Login_frm.Show()

End If
Me.Close()
End Sub
End Class

5.8 Withdrawal Form

Public Class Withdraw


Dim da As New OleDb.OleDbDataAdapter
Dim con As New OleDb.OleDbConnection
Dim dset As New DataSet
Dim cmd As New OleDb.OleDbCommand
Dim balance As String
Dim num1, num2, total As Integer

Private Sub Withdraw_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles MyBase.Load
lbldate.Text = Date.Now
lblaccno.Text = Mainmenu.lblaccno.Text
End Sub

Private Sub btnok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles btnok.Click

Dim sql As String


Dim Log_in As New DataTable

Try

con.ConnectionString = ("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +


"C:\Users\Niruktt\Documents\Atm.accdb")
sql = "SELECT * FROM tlbinfo where account_no = " & lblaccno.Text & ""

With cmd
.Connection = con
.CommandText = sql
End With
da.SelectCommand = cmd
da.Fill(Log_in)
If Log_in.Rows.Count > 0 Then
balance = Log_in.Rows(0).Item("balance")
num1 = balance
num2 = txtamount.Text

If num2 > 25000 Then


MsgBox("You can Only Withdraw Php 25,000")
ElseIf num2 < 200 Then
MsgBox(" Mininum withdrawal is 200")
ElseIf num1 < num2 Then
MsgBox(" Insuffiecient balance")

Else
total = num1 - num2

Receipt.Show()

Receipt.lblbal.Text = balance
Receipt.Label4.Hide()
Receipt.lbldep.Hide()
Receipt.lblwith.Text = num2
Receipt.lblnewbal.Text = total

Receipt.Label5.Show()
Receipt.Label6.Show()

Receipt.lblbal.Show()
Receipt.Label4.Hide()
Receipt.lbldep.Hide()
Receipt.lblwith.Show()
Receipt.lblnewbal.Show()
'MsgBox("success")
Receipt.lblname.Text = Mainmenu.lblname.Text
Me.Hide()

End If
Else
End If
Catch ex As Exception
MsgBox(" Pls. Enter Ammount!")
'MsgBox(ex.Message)
End Try
txtamount.Text = ""
End Sub
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
Mainmenu.Show()
Me.Hide()
End Sub
End Class
CHAPTER 6 : SYSTEM IMPLIMENTATION

6.1 Login Form


6.2 Registration Form : Empty

6.3 Registration Form: Filled


6.4 ADMIN FORM:
6.4 Main Menu
6.5 Deposit: Empty

6.6 Deposit: Filled


6.7 Receipt

6.8 Balance Enquiry Receipt


6.9 Withdrawal

6.10 Withdrawal Receipt


TESTING:

Description:

Software testing is a critical element of software quality assurance and represents the ultimate
review of specification, design and code generation. The increasing visibility of software as a
system element and the attendant “cost” associated with a software failure are motivating force
for well planned, through testing.

Testing:

1. Testing is the one of step in the software process that could be viewed as
destructive rather than constructive.

2. Software is tested from different perspectives :

3. White box test.

4. Black box test

Whitebox Test:

White box tests focus on the program control structure, internal program logic is exercised using
this techniques.

Blackbox Test:

Black box testing is software requirements are exercised and derive sets of inputs conditions
that will fully exercise all functional requirements for a program this testing is also called
“behavioral testing”.
Level Of Testing:

The details of software functionality & test conditions are satisfied fully on behavioral based so
that choose for black box testing.

Blackbox Testing:

1.by incorrect or missing function

2. interface errors

3. errors in external database access behavior (or) performance error

4. initialization and termination error its mainly used for uncover errors in software functions

Behavioral testing:

It is possible to simulate the behavior of a real time system and consequence of external
events. In this test, we check in client side if the client enter incorrect pin number for more than
“three” times the applications will be closed.

System Testing:

Software and hardware are integrated and full range of system test is conducted so that we check
for interrupt priority and the performance of each interrupt handling procedures. In this test
check on each options of banking process.

USER MANUAL:

The client can only login if the Server is at run.

The client can give their PIN to login. If their login is correct the client main menu is displayed.

The client can view the account, and they can withdrawal the required amount, view the
transaction details.

These operations can also do if they enter the pin number correctly. if they enter the pin number
incorrectly the application will be closed.

The client has right to deposit the money.


FUTURE SCOPE

 Finger-pin
 Improved Feature Extraction and Machine Algorithms.
 Securing fingerprint based biometric system.
 Performance can be improved in terms of speed and memory
 A speaking voice alarm can be used to indicate unauthorized person accessing the ATM.

You might also like