Bank Management
Bank Management
The bank management system project is a program that is built to facilitate the
essential functions that a bank performs. It is designed to simplify the day to day
chores of a banking system. This program puts emphasis on resolving customer's
financial applications in a banking environment to meet the needs of a bank user.
Python programming and MySQL database have been used to make this system.
It allows the creation of a new account, depositing and withdrawing of money and
viewing account details by the customers at their home. As it is customer oriented,
it doesn't contain admin functions. This project has been developed to carry out the
processes easily and quickly, which is not possible with the manuals systems. This
limitation is not present in this system as all the transactions are automated. By
automating the transactions one can view the transaction and account details as and
when required in no time. This creates a faster and efficient system.
1
Functions And Modules
1. MySql connectionCheck():
2. MySql connection():
Modules:
1. Import mysql.connector:
2
Flow of project
This project is based on Bank Management system. A user can perform the
following four operations in this project:
1. Creating a bank account:
A user can open a new bank account by selecting option I and entering a unique
account number, name, city they live in and their contact number i.e phone number.
2. Depositing money:
A user can deposit money in the bank management system by selecting option 2
and entering their account number, the amount they want to deposit and date of the
transaction.
3. Withdrawing money:
The user can also withdraw their money from the bank management system by
selecting option 3 and entering their account number, the amount they want to
withdraw and the date of the transaction.
3
My Sql
Originally conceived by the Swedish company MySQL AB, MySQL was acquired
by Sun Microsystems in 2008 and then by Oracle when it bought Sun in 2010.
Developers can use MySQL under the GNU General Public License (GPL), but
enterprises must obtain a commercial license from Oracle.
Today, MySQL is the RDBMS behind many of the top websites in the world and
countless corporate and consumer- facing web-
4
Some basic information about MySQL is as follows:
Website-https://www.mysql.com/
Open-source repository-https://github.com/mysql/mysql-server
5
Python
Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc. It
has a simple syntax similar to the English language. Python has syntax that allows
developers to write programs with fewer lines than some other programming
languages which runs on an interpreter system, meaning that code can be executed
as soon as it is written. This means that prototyping can be very quick. Python can
be treated in a procedural way, an object-oriented way or a functional way.
6
Windows terminal
The terminal is a multi-tabbed terminal emulator that Microsoft has developed for
Windows 10 and later as a replacement for Windows Console. Until February 2022
it was called Windows Terminal. It can run any command-line app, including all
Windows terminal emulators, in a separate tab. It is preconfigured to run
Command Prompt, PowerShell, WSL, SSH, and Azure Cloud Shell Connector.
Windows Terminal comes with its own rendering back- end; starting with version
1.11 on Windows 11, command-line apps can run using this newer back-end
instead of the old Windows Console.
7
Hardware and Software requirenment
System:
Language: English
8
Source Code
print("**Bank Transaction**")
import mysql.connector
con = mysql.connector.connect(host="localhost", user="root", password="1234")
mycursor = con.cursor()
mycursor.execute("""
CREATE TABLE IF NOT EXISTS bank_trans (
Acno VARCHAR(50) NOT NULL,
Amount CHAR(1),
9
dot VARCHAR(25) NOT NULL,
total_balance VARCHAR(25)
)
""")
con.commit()
while True:
print("1.=Create Account")
print("2.=Deposit Money")
print("1.=Withdraw Money")
print("1.=Display Account")
if ch==1:
print("All information prompted are mandatory to be filled")
balance-0
elif(ch-2):
ttype="d"
mydb.commit()
11
print("money has been deposited successully!!!")
elif(ch-3):
ttype="w"
mydb.commit()
12
elif(ch==4):
for i in mycursor:
print(i)
else:
break
13
Output
Tables created:
14
Python Output:
15
16
Future enhancement
This project has a lot scope for future developments as bank management systems
are widely used everywhere. This program is also quite flexible in terms of
expansion and modification. Since this project is customer oriented, an admin
oriented module can be added.
Also, a loan function can be added which automatically mentions the total
repayable amount including interest and the date of repayment. One major
limitation of this project is that the account number of the customers have to be
filled in by themselves, this limitation can be overcome by using an auto
generation function for account numbers.
17
Bibliography
www.tutorialspoint.com
www.w3schools.com
www.geeksforgeeks.org
18