PROJECT WORK
COMPUTER SCIENCE
CLASS XII
BANK MANAGEMENT SYSTEM
ROLL NO :
NAME : Aryan Joshi
SCHOOL : Delhi Public School
YEAR : 2025-26
CERTIFICATE
This is to certify that Aryan Joshi of class XII Of
Delhi Public School has completed his
project file under my guidance. He has taken proper care
and
Shown atmost sincerity in completing this project.
I certify that this project is up to my expectations as per
CBSE
guidelines.
Mr/Ms
(Signature)
ACKNOWLEDGEMENT
Gathering different information, collecting data and
I am very thankful to everyone who all supported me to complete my
project
work on time.
I am equally grateful to my teacher Seema Aggarawal .She gave me moral
support
and guidance to me in different matters regarding the topic. She has
been very
kind and patient, while suggesting to me the outlines of this project. I
thank for
her overall support.
Last but not the least; I would like to thank my parents who helped me a
lot in
guiding me from time to
Time in completing this project.
Thanking you
Aryan Joshi
S.NO DESCRIPTION PAGE NO
01 INTRODUCTION
02 OBJECTIVES OF THE PROJECT
03 HARDWARE AND SOFTWARE REQUIREMENTS
04 FLOWCHART
05 MODULES
06 SOURCE CODE
07 OUTPUT
08 BIBLIOGRAPHY
CHAPTER-1
INTRODUCTION
• A bank is a financial institution which accepts deposits, pays interest on pre-defined
rates, clears checks, makes loans, and often acts as an intermediary in financial
transactions. It also provides other financial services to its customers
• To manage all of these activities of bank by humans are practically not possible, so
here we need a help from some human technology which is unfortunately a computer
• This project(code) is to manage all of the activities of the bank like: An account is
created for each customer with unique accno.Whenever a customer deposits or
withdraws money All of the details will be stored safely in the system and it can be
accessed only by the particular customer by his accno
CHAPTER 2
OBJECTIVE OF THE PROJECT
• It allows only authorized user to access various functions and processed available in
the system
• Reduces critical works for humans as most of the work is done by the computer
• Provide greater speed and reduces time consumption
• whenever a customer needs to deposit or withdraw money it can be done easily
within a short time period
CHAPTER 3
HARDWARE AND SOFTWARE
REQUIREMENTS
PROCESSOR TYPE Pentium IV or above for optimum performance
SYSTEM RAM 2.00GB and above
INPUT DEVICE Keyboard and mouse
OUTPUT DEVICE Modem with good internet,colour monitor
OPERATING Windows 7 and above
SYSTEM
FRONT END Python(3.6.2)
BACK END SQL server 2008
CHAPTER 4
FLOWCHART
STA
START
CHOICE
1 .CREATE 2. DEPOSITE WITHDRAW
3.DWD 4. DISPLAY 5. EXIT
ACCOUNT MONEY MONEY MONEY
STOP
CHAPTER 5
MODULES
BUILT IN MODULES
MYSQL. CONNECTOR
MySQL Connector/Python enables Python programs to access MySQL
databases, using an API that is compliant with the Python Database API
Specification v2.0 (PEP 249). It also contains an implementation of the
XDevAPI, an Application Programming Interface for working with the MySQL
Document Store. It is used to connect to database and tables created in it and
access them.
CHAPTER 6
SOURCE CODE
print("****BANK TRANSACTION****")
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",password="",database="ban
k")
mycursor=mydb.cursor()
while True:
print("1=Create account")
print("2=Deposit money")
print("3=Withdraw money")
print("4=Display money")
print("5=Exit")
ch=int(input("Enter your choice:"))
if(ch==1):
print("All information prompted are mandatory to be filled")
acno=str(input("Enter account number:"))
name=input("Enter name(limit 35 characters):")
city=str(input("Enter city name:"))
mn=str(input("Enter mobile no.:"))
balance=0
try:
mycursor.execute("insert into bank_master values('{}','{}','{}','{}',
{})".format(acno,name,city,mn,balance))
mydb.commit()
print("Account is successfully created!!!")
except mysql.connector.errors.IntegrityError:
print("**********Account number already exixts**********")
elif(ch==2):
acno=str(input("Enter account number:"))
dp=int(input("Enter amount to be deposited:"))
dot=str(input("Enter date of Transaction (YYYY-MM-DD): "))
ttype="d"
try:
mycursor.execute("insert into banktransaction values('{}',
{},'{}','{}')".format(acno,dp,dot,ttype))
mycursor.execute("update bank_master set balance=balance+{} where
acno={}".format(dp,acno))
mydb.commit()
print("Money has been deposited successully!!!")
except mysql.connector.errors.IntegrityError:
print("**********Account number does not exixts**********")
elif(ch==3):
acno=str(input("Enter account number:"))
wd=int(input("Enter amount to be withdrawn:"))
dot=str(input("enter date of transaction(YYYY-MM-DD): "))
ttype="w"
try:
mycursor.execute("insert into banktransaction values('{}',
{},'{}','{}')".format(acno,wd,dot,ttype))
mycursor.execute("update bank_master set balance=balance-{} where
acno={}".format(wd,acno))
mydb.commit()
print("Money has been withdrawn successully!!!")
except mysql.connector.errors.IntegrityError:
print("**********Account number does not exixts**********")
elif(ch==4):
acno=str(input("Enter account number:"))
mycursor.execute("select * from bank_master where acno={}".format(acno))
x=mycursor.fetchone()
print("Account number:",x[0],"\nName:",x[1],"\nCity:",x[2],"\nMobileNumber:",x[3],"\
nBalance:",x[4])
for i in mycursor:
print(i)
else:
break
CHAPTER 7
OUTPUT
CASE 1:[Creating an account]
CASE 2:[Depositing money]
CASE 3:[Withdraw money]
CASE 4:[Display money]
CASE 5:[Exit]
Bank_master;
Banktransaction;
CHAPTER 8
BIBLIOGRAPHY
➢ project notes.org
➢ http://www.freeprojects.com/
➢ https://www.tutorialspoint.com/python/python_gui_programming.htm