0% found this document useful (0 votes)
18 views19 pages

Vishal Ip Project

Uploaded by

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

Vishal Ip Project

Uploaded by

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

OXFORD GREEN PUBLIC SCHOOL

SIRSA, GREATER NOIDA

PROJECT FILE
OF
INFORMATICS PRACTICES (065)
ON
TOPIC- BANK MANAGEMENT SYSTEM

AISSCE 2023-24

Submitted To: Submitted By:


Mr. Parath Singh Vishal Nagar
PGT (Comp. Sci.) Roll. No-:__________
This is to certify that the Project entitled
Bank Management System is a bonafide
work done by VISHAL NAGAR of class
XII, Session 2023-24 in partial fulfilment
of CBSE’s AISSCE Examination 2023-24
and has been carried out under my direct
supervision and guidance. This report or
a similar report on the topic has not been
submitted for any other examination and
does not form a part of any other course
undergone by the candidate.

Internal Examiner External Examiner

Signature of Principal
I would like to express my special thanks
of gratitude to my teacher Mr. Parath
Singh as well as our principal maÕam, Mrs.
Meenakshi Bangar who gave me the golden
opportunity to do this project file on the
Topic- Bank Management System. This
project also helped me in doing a lot of
research and I came to know about so
many new things.
I am extremely grateful to my parents &
my friends who gave valuable suggestion
and guidance for completion of my project.
This cooperation and healthy criticism
came handy and useful with them.
CONTENTS
S.No. TOPIC PAGE No.
1. About the project 1
2. Working environment 2-3
3. Func ons & modules 4
4. Hardware & so ware 5
specifica ons
5. Source code 6-10
6. Output 11-12
7. Explana on 13-14
8. Bibliography 15
About the Project
This project is based on “Bank Management System”,
this project is developed on Python and MySQL.
This is a simple console-based system which is very easy
to understand and use. Talking about the system, it
contains all the basic func ons which includes:
→ Crea ng a new account
→ Withdraw and deposit amounts
→ Display customer details
→ Display all transac ons
→ All accounts info
In this mini project, there is no such no login system.
This means he/she can use all those available features
easily without any restric on.
There’s an external database connec on file used
in this mini project to save user’s data permanently.
Python and MySQL connec vity has been effec vely
used in this project.
Working Environment

 WHAT IS PYTHON?
Python is a popular programming language. It was
developed by a Guido Von Rossum and released in
1991.
It is used for:
 Web development(server-side)
 So ware development
 Data analysis
 System scrip ng
 WHAT PYTHON CAN DO?
 Python can be used on a server to create web
applica ons.
 It can be used alongside so ware to create
workflows.
 It can connect to database systems. It can also
read and modify files.
 It can be used to handle big data and perform
complex mathema cs.
 It can be used for rapid prototyping, or for
product-ready so ware development.
 WHAT IS MySQL?

MySQL is an open-source rela onal database


management system (RDBMS). It is the most
popular database system used with PHP. MySQL is
developed, distributed and supported by Oracle
Corpora on.
 The data in MySQL database are stored in the
tables which consist of columns and rows.
 It deals for both small and large applica ons.
 It is a database system that runs on a server.
 It supports large databases, up to 50 million
rows or more in a table, the default file size
limit for a table is 4 GB, but we can increase this
to a theore cal limit or 8 million terabytes (TB).
Func ons & Modules
The following func ons are used in our source
code:
 Connect ( )
This func on establishes connec on between
Python and MySQL.
 Cursor ( )
It is an object that is used to make the
connec on for execu ng SQL queries. It acts as
middleware between SQLite database
connec on and SQL query.
 Execute ( )
This func on is used to execute the SQL query
and retrieve records using python.
 Commit ( )
This func on provides changes in the database
physically.
The following module is used in our source code:
 mysql.connector
By impor ng this module, we are able to establish
the connec on between SQL and Python.
Hardware & So ware
Specifica ons
Hardware:
 Processor – Pen um ® G2030 2 3.70 GHz
 Processor speed – 533 MHz
 RAM – 2 G.B.
 Hard disk – 2.00 G.B.
So ware :
 Opera ng System – Windows 10
 IDE – IDLE Python
 Front end – Python 3.11
 Back end – MySQL server 8.0
SOURCE CODE
# WRITE HEADING BANK TRANSACTION
print("****BANK TRANSACTION****")

#CREATING DATABASE
import mysql.connector
mydb=mysql.connector.connect
(host="localhost",user="root",passwd="admin")
mycursor=mydb.cursor()
mycursor.execute("create database if not exists bank")
mycursor.execute("use bank")

# CREATING REQUIRED TABLE


mycursor.execute("create table if not exists
bank_master (acno char(4) primary key, name
varchar(30), city char(20), mobileno char(10), balance
int(6))")
mycursor.execute("create table if not exists banktrans
(acno char (4), amount int(6), dot date, ype char(1),
foreign key (acno) references bank_master(acno))")
mydb.commit() while(True):
print("1=Create account")
print("2=Deposit money")
print("3=Withdraw money")
print("4=Display account")
print("5=Exit")
ch=int(input("Enter your choice:"))
# PROCEDURE FOR CREATING A NEW
ACCOUNT OF THE APPLICANT
if(ch==1):
print("All informa on prompted are
mandatory to be filled")
acno=str(input("Enter account number:"))
name=input("Enter name(limit 35 characters):")
city=str(input("Enter city name:"))
mn=str(input("Enter mobile no.:"))
balance=0
mycursor.execute("insert into bank_master
values ('"+acno+"', '"+name+"', '"+city+"',
'"+mn+"','"+str(balance)+"')")
mydb.commit()
print("Account is successfully created!!!")

# PROCEDURE FOR UPDATING DETAILS AFTER


THE DEPOSITION OF MONEY BY THE
APPLICANT elif(ch==2):
acno=str(input("Enter account number:"))
dp=int(input("Enter amount to be deposited:"))
dot=str(input("Enter date of Transac on: YYYY-
MM-DD "))
ype="d"
mycursor.execute("insert into banktrans values
('"+acno+"','"+str(dp)+"','"+dot+"','"+ ype+"')")
mycursor.execute("update bank_master set
balance=balance+'"+str(dp)+"' where
acno='"+acno+"'")
mydb.commit()
print("money has been deposited successfully!!!")
# PROCEDURE FOR UPDATING THE DETAILS OF
ACCOUNT AFTER THE WITHDRAWL OF MONEY BY THE
APPLICANT elif(ch==3):

acno=str(input("Enter account number:"))


wd=int(input("Enter amount to be withdrawn:"))
dot=str(input("enter date of transac on: YYYY- MM-DD
"))
ype="w"
mycursor.execute("insert into banktrans values
('"+acno+"','"+str(wd)+"','"+dot+"','"+ ype+"')")
mycursor.execute("update bank_master set
balance=balance-'"+str(wd)+"' where
acno='"+acno+"' ")
mydb.commit()
# PROCEDURE FOR DISPLAYING THE ACCOUNT OF THE
ACCOUNT HOLDER AFTER HE/SHE ENTERS HIS/HER
ACCOUNT NUMBER elif(ch==4):

acno=str(input("Enter account number:"))


mycursor.execute("select * from bank_master
where acno='"+acno+"'")

for i in mycursor:
print(i)
else:

break
OUTPUT
• IF THE USER ENTER 1 TO CREATE AN ACCOUNT

• IF THE USER ENTER 2 TO DEPOSIT MONEY


• IF THE USER ENTER 3 TO WITHDRAW MONEY

• IF THE USER ENTER 4 TO DISPLAY ACCOUNT


DETAILS
EXPLANATION
This is a Python code for a basic bank transac on
system. It uses a MySQL database to store account and
transac on details.
The code creates a “bank” database if it does not
already exist and then creates two tables in the
database – “bank_master” and “banktrans”. The
“bank_master” table stores details of each account
holder, such as account number, name, city, mobile
number, and account balance. The “banktrans” table
stores transac on details, such as account number,
amount, date of transac on, and transac on type
(deposit or withdrawal).
The code then presents a menu to the user with the
following op ons:
1. Create account
2. Deposit money
3. Withdraw money
4. Display account
5. Exit
If the user chooses to create an account, the code
prompts for details such as account number, name, city,
and mobile number. It then inserts the details into the
“bank_master” table and sets the account balance to 0.
If the user chooses to deposit money, the code prompts
for the account number and amount to be deposited. It
then inserts a transac on record into the “banktrans”
table with the account number, amount, current date,
and transac on type “d”. It also updates the account
balance in the “bank_master” table.
If the user chooses to withdraw money, the code
prompts for the account number and amount to be
withdrawn. It then inserts a transac on record into the
“banktrans” table with the account number, amount,
current date, and transac on type “w”. It also updates
the account balance in the “bank_master” table.
If the user chooses to display an account, the code
prompts for the account number and then retrieves
and displays the account details from the
“bank_master” table. If the user chooses to exit, the
code breaks out of the while loop and ends.
BIBLIOGRAPHY
BOOKS :
 SUMITA ARORA – I.P.(065)

INTERNET :
 h ps://cbsepython.in/
 h p://www.python.org/
 h ps://www.slideshare.net/

You might also like