Bank Management System
Bank Management System
SESSION: 2023-2024
COMPUTER SCIENCE INVESTIGATORY PROJECT
BANK MANAGEMENT SYSTEM
pg. 1
COMPUTER SCIENCE PROJECT
pg. 2
COMPUTER SCIENCE PROJECT
CERTIFICAT
E
THIS IS TO CERTIFY THAT THE PROJECT
WORK ENTITLED “BANK MANAGEMENT
SYSTEM” IS BEING CARRIED OUT AND
SUBMITTED BY “AYUSH PATEL” OF CLASS
XII-B DURING THE ACADEMIC YEAR 2023-
2024.
EXTERNALEXAMINER SIGN
pg. 3
COMPUTER SCIENCE PROJECT
ACKNOWLEDGEME
NT
pg. 4
COMPUTER SCIENCE PROJECT
pg. 5
COMPUTER SCIENCE PROJECT
TABLE OF
CONTENTS
EXPLANATION
WORKING
CODING
OUTPUT
BIBLIOGRAPHY
pg. 6
COMPUTER SCIENCE PROJECT
EXPLANATION
pg. 7
COMPUTER SCIENCE PROJECT
5. Exit
If the user chooses to create an account, the code
prompts for details such as account number, name,
city and mobile number. It then inserts the details into
the “bank_master” table and sets the account balance
to 0.
If the user chooses to deposit money, the code
prompts for the account number and amount to be
deposited. It then inserts a transaction record into the
“banktrans” table with the account number, amount,
current date, and transaction type “d”. It also updates
the account balance in the “bank_master” table.
If the user chooses to withdraw money, the code
prompts for the account number and amount to be
withdrawn. It then inserts a transaction record into
the “banktrans” table with the account number,
account, current date, and transaction type “w”. It
also updates the account balance in the
“bank_master” table.
If the user chooses to display an account, the code
prompts for the account number and then retrieves
and displays the account details from the
“bank_master” table.
If the user chooses to exit, the code breaks out of the
while loop and ends.
pg. 8
COMPUTER SCIENCE PROJECT
WORKING
This program consists of five options as
follows:
pg. 9
COMPUTER SCIENCE PROJECT
CODE
print("****BANK TRANSACTION****")
#creating database
import mysql.connector
mydb=mysql.connector.connect
(host="localhost",user="root", passwd="admin")
mycursor=mydb.cursor()
mycursor.execute("create database if not exists
bank")
mycursor.execute("use bank")
#creating required tables
mycursor.execute("create table if not exists
bank_master(acno char(4) primary key,name
varchar(30),city char(20),mobileno
char(10),balance int(6))")
mycursor.execute("create table if not exists
banktrans(acno char (4),amount int(6),dot
date,ttype char(1),foreign key (acno) references
bank_master(acno))")
mydb.commit()
while(True):
print("1=Create account")
print("2=Deposit money")
print("3=Withdraw money")
print("4=Display account")
print("5=Exit")
ch=int(input("Enter your choice:"))
pg. 10
COMPUTER SCIENCE PROJECT
elif(ch==3):
acno=str(input("Enter account number:"))
wd=int(input("Enter amount to be
withdrawn:"))
pg. 11
COMPUTER SCIENCE PROJECT
pg. 12
COMPUTER SCIENCE PROJECT
OUTPUT
****BANK TRANSCITION****
1=Create account
2=Deposit money
3=Withdraw money
4=Display account
5=Exit
Enter your choice:1
All information prompted are mandatory to be
filled
Enter account number:1001
Enter name(limit 35 characters): ”Jitendra Singh”
Enter city name:”New Delhi ”
Enter mobile no. : 1234567890
Account is successfully created!!!
pg. 13
COMPUTER SCIENCE PROJECT
pg. 14
COMPUTER SCIENCE PROJECT
BIBLIOGRAPHY
www.google.com
www.wikipedia.com
Computer science with python by
Sumita Arora
pg. 15