A PROJECT REPORT ON
BANK MANAGEMENT SYSTEM
IN PYTHON
“
NYU.
fam Y
ROLL NO: 09
SESSION: 2023-2024
SUBJECT : COMPUTER
SCIENCECERTIFICATE
This is to certify that Ms. Shivika
Sharma, roll no: 09,Studying in
| class: XII A, Session: 2023-2024,has |
completed her Computer Science
project based on CBSE syllabus. |
INTERNAL EXTERNALACKNOWLEDGEMENT
I would like to express my special
| thanks of gratitude to my teacher
| Mrs. Ritika Bisht, as well as our |
_ principal Mr. Sanjay Kumar, who gave
me the golden opportunity to do this |
informative project which helped me
in doing a lot of research and | also
came to know about many new
things. | am thankful to them.Python is an interpreted, object-oriented, high-level
sh-level
programming language with dynamic semantics. its high-leve
built in data structures, combined with dynamic typing and
dynamic binding, make It very attractive for Rapid Application
Development, as well as for use as a scripting or glue language to
easy to
connect existing components together, Python's simple.
learn syntax emphasizes readabllity and therefore reduces the
cost of program maintenance. Python supports modules and
packages, which encourages program modularity and cod=
reuse. The Python interpreter and the extensive standard library
are available in source or binary farm without charge for all
major platforms, and can be freely distributed.
Often, programmers fall In love with Python because of the
increased productivity it provides. Since there is no compilation
step, the edit-test-debug cycle is incredibly fast. Debugging
Python programs is easy: a bug or bad Input will never cause a
segmentation fault. Instead, when the interpreter discovers an
error, it raises an exception. When the program doesn't catch
the exception, the interpreter prints a stack trace. A source level
PAGE. 5
CE Scanned with nven en.ABOUT MYSQL:
MySQL Is a fast, easy-to-use RDBMS being used for many small
and big businesses. MySQL is developed, marketed and
supported by MySQL AB, which is a Swedish company. MySQL Is
becoming so popular because of many good reasons —
= MySQL is released under an open-source license. So you
have nothing to pay to use it. |
» MySQL Is a very powerful program in its own right. It
handles a large subset of the functionality of the most
expensive and powerful database packages.
+ MySQL uses a standard form of the well-known SQL data
language.
= MySQL works on many operating systems and with many
fanguages Including PHP, PERL, C, (C++, JAVA, etc.
+ MySQL works very quickly and works well even with large
data sets.
+ MYSQL Is very friendly to PHP, the most appreciated
language for web development,
+ MySQL supports large databases, Up to SO million rows or
more in a table, The default file size limit for a table is agp,
PAGE. 7but you can increase this (if your operating system can
handle it) to a theoretical limit of 8 milllan terabytes (TB).
-source GPL license allows
+ MySQL Is customizable. The open:
eir
programmers to modify the MySQL software to fit th
own specific environments.import pickle
import os
Import pathlib
class Account:
accNo =0
name ="
deposit=0
def createAccount(self):
self.accNo= Int{input{"Enter the account no : “))
self.name = Input("Enter the account holder name : ")
self.type = Input("Ente the type of account [C/S] : ")
self.deposit = int(input("Enter The Initial amount(>=500 for
Saving and >=1000 for current")
print("\n\n\nAccount Created")def deleteAccount{num):
file = pathlib.Path{"accounts.dat2")
if file.exists (}:
infile = opent‘accounts.data‘,"rb')
oldlist = pickle.load{(Infile)
infile.close()
newlist = []
for item in oldlist :
if tem.accNo f= 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’)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’)
for item In oldlist :
if item.accNo == num :
item.name = input("Enter the account holder name =")
item.type = input("Enter the account Type : “)
item.deposit = int(input(“Enter the Amount : “))
outfile = open{‘newaccounts.data',‘wb')
pickle.dump(oldlist, outfile)
outfile.close(}=p
ia data’)
os.rename(‘newaccounts.data , accounts
def writeAccountsFile(account) =
file = pathlib.Path{"accounts.data")
if filecexists ():
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(oldiist, outfile)
outfile.close()print(*\t7. MODIFY AN ACCOUNT")
print("\t8. EXIT")
print("\tSelect Your Option (1-8) my
ch = input()
#system("cls");
ifch='1':
writeAccount()
elif ch =='2':
num = Int(input("\tEnter The account No. :"))
depositAndWithdraw(num, 1)
elif ch == '3':
num = int(input("\tEnter The account No. :"))
depositAndWithdraw(num, 2)
elif ch = '4':
Aum = int{input("\tEnter The account No. :"))
displaySp(num)EF CAWindemepy ne
Oe
GF CAWadom\py se
PAGE- 24& CiWindoms' py t00