Bank Management System
Bank Management System
ProjectReport On
Submitted By
.....................................
Class: XII (Science)
Date: Date:
Principal’s Signature:
Acknowledgement
I would like to express my sincere gratitude to my Computer
Science teacherfor her vital support, guidance and
encouragement – without which this project would not have
come forth.
2. Characteristics of DBMS 2
The program also helps us to know all the details of customers of the bank. It
includes various function programs to do the above-mentioned tasks. Data file
handling has been effectively used in the program.
DBMS
The software required for management of data is called DBMS. It has three
models
Characteristics of DBMS
The banks in India have also emerged as effective catalytic agent of socio-
economic change. This massive expansion and diversification of the
banking system also brought its attendant strains. Housekeeping and
control functions got neglected owing to exponential increase in business.
The customer service tended to deteriorate and attracted criticism.
Then, this industry entered into a phase with assent on consolidation and
qualitative improvement on its operations by using suitable contemporary
technological tools.
Page-4 of 15
Software Specification: -
Operating system : Windows 10/8/7
Database : MySQL
Languages : Python
Hardware specification: -
Processor : Dual core or above
Ram : 1024 MB
Page-5 of 15
Advantages of Project
import os
import platform
import mysql.connector
import pandas as pd
mydb = mysql.connector.connect(host="localhost",
user="root",
password="admin123",
database="Bank")
mycursor = mydb.cursor()
def AccInsert():
L = []
Accno = int(input("Enter the Account number : "))
L.append(Accno)
name = input("Enter the Customer Name: ")
L.append(name)
age = int(input("Enter Age of Customer : "))
L.append(age)
occup = input("Enter the Customer Occupation : ")
L.append(occup)
Address = input("Enter the Address of the Customer : ")
L.append(Address)
Mob = int(input("Enter the Mobile number : "))
L.append(Mob)
Aadharno = int(input("Enter the Aadhar number : "))
L.append(Aadharno)
Amt = float(input("Enter the Money Deposited : "))
L.append(Amt)
AccType = input("Enter the Account Type
(Saving/RD/PPF/Current) : ")
L.append(AccType)
sql = 'Insert into ACCOUNT(Accno
,Name,Age,occup,Address,Mob,Aadharno,amt,AccType) ' \
'values(%s,%s,%s,%s,%s,%s, %s,%s,%s)'
mycursor.execute(sql, L)
sql = f"Insert into AMT(Accno) values({L[0]})"
mycursor.execute(sql)
mydb.commit()
def AccView():
print("Select the search criteria : ")
Page-8 of 15
def AccDeposit():
L = []
Accno = int(input("Enter the Account number : "))
L.append(Accno)
Amtdeposit = eval(input("Enter the Amount to be deposited :
"))
L.append(Amtdeposit)
month = input("Enter month of Salary : ")
L.append(month)
sql = f"Select amt from bank.account where accno={L[0]}"
mycursor.execute(sql)
res = mycursor.fetchall()[0][0]
res += L[1]
Page-9 of 15
def accView():
print("Please enter the details to view the Money details :")
Accno = int(input("Enter the Account number of the Customer
whose amount is to be viewed : "))
sql = 'Select Account.Accno, Account.Name,
Account.Age,Account.occup,Account.Address,Account.Mob,' \
'Account.Aadharno,Account.Amt,Account.AccType,
sum(amt.Amtdeposit), amt.month from Account INNER JOIN amt ' \
'ON Account.Accno=amt.Accno and amt.Accno = %s '
rl = (Accno,)
mycursor.execute(sql, rl)
res = mycursor.fetchall()[0]
print(res)
def closeAcc():
Accno = int(input("Enter the Account number of the Customer to
be closed : "))
rl = (Accno,)
sql = "Delete from amt where Accno=%s"
mycursor.execute(sql, rl)
sql = "Delete from Account where Accno=%s"
mycursor.execute(sql, rl)
mydb.commit()
def MenuSet():
print("Enter 1 : To Add Customer")
print("Enter 2 : To View Customer ")
print("Enter 3 : To Deposit Money ")
print("Enter 4 : To Close Account")
print("Enter 5 : To View All Customer Details")
try:
userInput = int(input("Please Select An Above Option: "))
except ValueError:
exit("\nThat's Not A Number")
else:
print("\n")
if userInput == 1:
AccInsert()
elifuserInput == 2:
Page-10 of 15
AccView()
elifuserInput == 3:
AccDeposit()
elifuserInput == 4:
closeAcc()
elifuserInput == 5:
accView()
else:
print("Enter correct choice. . . ")
def runAgain():
runAgn = input("\nwant To Run Again Y/n: ")
while runAgn.lower() == 'y':
if platform.system() == "Windows":
print(os.system('cls'))
else:
print(os.system('clear'))
MenuSet()
MenuSet()
runAgain()
Page-11 of 15
Output Screen
Page-14 of 15
Page-15 of 15