0% found this document useful (0 votes)
53 views

Report On Bank Management System

Uploaded by

shauryaraj99ram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Report On Bank Management System

Uploaded by

shauryaraj99ram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

A PROJECT REPORT ON

“BANK MANAGEMENT
SYSTEM”
IN PYTHON

PAGE- 1
ACKNOWLEDGEMENT

It is with great pleasure that I find myself penning

Down these lines to express my sincere thanks to all

Those people who helped me a long way in Complete


this project.

The harmonious climate in our school provided


Proper atmosphere for creating this project. It was a
Privilege to have been guided by Mr. Rudra Raj.

I am so grateful to my classmates Sumit, Robin,


Brajesh, Vivek, Nirbhay who helped me during the
finalization of my project with their constructive
criticism and advice.

PAGE- 2
INDEX
SR NO. CONTENTS PAGE NO.

1. INTRODUCTION 5-8 5-
i. ABOUT PYTHON 6
ii. ABOUT MYSQL 7-8
iii. ABOUT BANK
MANAGEMENT SYSTEM 9

2. SOURCE CODE 10-22

3. OUTPUT 23-26

4. BIBLIOGRAPHY 27

PAGE- 3
INTRODUCTION

ABOUT PYTHON:
Python is an interpreted, object-oriented, high-level
programming language with dynamic semantics. Its high-level
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
connect existing components together. Python's simple, easy to
learn syntax emphasizes readability and therefore reduces the
cost of program maintenance. Python supports modules and
packages, which encourages program modularity and code reuse.
The Python interpreter and the extensive standard library are
available in source or binary form 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
debugger allows inspection of local and global variables,
evaluation of arbitrary expressions, setting breakpoints, stepping
through the code a line at a time, and so on. The debugger is
written in Python itself, testifying to Python's introspective
power. On the other hand, often the quickest way to debug a
program is to add a few print statements to the source: the fast
edit-test-debug cycle makes this simple approach very effective.

PAGE- 5
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


LANGUAGES 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 50 MILLION ROWS OR


MORE IN A TABLE. THE DEFAULT FILE SIZE LIMIT FOR A TABLE IS 4GB,

PAGE- 6
but YOU CAN INCREASE THIS (IF YOUR OPERATING SYSTEM CAN HANDLE
IT) TO A THEORETICAL LIMIT OF 8 MILLION TERABYTES (TB).

• MYSQL IS CUSTOMIZABLE. THE OPEN-SOURCE GPL LICENSE ALLOWS


PROGRAMMERS TO MODIFY THE MYSQL SOFTWARE TO FIT THEIR OWN

SPECIFIC ENVIRONMENTS.

PAGE- 7
ABOUT BANK MANAGEMENT SYSTEM:

Bank Management System is based on dot NET and is a major


project for 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- 8
SOURCE CODE

import pickle

import os import

pathlib class

Account :

accNo = 0

name = ''

deposit=0

type = ''

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")

PAGE- 9
def showAccount(self):

print("Account Number : ",self.accNo)

print("Account Holder Name : ", self.name)

print("Type of Account",self.type) print("Balance

: ",self.deposit)

def modifyAccount(self):

print("Account Number : ",self.accNo)

self.name = input("Modify Account Holder Name :")

self.type = input("Modify type of Account :")

self.deposit = int(input("Modify Balance :"))

def depositAmount(self,amount):

self.deposit += amount

def withdrawAmount(self,amount):

PAGE- 10
self.deposit -= amount

def report(self):

print(self.accNo, " ",self.name ," ",self.type," ", self.deposit)

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- 11
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- 12
for item in mylist :

print(item.accNo," ", item.name, " ",item.type, "


",item.deposit )

infile.close()

else :

print("No records to display")

def displaySp(num):

file = pathlib.Path("accounts.data")

if file.exists ():

infile = open('accounts.data','rb')

mylist = pickle.load(infile)

infile.close() found = False

for item in mylist : if

item.accNo == num :

print("Your account Balance is =

PAGE- 13
",item.deposit) found = True

else :

print("No records to Search")

if not found :

print("No existing record with this number")

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') for

item in mylist :

if item.accNo == num1 :

if num2 == 1 :

amount = int(input("Enter the

PAGE- 14
amount to deposit : "))

item.deposit += amount

print("Your account is updted")

elif num2 == 2 :

amount = int(input("Enter the amount to withdraw :


")) if amount <=

item.deposit :

item.deposit -=amount

else :

print("You cannot withdraw larger amount")

else :

print("No records to Search") outfile =

open('newaccounts.data','wb')

pickle.dump(mylist, outfile) outfile.close()

os.rename('newaccounts.data', 'accounts.data')

def deleteAccount(num):

PAGE- 15
file = pathlib.Path("accounts.data")

if file.exists ():

infile = open('accounts.data','rb')

oldlist = pickle.load(infile)

infile.close() newlist = [] for

item in oldlist :

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)

PAGE- 16
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()

os.rename('newaccounts.data',

'accounts.data')

def writeAccountsFile(account) :

file = pathlib.Path("accounts.data")

PAGE- 17
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()

PAGE- 18
while ch != 8: #system("cls"); print("\

tMAIN MENU") print("\t1. NEW

ACCOUNT") print("\t2. DEPOSIT

AMOUNT") print("\t3. WITHDRAW

AMOUNT") print("\t4. BALANCE

ENQUIRY") print("\t5. ALL ACCOUNT

HOLDER LIST") print("\t6. CLOSE AN

ACCOUNT") print("\t7. MODIFY AN

ACCOUNT")

print("\t8. EXIT") print("\tSelect

Your Option (1-8) ") ch = input()

#system("cls");

if ch == '1':

writeAccount()

elif ch =='2':

PAGE- 19
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':

num = int(input("\tEnter The account No. : "))

displaySp(num)

elif ch == '5':

displayAll(); elif

ch == '6':

num =int(input("\tEnter The account No. : "))

deleteAccount(num)

elif ch == '7':

num = int(input("\tEnter The account No. : "))

modifyAccount(num)

elif ch == '8':

PAGE- 20
print("\tThanks for using bank managemnt system")

break

else :

print("Invalid choice")

ch = input("Enter your choice : ")

OUTPUT

PAGE- 21
PAGE- 22
PAGE- 23
PAGE- 24
BIBLIOGRAPHY

BOOKS:

 SUMITA ARORA-COMPUTER SCIENCE WITH


PYTHON
 ARIHANT- ALL IN ONE COMPUTER SCIENCE CBSE
INTERNET:

 WEBSITE: WWW.PYTHON.ORG
 WEBSITE: WWW.WIKIPEDIA.ORG

By – Rudra and Team Members

PAGE- 25

You might also like