A PROJECT REPORT ON
BANK MANAGEMENT
SUBMITTED BY
S.Dinesh Kumar
XII–A
UNDER THE GUIDANCE OF
Mr M.SENTHILKUMAR, M.Sc., M.Ed.,
DEPARTMENT OF COMPUTER SCIENCE
KSHATRIYA VIDHYA SALA ENGLISH MEDIUM SCHOOL
VIRUDHUNAGAR – 626 002
ACKNOWLEDGEMENT
“Thankful to God who gives us the triumph”
First I would like to thank the LORD ALMIGHTY for all the blessings he has
endowed upon me. With profound sense of indebtedness, I thank my parents for their
immense love and support to do this project.
I express my grateful thanks to KSHATRIYA VIDHYA SALA ENGLISH
MEDIUM SCHOOL for giving me the wonderful opportunity of doing this project.
I extend my deep sense of gratitude and heartful thanks to our senior principal
Mr P.Rajasekaran, M.sc., B.Ed., M.Phil., for his inspiring guidance and valuable
suggestions which not only put me on the correct track but enabled me to analyse
the problems from different angles and to complete the project within the stipulated
time.
I take this opportunity to express my profound gratitude and sincere thanks to
Mr M.SENTHILKUMAR, M.Sc., M.Ed., , PGT (Computer Science) for his moral
support and valuable advice.
At last but not the least I express my heartfelt thanks to my family members and
all my friends who had helped me in each and every step I took to complete my
project successfully.
S.Dinesh Kumar
CONTENTS
S. No. Description Page No.
1 Coding 7
2 Output 11
3 Bibliography 14
KSHATRIYA VIDHYA SALA ENGLISH MEDIUM SCHOOL
VIRUDHUNAGAR – 626 002
This is to certify that S.Dinesh Kumar of Class XII – A has prepared his
report on the project entitled “BANK MANAGEMENT”. This report is the result of
his efforts and endeavours. The report is found worthy of acceptance as Final project
for the subject Computer Science of Class XII – A. He had prepared his report under
my guidance.
(Mr M.Senthilkumar, M.Sc., M.Ed., )
PGT (Computer Science)
KSHATRIYA VIDHYA SALA
ENGLISH MEDIUM SCHOOL
VIRUDHUNAGAR
KSHATRIYA VIDHYA SALA ENGLISH MEDIUM SCHOOL
VIRUDHUNAGAR – 626 002
CERTIFICATE
This is to certify that the project entitled “BANK MANAGEMENT”
submitted to Mr M.SenthilKumar, M.sc.,M.Ed., PGT (Computer Science), is a
record of original project work done by S.Dinesh Kumar, XII-A, KSHATRIYA
VIDHYA SALA ENGLISH MEDIUM SCHOOL, VIRUDHUNAGAR, during the
academic year of 2024—2025.
Signature of the External Examiner Signature of the Project Guide
Signature of the Principal
DECLARATION
I hereby declare that the project entitled “BANK MANAGEMENT”
is a record of original project work done by me during the year of 2024-2025 under
the supervision and the guidance of Mr M.SENTHILKUMAR, M.sc.,M.Ed., PGT
(Computer Science), KSHATRIYA VIDHYA SALA ENGLISH MEDIUM
SCHOOL,VIRUDHUNAGAR.
Signature of the candidate
(S.Dinesh Kumar)
TABLE STRUCTURE:
PYTHON CODE:
import mysql.connector as sqltor
mydb=sqltor.connect(host='localhost',user='root',passwd='admin',database='bank_
management')
def OpenAcc():
n=input("Enter the name: ")
ac=input("Enter the Account Number: ")
db=input("Enter Date of Birth: ")
add=input("Enter Address: ")
cn=input("Enter Contact Number: ")
ob=int(input("Enter The Opening Balance: "))
data1=(n,ac,db,add,cn,ob)
data2=(n,ac,ob)
sql1=('Insert into account values (%s,%s,%s,%s,%s,%s)')
sql2=('Insert into amount values(%s,%s,%s)')
x=mydb.cursor()
x.execute(sql1,data1)
x.execute(sql2,data2)
mydb.commit()
print("Data entered successfully")
main()
def DepoAmo():
amount=int(input("Enter amount to be deposited : "))
ac=input("Enter account no: ")
a='select balance from amount where AccNo=%s'
data=(ac,)
x=mydb.cursor()
x.execute(a,data)
result=x.fetchone()
t=result[0]+amount
sql=('update amount set balance=%s where AccNo=%s')
d=(t,ac)
x.execute(sql,d)
mydb.commit()
main()
def withdrawAmount():
amount=int(input("Enter amount to withdraw : "))
ac=input("Enter Account No:")
a='select balance from amount where Accno=%s'
data=(ac,)
x=mydb.cursor()
x.execute(a,data)
result=x.fetchone()
t=result[0]-amount
sql=('update amount set balance=%s where AccNo=%s')
d=(t,ac)
x.execute(sql,d)
mydb.commit()
main()
def BalEnq():
ac=input("Enter account no:")
a='select * from amount where AccNo = %s'
data=(ac,)
x=mydb.cursor()
x.execute(a,data)
result=x.fetchone()
print("Balance for account:",ac,"is",result[-1])
main()
def Disdetails():
ac=input("Enter the account no:")
a='select * from account where AccNo=%s'
data=(ac,)
x=mydb.cursor()
x.execute(a,data)
result=x.fetchall()
for i in result:
print(i)
main()
def CloseAcc():
ac=input("Enter account number:")
sql1='delete from account where AccNo=%s'
sql2='delete from amount where AccNo=%s'
data=(ac,)
x=mydb.cursor()
x.execute(sql1,data)
x.execute(sql2,data)
mydb.commit()
main()
def main():
print('''
1.OPEN NEW ACCOUNT
2.DEPOSIT AMOUNT
3.WITHDRAW AMOUNT
4.BALANCE ENQUIRY
5.DISPLAY CUSTOMER DETAILS
6.CLOSE AN ACCOUNT''')
choice=input("Enter the task you want to perform:")
if (choice == '1'):
OpenAcc()
elif (choice == '2'):
DepoAmo()
elif (choice == '3'):
withdrawAmount()
elif (choice == '4'):
BalEnq()
elif (choice == '5'):
Disdetails()
elif (choice == '6'):
CloseAcc()
else:
print("Invalid Choice")
main()
OUTPUT:
1.OPEN NEW ACCOUNT
2.DEPOSIT AMOUNT
3.WITHDRAW AMOUNT
4.BALANCE ENQUIRY
5.DISPLAY CUSTOMER DETAILS
6.CLOSE AN ACCOUNT
Enter the task you want to perform:1
Enter the name: Mukesh Khanna M
Enter the Account Number: 2007
Enter Date of Birth: 20-06-2007
Enter Address: APK
Enter Contact Number: 90802
Enter The Opening Balance: 2500
Data entered successfully
1.OPEN NEW ACCOUNT
2.DEPOSIT AMOUNT
3.WITHDRAW AMOUNT
4.BALANCE ENQUIRY
5.DISPLAY CUSTOMER DETAILS
6.CLOSE AN ACCOUNT
Enter the task you want to perform:2
Enter amount to be deposited : 10000
Enter account no: 2007
1.OPEN NEW ACCOUNT
2.DEPOSIT AMOUNT
3.WITHDRAW AMOUNT
4.BALANCE ENQUIRY
5.DISPLAY CUSTOMER DETAILS
6.CLOSE AN ACCOUNT
Enter the task you want to perform:3
Enter amount to withdraw : 2000
Enter Account No:2007
1.OPEN NEW ACCOUNT
2.DEPOSIT AMOUNT
3.WITHDRAW AMOUNT
4.BALANCE ENQUIRY
5.DISPLAY CUSTOMER DETAILS
6.CLOSE AN ACCOUNT
Enter the task you want to perform:4
Enter account no:2007
Balance for account: 2007 is 10500
1.OPEN NEW ACCOUNT
2.DEPOSIT AMOUNT
3.WITHDRAW AMOUNT
4.BALANCE ENQUIRY
5.DISPLAY CUSTOMER DETAILS
6.CLOSE AN ACCOUNT
Enter the task you want to perform:5
Enter the account no:2007
('Mukesh Khanna M', '2007', '20-06-2007', 'APK', 90802, 2500)
1.OPEN NEW ACCOUNT
2.DEPOSIT AMOUNT
3.WITHDRAW AMOUNT
4.BALANCE ENQUIRY
5.DISPLAY CUSTOMER DETAILS
6.CLOSE AN ACCOUNT
Enter the task you want to perform:8
Invalid Choice
SQL TABLE:
BIBILIOGRAPHY
Class 12th NCERT computer science textbook
Geeks for geeks
Class 12th Sumita Arora computer science textbook