Cbse Class 12 Cs Project
Cbse Class 12 Cs Project
Cbse Class 12 Cs Project
SCIENCE
This is to certify that Raj roy of class XII Science has successfully
completed his Computer project file Entitled Bank
Management System as prescribed by the course during the
academic year 2020-2021.
Teacher’s Signature
ACKNOWLEDGEMENT
I am extremely grateful to Ashish Ashk sir, Teacher of Computer Science for his able
guidance and useful suggestions which helped me in completing the project in time.
I would also like to thank all the teaching and non teaching staff of computer science
department who helped me directly or indirectly in the completion of this project report.
Finally yet importantly I would like to express my heartfelt thanks to my parents for
their blessings, friends for their help and wishes for the succession completion of this
report.
DECLARATION
4
I hereby declare that the project work entitled “Bank Management Sytem”,submitted to
department of Computer Science,DAV School,Biratnagar,Nepal is prepared by me.
Raj Roy
12 science
AIM
To develop a software for solving financial applications of a customer in banking environment in order to
nurture the needs of an end banking user by providing various ways to perform banking tasks. Also to
enable the users workspace to have additional functionalities which are not provided under a conventional
banking software.
SOURCE CODE OF THE PROGRAM
import pickle
import os
import pathlib
class Account :
accNo = 0
name = ‘’
deposit=0
type = ‘’
def createAccount(self):
self.deposit = int(input(“Enter The Initial amount(>=500 for Saving and >=1000 for
current”))
print(“\n\n\nAccount Created”)
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):
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**********************”)
print(“\t\t\t\tBANK MANAGEMENT
SYSTEM”)
print(“\t\t\t\t**********************”)
print(“\t\t\t\tprojectworlds.in”)
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)
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 :
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 :
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’)
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’)
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()
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()
os.rename(‘newaccounts.data’, ‘accounts.data’)
# start of the program
Ch=’’
Num=0
Intro()
While ch != 8:
#system(“cls”);
Print(“\tMAIN MENU”)
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)
elif ch == ‘5’:
displayAll();
elif ch == ‘6’:
deleteAccount(num)
elif ch == ‘7’:
modifyAccount(num)
elif ch == ‘8’:
break
else :
print(“Invalid choice”)
J . IN ACCOBH"£
2 . DEPOS IT AHOI 0*E
NITRDRAN AMODWT
9. BALAFOE EEQDIR¥
5. ALL ACKODRT ROLDER LIST
ULOZE AN ACCODNT
T. NODIFY AN AoCODNT
1. NAN .AOCOBNT
DRPDSIT AMODRT
3. AITbDRAR AMDDNT
BALANCE ENQDIRY
5. ALL AoCOBNT NOLDER ’LIZT
CASE AR ACfODNT
7. HODIFY AR CODNT
KXIT
CASE AN AECODNT
7. NODIFY AN .CODNI
EXIT
SBlREC NOTE CLOO
nt managemoz system
Software Requirement
itsourcecode.com
Projectsworlds.in