Bank Management System (BMS)
Bank Management System (BMS)
New
(Python)
A PROJECT ON
SENIOR SECONDARY
EXAMINATION
(AISSCE) (2021-
2022)
Submitted By :
Roll No :
CERTIFICAT
E
.
having roll no
___________________
of CLASS XII has completed this project for
partial rollback in fulfillment of the
requirement for the senior secondary
Internal External
Supervisor examination Supervisor
Signa Signa
ture
(AISSCE) ture
2021-22 embodies the bonafide
work done by him/her under my
Na Na
me supervision. me
:Dat Dat
:
e: e:
ACKNOWLEDGEMENT
1. Bonafide
certificate
2. Acknowledgeme
nt
3. Introduction
4. Operation
5. System
Analysis
6. Source Code
8 Conclusi
. on
7.
9.
Output
Cd
Introducti
on
PURPOSE:
The purpose of this project is to ease the
management of a Bank. It uses Python
programming with SQL connectivity
concepts to make the work easier and
support the smooth functioning of a Bank.
Methods Database
(BANK)
Relation
open_acc()
(SBI)
deposit()
withdraw()
enquiry()
view()
list_all()
modify()
close_acc()
BANK MANAGEMENT SYSTEM
(SOURCE CODE)
import os
import mysql.connector as sc
import datetime as dt
#Function to withdraw
money def withdraw():
ch='y'
while ch=='y' or ch=='Y':
try:
con=sc.connect(host='localhost',user='root',password='12345',database='bank')
cur=con.cursor()
os.system('cls')
print('************************************************************')
print('* Bnak Management System *')
print('************************************************************')
accno=int(input(' Enter the Account no. for Withdraw :- '))
accno=int("100220"+str(accno))
while checkacc(accno)==0:
print(" Entered Account no. Not Exits ")
accno=int(input(' Enter correct Account no. for
Withdraw :- ')) accno=int("100220"+str(accno))
amount=float(input(' Enter the Amount :- '))
cur.execute("update sbi set balance=balance-{} where
acc_no={}".format(amount,accno))
con.commit()
print('************************************************************')
print("\t\tAmmount Succesfully withdrawn")
print('************************************************************')
ch=input("\tDo you want to withdraw more amount?(y/n)")
con.close()
except:
print('**
*********
*********
*********
*********
*********
*********
****')
print("\t\tError!!!... during withdraw.")
print('************************************************************')
ch=input("\tDo you want to try with another data?(y/n)")
#Function to view
balance def enquiry():
ch='y'
while ch=='y' or ch=='Y':
try:
cur=con.cursor()
os.system('cls')
print('************************************************************')
print('* Bank Management System *')
print('************************************************************')
accno=int(input('Enter the Account no. for Balance Enquiry :- '))
accno=int("100220"+str(accno))
while checkacc(accno)==0:
print(" Entered Account no. Not Exits ")
accno=int(input(' Enter correct Account no. for Balance Enquiry :-
')) accno=int("100220"+str(accno))
cur.execute("Select name,balance from sbi where acc_no={}".format(accno))
data=cur.fetchone()
os.system('cls')
print('************************************************************')
print('* Balance Enquiry *')
print('************************************************************')
print(' Account No. : ',accno)
Name : ',data[0])
print(' Balance : ',data[1])
print('************************************************************')
print('
ch=input("\tDo you want to View another record?(y/n)")
con.close()
except:
print('***********************************************************
*') print("\t\tError!!!... during enquiry.")
print('************************************************************')
ch=input("\tDo you want to try with another data?(y/n)")
con.commit()
print('************************************************************')
print("\t\tDetails Succesfully Updated")
print('************************************************************')
ch=input("\tDo you want to Update another record?(y/n)")
con.close()
except:
print('***********************************************************
*') print("\t\tError!!!... during updating.")
print('************************************************************')
ch=input("\tDo you want to try with another data?(y/n)")
#Main
ch=1
while ch!=0 :
os.system('cls')
print('************************************************************')
print('* Bank Management System *')
print('************************************************************')
print('* *')
print('* 1. Open Bank Account *')
print('* 2. Deposit Amount *')
print('* 3. Withdraw Amount *')
print('* 4. Balance Enquiry *')
print('* 5. View Customer Details *')
print('* 6. View List of Customer *')
print('* 7. Modify Account Details *')
print('* 8. Close an Account *')
print('* 0. Exit
*')
print('************************************************************')
print('* *')
ch=int(input(' Enter Option :- '))
if ch==1:
open_acc()
elif ch==2:
deposit()
elif ch==3:
withdraw()
elif ch==4:
enquiry()
elif ch==5:
view()
elif ch==6:
list_al
l()
elif ch==7:
modify()
elif ch==8:
close_ac
c()
SQL CODE
Mr. XYZ
Mrs. PQR
2. Deposit Amount
3. Withdraw Amount
4. Balance Enquiry
Mr. XYZ
Mr. XYZ
Mrs. PQR
7. View List of customers -
Mr. XYZ
Miss.
MNO
Mrs. ABC
Mr.
UVW
9. Close an Account -
CONCLU
SION
This project is based on the usage of
Data Files in our day-to-day lives.
Hopefully it might be able to
demonstrate how to put into application
the concept of the features of python to
make our work easier. It consists of the
modular programming, SQL Connectivity
and other common features like
structure, loops,condition statements
etc. which handle all the transactions of
a Bank management including opening
an account and close it.
This concept can be utilised in
other institutions and
organisations making least
possible use of labour.
I hope it provides efficient
methods for storing data in a
concise