0% found this document useful (0 votes)
25 views17 pages

Computer Project Printout

bank management

Uploaded by

Utkarsh Anand
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)
25 views17 pages

Computer Project Printout

bank management

Uploaded by

Utkarsh Anand
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/ 17

COMPUTER SCIENCE

PROJECT
(2024-25)

BANK
MANAGEMENT

PREPARED BY :-

Utkarsh
Anand
MD Ashraf
Class : XII-B

CERTIFICATE

CLASS: XII-B
YEAR: 2024-2025

This is to certify that Computer Science Project is


successfully completed by UTKARSH ANAND and MD
ASHRAF of Class: XII-B Roll no: 34 and 17 for the
academic year 2024-2025.

Signature:
ACKNOWLEDGEMENT

We UTKARSH ANAND and MD


ASHRAF of class XIIth, would like to
express our sincere gratitude to our
computer science teacher GURJEET
SINGH, PGT COMPUTER SCIENCE,
for his vital support, guidance and
encouragement-without which this
project would not have come forth.
We would also like to express my to
our school Summer Fields for
letting us use the school laboratory.
INDEX

1.Brief Overview of Project


2.Advantages of Project
3.Limitations of the Project
4.Source code of the Project
5.Output screens
6.Bibilography
BANK MANAGMENT
BRIEF OVERVIEW OF PROJECT
The main objectives of this
project are:-
 To manage bank accounts
and keep a track on balances
of different customers.
 Customers can add new
account.
 Customers can withdraw
amount.
 Customers can view their
account details.
 Customers can close an
account.
Reason For
Choosing this
Topic:
Because in personal banking
system, customer deposits
their money in savings
account or current account,
and when in need they can
withdraw that money. These
activities are being done
offline from centuries but can
be done online easily,
securely and efficiently
anywhere anytime.
Hardware Requirements:
A Computer/Laptop with
Operating System-Windows 7 or
above x86 64-bit CPU(Intel/ AMD
architecture)
4GB RAM
5GB free disk space

Software Requirements:
Python 3.6x or higher version
Pandas Library preinstalled
Matplotlib Library preinstalled
LIMITATIONS:
 It is not a web based project.

 More functionality can be added


as per requirement.
Source Code Screening:
 DBMS: MySQL
 Host: Local host
 User: Root
 Password: 1234
 Database: bank
 Table structure
SOURCE CODE:
import mysql.connector as a
con=a.connect(host="localhost",user="root",pass
wd="12345",database="bank")
def openaccount():
name=input("Enter your name > ")
account=input("Enter account number > ")
dob=input("Enter your date of birth > ")
phone=input("Enter phone number > ")
add=input("Enter address > ")
ob=input("Enter opening balance > ")
data1=(name,account,dob,phone,add,ob)
data2=(name,account,ob)
sql1="insert into account values(%s%s%s%s%s
%s)"
sql2="insert into amount values(%s%s%s)"
c=con.cursor()
c.execute(sql1,data1)
c.execute(sql2,data2)
con.commit()
print("Data succesfully entered")
main()
def depositamount():
acno=int(input("Enter account number > "))
am=int(input("Enter amount > "))
a="select balance from amount where acno=
%s"
data=(acno,)
c=con.cursor()
c.execute(a,data)
myresult=c.fethnone()
tam=myresult[0]+am
sql="update amount set balance =%s where
acno=%s"
d=(tam,ac)
c.execute(sql,d)
con.commit()
main()
def withdrawamount():
acno=int(input("Enter account number > "))
am=int(input("Enter amount > "))
a="select balance from amount where acno=
%s"
data=(acno,)
c=con.cursor()
c.execute(a,data)
myresult=c.fethnone()
tam=myresult[0]-am
sql="update amount set balance =%s where
acno=%s"
d=(tam,ac)
c.execute(sql,d)
con.commit()
main()
def balance():
ac=input("Enter account number > ")
a="select balance from amount where acno=
%s"
data=(ac,)
c=con.cursor()
c.execute(a,data)
myresult=c.fetchnone()
print("Balance for account is", ac , "is",
myresult=[0])
main()
def details():
ac=input("Enter account number > ")
a="select * from amount where acno=%s"
data=(ac,)
c=con.cursor()
c.execute(a,data)
myresult=c.fetchnone()
for i in myresult:
print(i, end=" ")
main()
def closeaccount():
ac=input("Enter account number > ")
sql1="delete from account where acno=%s"
sql2="delete from account where acno=%s"
data=(ac,)
c=con.cursor()
c.execute(sql1,data)
c.execute(sql2,data)
con.commit()
main()
def main():
print("============BANK============")
print("Please select one of the following
options\n 1=OPEN NEW ACCOUNT\n 2=DEPOSIT
AMOUNT\n 3=WITHDRAW AMOUNT\n
4=BALANCE ENQUIRY\n 5=DISPLAY CUSTOMER
DETAILS\n 6=CLOSE AN ACCOUNT\n")
reply=int(input(">>> "))
if reply == 1:
openaccount()
elif reply==2:
depositamount()
elif reply==3:
withdrawamount()
elif reply==4:
balance()
elif reply==5:
details()
elif reply==6:
closeaccount()
else:
print("Wrong choice ...........")
main()
main()
BIBLOGRAPHY
1.http://www.google.com/

2.http://en.wikipedia.org

3.Computer Science with Python by Preeti


Arora

You might also like