Bank Management

Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

ACKNOWLEDGEMENT

I would like to express my sincere gratitude to all those who have


contributed to the successful completion of this Bank Management System
project. This endeavor would not have been possible without the support,
guidance, and encouragement of several individuals and resources.

First and foremost, I extend my deepest appreciation to my computer


science teacher Mrs. Priyanka for providing valuable insights, continuous
support, and encouragement throughout the development process. Your
expertise and guidance have been instrumental in shaping the project and
enhancing its overall quality.

I would also like to thank my classmates and peers who provided feedback,
suggestions, and constructive criticism during various stages of the project.
Your collaboration and discussions have been invaluable in refining the
features and functionality of the Bank Management System.

I extend my thanks to the authors of relevant textbooks, online resources,


and documentation that served as essential references during the research
and implementation phases. These resources have been crucial in deepening
my understanding of Python programming and bank management concepts.

Puneet

1
CERTIFICATE
This is to certify that Puneet has successfully
completed the development of the

Bank Management System

This achievement is a testament to his dedication,


hard work, and proficiency in the field of computer
science. The Bank Management System is a
comprehensive software solution designed to
streamline and automate various aspects of bank
operations, showcasing [his/her] commitment to
excellence and innovation.

Teacher sign..

1
Index

S.no Topic Sign


1. Introduction
2. Software Requirement
3. Advantages of project
4. Source Code of Project
5. Output
6. Test
7. Bibliography
Introduction
The Bank Management System project is a comprehensive and user-friendly
software application developed to streamline and automate the operations of a
banking institution. This project aims to provide an efficient platform for both
bank employees and customers to manage their accounts, perform transactions,
and access essential banking services in a secure and convenient manner.

The banking sector plays a pivotal role in the financial ecosystem, and the need for
efficient management systems is paramount. This Python-based project addresses
this need by incorporating robust features and functionalities that encompass
account management, transaction processing, and user authentication.

• Key Objectives of the Project:

1. Account Management : The project allows for the creation, modification, and deletion of bank
accounts. It maintains a detailed record of each account, including essential information such as
account number, account holder name, balance, and transaction history.

2. Transaction Processing : The system facilitates various types of transactions,


including deposits, withdrawals, and fund transfers between accounts. It
employs robust validation checks to ensure accurate and error-free processing.

3. Error Handling and Data Validation : The application incorporates comprehensive


error handling mechanisms to detect and address any discrepancies or invalid inputs.
This ensures the integrity and reliability of the system.

4. Data Storage and Retrieval : The project employs efficient data storage
techniques to maintain the integrity of the information. It allows for seamless
retrieval of account details and transaction history for quick reference.

5. User-Friendly Interface : The user interface is designed with simplicity and intuitiveness in

mind, making it easy for both bank employees and customers to navigate through the system.

6. Security Measures : The project implements security measures to protect


sensitive information, including encryption protocols and secure login procedures.

By undertaking this project, we aim to provide a robust and scalable solution


that meets the needs of modern banking institutions, enhancing their
operational efficiency and customer satisfaction.
Software Required

1.Python Programming Language:


The project will be developed using Python, so a compatible version of Python 3.11.0

You can download it from the official Python


website (https://www.python.org/downloads/).

2.Integrated Development Environment (IDE):

★ A suitable IDE for Python development, such as:

•Visual Studio Code with Python extension (https://code.visualstudio.com/)

•Python IDE.

3.Operating System Compatibility:


The project should be designed to run on various operating systems
(Windows, Linux, macOS) to ensure broad accessibility.

• Optimizing productivity with the robust capabilities of Windows 10 Pro.


Advantages of Bank Management using Python

Creating a bank management project with Python can offer several advantages:

1. Automation: Python is a versatile and easy-to-learn language with


extensive libraries and frameworks. It allows you to automate various tasks,
such as account creation, transaction processing, and report generation,
which can significantly improve the efficiency of bank operations.

2. Cross-platform Compatibility: Python is a cross-platform language,


meaning your project can run on various operating systems like
Windows, macOS, and Linux without much modification.

3. Database Integration: Python can easily integrate with popular databases like
MySQL, PostgreSQL, or SQLite. This is crucial for storing and managing
customer account information, transaction records, and other relevant data.

4. Security: Python provides strong support for cryptography and


security libraries, making it suitable for implementing robust security
measures to protect sensitive information.

5. User Interface Development: Python offers a variety of GUI libraries like


Tkinter, PyQt, or Kivy for creating user-friendly interfaces. This enables you to
design an intuitive front-end for bank employees and customers to interact with.

6. Data Analysis and Reporting: Python's extensive libraries for data


analysis, such as pandas and NumPy, can be used to generate reports,
perform financial analysis, and extract insights from transaction data.

7. Scalability: Python is widely used in building scalable applications. This


means that as the bank's operations grow, the project can be easily
extended to accommodate increased demands.

8. Community and Documentation: Python has a large and active


community, which means you can find a wealth of resources, tutorials,
and forums for assistance and troubleshooting.
9. Cost-effective: Python is an open-source language, which means it's
free to use. Additionally, many third-party libraries and frameworks are
also open-source, reducing the overall development costs.

10. Integration with Web Technologies: Python can be used to create web-based
interfaces using frameworks like Django or Flask. This allows for online banking
portals, customer support chatbots, and other web-based services.

11. Machine Learning and AI Integration: Python has powerful libraries like
TensorFlow, scikit-learn, and PyTorch, which can be used for
implementing machine learning algorithms. These can be used for tasks
like fraud detection, credit scoring, and customer behavior analysis.

12. Maintenance and Updates: Python's clean and readable syntax makes it
easier to maintain and update the codebase over time, ensuring the project
remains up-to-date with changing banking regulations and technologies.
✮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 Savings or
Current : ")
self.deposit = int(input("Enter The Initial amoun ₹ 500 for Saving and
₹1000 for Current"))
print("\n\n\nAccount Created")

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):
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
1
def intro():
print("\t\t\t\t********************************")
print("\t\t\t\tBANK MANAGEMENT SYSTEM")
print("\t\t\t\t********************************")
print("\t\t\t\t Made by Puneet")
print("")
print("Press Enter To start:")
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)
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 = ",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)

2
infile.close()
os.remove('accounts.data')
for item in mylist :
if item.accNo == num1 :
if num2 == 1 :
amount = int(input("Enter the 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):
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)
infile.close()
os.remove('accounts.data')
for item in oldlist :
if item.accNo == num :
item.name = input("Enter the account holder

3
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")
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:
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(" ")
print(" ")
print("\tSelect Your Option (1 - 8) ")
ch = input()
#system("cls");

if ch == '1':
writeAccount()
elif ch =='2':
num = int(input("\tEnter The account No. : "))

4
depositAndWithdraw(num, 1)
print("Deposit Has Been Completed")
elif ch == '3':
num = int(input("\tEnter The account No. : "))
depositAndWithdraw(num, 2)
print("Withraw Has Been Completed")
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':
print("\tThanks for using bank managemnt system")
break
else :
print("Invalid choice")

5
Output
Testing

--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
Bibliography

1.Computer Science with Python XI and XII by Sumita Arora

2.ChatGPT: A Large-Scale Generative Model."


https://openai.com/research/chatgpt. "

3.Wikipedia

You might also like