You are on page 1of 24

BANKING

AUTOMATION
POOJA SRI.S
NIVASHINI.R
HARSHINI.S.A
INDEX:
S.NO. CONTENTS
1. INTRODUCTON
2. OBJECTIVES OF THE OBJECT
3. SYSTEM REQUIREMENTS
4. SOFTWARE REQUIREMENTS
5. INSTALLATION PROCEDURE
6. PYTHON
7. SQL AND MYSQL
8. SOME SQL OPERATORS
9. SOURCE CODE
10. OUTPUT
INTRODUCTION:
“BANKING AUTOMATION” This project is useful
for
the bank employees as well as customers to keep a track of
account details. The emerging of digital system made information
available on finger tips. By automating the transactions one can
view the details as and when required in no time. This project
emphases on creation of new customer accounts, managing the
existing account holders in the bank, by making digital system
one can generate daily reports, monthly reports and annual
reports which can enhance the system.
OBJECTIVES OF THE PROJECT
The objective of the project is to let the students apply thee
programming knowledge into a real-world situation/problem and
exposed the students how programming skills helps in developing
a good software.
1. Write programs utilizing modern software tools.
2. Apply object-oriented programming principles effectively
when developing small to medium sized projects.
3. Write effective procedural code to solve small to medium
sized problems.
4. Students will demonstrate a breadth of knowledge in
computer science, as exemplified in the areas of systems,
theory and software development.
5. Students will demonstrate ability to conduct a research or
applied Computer Science project, requiring writing and
presentation skills which exemplify scholarly style in
computer science.
SYSTEM REQUIREMENTS
I. OPERATING SYSTEM : WINDOWS 7 AND ABOVE
II. PROCESSOR : PENTIUM(ANY) OR AMD
ATHALON(3800+-4200+DUALCORE)
III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM OR MSI
K8MM-V VIAK8M800+8237R PLUS CHIPSET
FOR AMD ATHALON
IV. RAM : 512MB+
V. Hard disk : SATA 40 GB OR ABOVE
VI. MONITOR 14.1 or 15-17 inch
VII. Key board and mouse
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
III. MySql
INSTALLATION PROCEDURE
• Install python and MYSQL from the web.
• Open MYSQL and create the database bank.
• Then run the table.pyfile.
• Next run the user table.py file.
• Then the transactions table.py file.
• Open the main bank file.
• Then register your account.
PYTHON
Python is a high-level, general-purpose and a very popular
programming language. Python programming language (latest
Python 3) is being used in web development, Machine Learning
applications, along with all cutting-edge technology in Software
Industry. Python Programming Language is very well suited for
Beginners, also for experienced programmers with other
programming languages.
This specially designed Python tutorial will help you learn Python
Programming Language in most efficient way, with the topics from
basics to advanced (like Web- scraping, Django, Deep-Learning,
etc.)
with examples. Below are some facts about Python Programming
Language: Python is currently the most widely used multi- purpose,
high-level programming language. Python allows programming in
Object- Oriented and Procedural paradigms. Python programs
generally are smaller than other programming languages like Java.
Programmers have to type relatively less and indentation
requirement
of the language, makes them readable all the time. Python language
is being used by almost all tech-giant companies like Google,
Amazon, Facebook, Instagram, Dropbox, Uber... etc. The biggest
strength of Python is huge collection of standard libraries which
can
be used for the following:
1. Machine Learning GUI Applications (like Kivy, Tkinter, PyQt
etc.)
2. Web frameworks like Django (used by YouTube, Instagram,
Dropbox)
3. processing (like OpenCV, Pillow)
4. Web scraping (like Scrappy, Beautiful Soup, Selenium)
5. Test frameworks Multimedia Scientific computing
6. Text processing and many more.
Python is not like Java. You don't need to declare data type while
defining a variable. The interpreter determines this at runtime
based
on the types of the parts of the expression. This is easy for
programmers but can create runtime errors.
Python follows duck-typing. It means, "If it looks like a duck,
swims like a duck and quacks like a duck, it must be a duck".
Python is object-oriented but supports both functional and object-
oriented programming. Everything in Python is an object.
It has the OOP (Object-oriented programming) concepts like
inheritance and polymorphism.
Python is open-source and the community is always contributing
to it to improve it. It is free and its source code is freely
available
to the public. You can download Python from the official Python
Website.
The standard library is large and has many packages and
modules with common and important functionality. If you need
something that is available in this standard library, you don't
need
to write it from scratch. Because of this, you can focus on more
important things. You can also install packages from the PyPI
(Python Package Index) if you want even more functionality.
Python is platform-independent. If you write a program, it will
run
on different platforms like Windows, Mac and Linux. You don't
need to write them separately for each platform.
Python is extensible. You can use code from other languages like
C++ in your Python code.
It is also embeddable. You can embed your Python code in other
languages like C++.
You can use Python to create GUI (Graphical User
Interfaces).You can use Tkinter, PyQt, python or Pyside for this.
Python features a huge number of GUI frameworks available for it
to variety of other cross-platform solutions. It binds to
platform-
specific technologies.
Python is a high-level language and C++ is mid-level. It is easy
to
understand and closer to the user. You don't need to remember
system
architecture or manage the memory.
So now we know that Python is an interpreted, high-level and
general-
purpose programing language. It's design philosophy emphasizes
code
readability with its notable use of serious whitespace. It is also
scalable.
These were some important features of Python.
1) if statements
Python if statement is one of the most commonly used conditional
statements in programming languages. It decides whether certain
statements need to be executed or not. It checks for a given
condition, if
the condition is true, then the set of code present inside the" if
block will be
executed otherwise not.
The if condition evaluates a Boolean expression and executes the
block of
code only when the Boolean expression becomes TRUE.
2) if-else statements
The statement itself says if a given condition is true then
execute the
statements present inside the "if block" and if the condition is
false then
execute the "else" block.
The "else" block will execute only when the condition becomes
false. It is
the block where you will perform some actions when the condition
is not
true.
if-else statement evaluates the Boolean expression. If the
condition is
TRUE then, the code present in the "if" block will be executed
otherwise the
code of the "else" block will be executed.
3) elif statements
In Python, we have one more conditional statement called "elif"
statements.
"elif" statement is used to check multiple conditions only if the
given
condition is false. It's similar to an "if-else" statement and the
only
difference is that in "else" we will not check the condition but
in "elif" we will
check the condition.
"elif" statements are similar to "if-else" statements but "elif"
statements
evaluate multiple conditions.
4) Nested if-else statements
Nested "if-else" statements mean that an "if" statement or "If-
else
statement is present inside another if or if-else block. Python
provides this
feature as well, this in turn will help us to check multiple
conditions in a
given program.
An "if" statement is present inside another "if" statement which
is present
inside another "if" statements and so on.
5) elif Ladder
We have seen about the "elif" statements but what is this elif
ladder? As
the name itself suggests a program that contains a ladder of
"elif"
statements or "elif" statements are structured in the form of a
ladder.
This statement is used to test multiple expressions.
SQL AND MYSQL
SQL stands for Structured Query Language and is pronounced
"S.Q.L." or
"Sequel". It is a special kind of programming language that is
used for
communicating with a database.
If you want to add, retrieve, or update data in a database you can
use SQL
to do that.
This is important because most companies store their data in
databases.
There are many types of databases and most of them speak SQL. We
will
discuss two of these in this article (MySQL and SQL Server), but
there are
many others such as PostgreSQL, IBM D62, and Amazon Aurora, just
to
name a few.
Learning the basics of SQL will likely serve you well with which
ever
database you or your company uses.
MySQL is an open source Relational Database Management System
(RDBMS) owned by Oracle.
It is an extremely popular tool for several reasons. Firstly, its
open source
status means it is completely free to use. Experienced developers
can even
dive right in and change its source code to suit their needs, if
they wish.
Even though MySQL is free to use, Oracle does offer premier
support
services which you can buy through a commercial license.
MySQL is also heavily supported and users can run the software on
a
variety of platforms and operating systems including Windows,
Linux, UNIX
and more.
MySQL provides various storage engines for its tables: MyISAM,
InnoDB,
Merge, MEMORY (HEAP), ARCHIVE, CSV and FEDERATED.
For example, the CSV engine will store the data in a CSV file
format. This
could be used to migrate data into alternative, non-SQL
applications such
as spreadsheet software.
Each of these storage engines has its own advantages and
disadvantages.
Prior to creating your database, it is important to understand
each and
choose the most appropriate one for your tables to maximize the
performance of the database.
We've barely scratched the surface of what MySQL can offer.
However, it
should be enough to understand the differences between SQL and
MySQL.
In a nutshell, SQL is a language for querying databases and MySQL
is an
open source database product.
SQL is used for accessing, updating and maintaining data in a
database
and MySQL is an RDBMS that allows users to keep the data that
exists in a
database organized. SQL does not change (much), as it is a
language.
MySQL updates frequently as it is a piece of software.
In layman's terms, SQL could be seen as a bank teller and MySQL
could
be seen as the bank. You need the bank teller (SQL) to communicate
with
the bank (MySQL) and you need the bank to manage the money (the
data).
They work in tandem but they are completely different.
Like MySQL, SQL Server is a relational database management system.
However, unlike MySQL, SQL Server is not open source. It is owned
by
Microsoft and there are several editions available, depending on
the users'
needs and budget.
One of these editions is called SQL Server Express and is free to
download
and distribute. It comprises of a database specifically targeted
for
embedded and smaller-scale applications
A common question for those new to the field is "are SQL and SQL
Server
the same thing?". In a word: no. The difference between the two is
similar
to the difference we laid out between SQL and MySQL, SQL is a
language
for querying databases and SQL Server is a system for managing
relational
databases.
In terms of MySQL vs SQL Server, there's no right answer for every
organization.
If you're a startup company strapped for cash, you're likely to
opt for
MySQL.
If you're a large company looking to run high volumes of activity
on a
database, then you might lean towards SQL Server.
When it comes down to it each of the systems has their own
advantages
and disadvantages.
S.NO. Parameter MySQL SQL
1. Definition MySQL is the popular
SQL(Structured
open-source database Query
Language)
available in the market, is a
programming
which is developed by
language that is
the Swedish company
useful for
MySQL AB.
managing our

relational

databases.
2. Purpose MySQL used for data It is
used to
handling, storing, query
and
deleting, and updating
operate the
data in tabular form.
database.
3. Updates MySQL is software, so it SQL is a
gets SQL frequent programming
updation. The current language; that’s
language; that's why it why it does not get
does stable version is any updates. Its
v8.0.20, which commands commands or
provides two times faster statements always
previous versions. fixed and remain
the same.
4. Type It is database software that It is a query
uses SQL language to language for
conduct with the database. managing
databases.
5. Complexity It is easily used through It requires
learning
simple downloading and the language to
installation. use it effectively.
6. Usage MySQL is used as SQL commands r
RDBMS for managing statements are
relational databases. used in various
DBMS and
RDBMS. MySQL
itself uses SQL
commands.
7. Support for connectors It provides the MySQL No
connectors are
workbench tool to design available
in SQL.
and develop databases.
8. Multilingual It is available only in the It is
available in
English language. many
different

languages.
9. Flexibility It does not provide It
includes support
support for XMAL and for
XMAL and
user-defined functions. user-
defined

functions.
10. Community support MySQL is free to use so It
does not have
that it has very rich
excellent
community support.
community

support. If we find
any
problem, we
need
to go to

Microsoft SQL

Server support.
11. Advantage Open-Source. No need
for
Data security. coding.
High performance. High
speed.
Data security.
Portability.
Complete workflow Multiple
views of
controls. data.

Interactive
language.
Some SQL Operators:
1. ALL
The ALL operator is used to compare a value to all values in
another
value set.
2. AND
The AND operator allows the existence of multiple conditions
in an
SQL statement's WHERE clause.
3. ANY
The ANY operator is used to compare a value to any
applicable value
in the list as per the condition.
4. BETWEEN
The BETWEEN operator is used to search for values that are
within
a set of values, given the minimum value and the maximum
value.
5. EXISTS
The EXISTS operator is used to search for the presence of a
row in a
specified table that meets a certain criterion.
6. IN
The IN operator is used to compare a value to a list of
literal values
that have been specified.
7. LIKE
The LIKE operator is used to compare a value to similar
values using
wildcard operators.
8. NOT
The NOT operator reverses the meaning of the logical
operator with
which it is used. Eg: NOT EXISTS, NOT BETWEEN, NOT IN, etc.
This
is a negate operator.
9. OR
The OR operator is used to combine multiple conditions in an
SQL
statement's WHERE clause.
10. IS NULL
The NULL operator is used to compare a value with a NULL
value.
11. UNIQUE
The UNIQUE operator searches every row of a specified table
for
uniqueness (no duplicates).
SOURCE CODE
Table.py
import mysql.connector as sql
conn-sql.connect (host=’localhost',user='root',password='manager'
database='bank')
if conn.is_connected():
print('connected succesfully')
cur=conn.cursor()
cur.execute('create table customer_details (acct_noint primary
key,
acct_namevarchar (25), phone_nobigint (25) ,check
(phone_no>11), address varchar (25), cr_amt float)')
MENU.PY
import mysql.connector as sql
conn=sql.connect (host='localhost', user='root', passwd='m
anager', database='bank')
cur = conn. cursor ()
conn.autocommit = True
print('1. CREATE BANK ACCOUNT')
print('2. TRANSACTION')
print('3.CUSTOMER DETAILS')
print (4. TRANSACTION DETAILS')
print('5.DELETE DETAILS')
print('6.QUIT')
n=int(input('Enter your CHOICE='))
if n = 1:
acc_no=int(input('Enter your ACCOUNT NUMBER='))
acc_name=input ('Enter your ACCOUNT NAME=')
ph_no=int(input('Enter your PHONE NUMBER='))
add =(input('Enter your place='))
cr_amt=int (input('Enter your credit amount='))
V_SQLInsert="INSERT INTO customer_details values (" + str
(acc_no) + "," + acc_name+","+str (ph_no) + ","+add + "," + str
(cr_amt) + ")"
cur.execute (V_SQLInsert)
print('Account Created Succesfully!!!!!!’)
conn.commit()
if n == 2:
acct_no=int(input('Enter Your Account Number='))
cur.execute('select * from customer_details where acct_no='+str
(acct_no) )
data=cur.fetchall()
count=cur.rowcount conn.commit()
if count == 0:
print('Account Number Invalid Sorry Try Again Later')
else:
print('1.WITHDRAW AMOUNT')
print ('2.ADD AMOUNT')
x=int (input('Enter your CHOICE='))
if x == 1:
amt=int (input('Enter withdrawl amount='))
cur.execute('update customer_details set cr_amt-cr_amt-'+str (amt)
+ where acct_no=' +str(acct_no) )
conn.commit()
print('Account Updated Succesfully!!!!!!)
if x 2:
amt-int (input('Enter amount to be added='))
cur.execute('update customer_details set
cr_amt-cr_amt+' + str(amt)
+’where acct_mo=’+str (acct_no) )
conn.commit()
print('Account Updated Succesfully!!!!!!)
if n == 3:
acct_no=int (input('Enter your account number=')
cur.execute('select * from customer_details where acct_no='+str
(acct_no))
if cur.fetchone () is None:
print('Invalid Account number')
else:
cur.execute('select * from customer_details where
acct_no='+str(acct_no) )
data=cur.fetchall()
for row in data:
print('ACCOUNT NO=', acct_no)
print('ACCOUNT NAME=', row[1])
print(' PHONE NUMBER=', row[2])
print('ADDRESS=', row[3])
print('cr_amt=', row[4])
if n==4:
acct_no-int (input('Enter your account number='))
print()
cur. execute('select * from customer_details where
acct_no='+str (acct_no))
if cur.fetchone() is None:
print ()
print('Invalid Account number')
else:
cur.execute('select * from transactions where acct_no='+str
(acct_no)) data=cur.fetchall()
for row in data:
print('ACCOUNT NO, acct_no)
print()
print('DATE=', row[1])
print()
print(' WITHDRAWAL AMOUNT=', row[2])
print()
print('AMOUNT ADDED=', row[3])
print()
if n == 5:
print('DELETE YOUR ACCOUNT')
acct_no=int(input('Enter your account number='))
cur.execute('delete from customer_details where
acct_no='+str (acct_no) )
print('ACCOUNT DELETED SUCCESFULLY')
if n == 6:
quit()
MAIN.PY
import mysql.connector as sql
conn-sql.connect (host='localhost',user='root',password='manager'
database='bank')
cur = conn.cursor()
cur.execute('create table user_table (username varchar (25)
primarykey,passwrdvarchar (25) not null )')
print('1.REGISTER')
print('2.LOGIN')
n=int (input('enter your choice='))
if n== 1:
name=input('Enter a Username=')
password=int(input('Enter a 4 DIGIT Password='))
V_SQLInsert="INSERT INTO user_table (passwrd, username)
values(" + str (passwd) + "," "+name+" ")"
cur.execute (V_SQLInsert)
conn.commit()
print('USER created succesfully')
if n==2:
name=input('Enter your Username=')
password=int(input('Enter your 4 DIGIT Password='))
V_Sql_Sel="select * from user_table where password=' "+str
(passwd)+" and username=’ "+name+”
cur.execute(V_Sql_Sel)
if cur.fetchone () is None:
print('Invalid username or password')
else:
import main
OUTPUT
MAIN PAGE
BIBLIOGRAPHY
1. Computer science with python-Class XII
By : SumitaArora
2. A Project Report On Blood Bank Management
System(BBMS) By : Praveen M Jigajinni
3. Website : https://www.w3resource.com
4. https://en.wikipedia.org/wiki/E_(mathematical_constant)

You might also like