Bank Management
Bank Management
Class-12th science
Subject-
Computer Science
zvgEGGSSGSGSGSDG
DSSGSDDGSGRWWG
SGS
SESSION REPORT
A PROJECT 2024 -25 ON
A PROJECT REPORT ON
“BANK MANAGEMENT SYSTEM”
“BANK
IN PYTHON
SYSTEM
MANAGEMENT "
PAGE- 1
CERTIFICATE
SIGNATURE SIGNATURE
OF OF
CLASSTEACHER EXTERNAL
SIGNATURE
OF PAGE- 2
PRINCIPAL
ACKNOWLEDGEMENT
PAGE- 3
INDEX
1. INTRODUCTION 5-8
i. ABOUT PYTHON 5-6
ii. ABOUT MYSQL 7-8
iii. ABOUT BANK
MANAGEMENT 9
SYSTEM
3. OUTPUT 23-26
4. BIBLIOGRAPHY 27
PAGE- 4
INTRODUCTION
ABOUT PYTHON:
PAGE- 6
ABOUT MYSQL:
MySQL works very quickly and works well even with large
data sets.
PAGE- 7
but you can increase this (if your operating system can
handle it) to a theoretical limit of 8 million terabytes (TB).
PAGE- 8
ABOUT BANK MANAGEMENT SYSTEM:
Bank Management System is based on dot NET and is a major
project fro students.It is used to Keep the records of
clients,employee etc in Bank.The bank management system is an
application for maintaining a person „C/S account in a bank. The
system provides the access to the customer to create an
account, deposit/withdraw the cash from his account, also to
view reports of all accounts present. The following presentation
provides the specification for the system.
PAGE- 9
SOURCE CODE
import pickle
import os
import pathlib
class Account :
accNo = 0
name = ''
deposit=0
type = ''
def createAccount(self):
print("\n\n\nAccount Created")
PAGE- 10
def showAccount(self):
print("Type of Account",self.type)
print("Balance : ",self.deposit)
def modifyAccount(self):
def depositAmount(self,amount):
self.deposit += amount
def withdrawAmount(self,amount):
PAGE- 11
self.deposit -= amount
def report(self):
def getAccountNo(self):
return self.accNo
def getAcccountHolderName(self):
return self.name
def getAccountType(self):
return self.type
def getDeposit(self):
return self.deposit
def intro():
print("\t\t\t\t**********************")
PAGE- 12
print("\t\t\t\tBANK MANAGEMENT SYSTEM")
print("\t\t\t\t**********************")
input()
def writeAccount():
account = Account()
account.createAccount()
writeAccountsFile(account)
def displayAll():
file = pathlib.Path("accounts.data")
if file.exists ():
infile = open('accounts.data','rb')
mylist = pickle.load(infile)
PAGE- 13
for item in mylist :
infile.close()
else :
def displaySp(num):
file = pathlib.Path("accounts.data")
if file.exists ():
infile = open('accounts.data','rb')
mylist = pickle.load(infile)
infile.close()
found = False
if item.accNo == num :
PAGE- 14
print("Your account Balance is = ",item.deposit)
found = True
else :
if not found :
def depositAndWithdraw(num1,num2):
file = pathlib.Path("accounts.data")
if file.exists ():
infile = open('accounts.data','rb')
mylist = pickle.load(infile)
infile.close()
os.remove('accounts.data')
if item.accNo == num1 :
if num2 == 1 :
PAGE- 15
amount = int(input("Enter the amount to deposit : "))
item.deposit += amount
elif num2 == 2 :
item.deposit -=amount
else :
else :
outfile = open('newaccounts.data','wb')
pickle.dump(mylist, outfile)
outfile.close()
os.rename('newaccounts.data', 'accounts.data')
PAGE- 16
def deleteAccount(num):
file = pathlib.Path("accounts.data")
if file.exists ():
infile = open('accounts.data','rb')
oldlist = pickle.load(infile)
infile.close()
newlist = []
if item.accNo != num :
newlist.append(item)
os.remove('accounts.data')
outfile = open('newaccounts.data','wb')
pickle.dump(newlist, outfile)
outfile.close()
os.rename('newaccounts.data', 'accounts.data')
PAGE- 17
def modifyAccount(num):
file = pathlib.Path("accounts.data")
if file.exists ():
infile = open('accounts.data','rb')
oldlist = pickle.load(infile)
infile.close()
os.remove('accounts.data')
if item.accNo == num :
outfile = open('newaccounts.data','wb')
pickle.dump(oldlist, outfile)
outfile.close()
PAGE- 18
os.rename('newaccounts.data', 'accounts.data')
def writeAccountsFile(account) :
file = pathlib.Path("accounts.data")
if file.exists ():
infile = open('accounts.data','rb')
oldlist = pickle.load(infile)
oldlist.append(account)
infile.close()
os.remove('accounts.data')
else :
oldlist = [account]
outfile = open('newaccounts.data','wb')
pickle.dump(oldlist, outfile)
outfile.close()
PAGE- 19
os.rename('newaccounts.data', 'accounts.data')
ch=''
num=0
intro()
while ch != 8:
#system("cls");
print("\tMAIN MENU")
PAGE- 20
print("\t7. MODIFY AN ACCOUNT")
print("\t8. EXIT")
ch = input()
#system("cls");
if ch == '1':
writeAccount()
elif ch =='2':
depositAndWithdraw(num, 1)
elif ch == '3':
depositAndWithdraw(num, 2)
elif ch == '4':
displaySp(num)
PAGE- 21
elif ch == '5':
displayAll();
elif ch == '6':
deleteAccount(num)
elif ch == '7':
modifyAccount(num)
elif ch == '8':
break
else :
print("Invalid choice")
PAGE- 22
OUTPUT
PAGE- 23
PAGE- 24
PAGE- 25
PAGE- 26
BIBLIOGRAPHY
BOOKS:
SUMITA ARORA-COMPUTER SCIENCE WITH
PYTHON
ARIHANT- ALL IN ONE COMPUTER SCIENCE CBSE
INTERNET:
WEBSITE: WWW.PYTHON.ORG
WEBSITE: WWW.WIKIPEDIA.ORG
PAGE- 27