Professional Documents
Culture Documents
Banking Automation Cs Project Pooja
Banking Automation Cs Project Pooja
AUTOMATION
POOJA SRI.S
NIVASHINI.R
HARSHINI.S.A
INDEX:
S.NO. CONTENTS
1. INTRODUCTON
3. SYSTEM REQUIREMENTS
4. SOFTWARE REQUIREMENTS
5. INSTALLATION PROCEDURE
6. PYTHON
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.
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
III. MySql
INSTALLATION PROCEDURE
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:
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
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.
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.
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
2. AND
3. ANY
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
6. IN
7. LIKE
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
10. IS NULL
11. UNIQUE
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