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

COMP PROJECT

The document is a project report on a Bank Management System undertaken by Amtul Khan, expressing gratitude to various individuals for their support. It details the project's components, including the problem statement, introduction to Python and MySQL, coding examples, and output results. The report concludes with a bibliography of resources used for the project.

Uploaded by

khanamtul17
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

COMP PROJECT

The document is a project report on a Bank Management System undertaken by Amtul Khan, expressing gratitude to various individuals for their support. It details the project's components, including the problem statement, introduction to Python and MySQL, coding examples, and output results. The report concludes with a bibliography of resources used for the project.

Uploaded by

khanamtul17
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

ACKNOWLEDGEMENT

I express my deep sense of gratitude to Mrs. Insha Arshad,


PGT (Computer Science) for giving me the opportunity to
undertake the project on Bank Management System.
I convey my sincere thanks to our Principal Dr. Immanuel
Simon Sarkar, Jingle Bells Public School for his constant
encouragement and support.
I would also like to extend my special thanks to my parents, all
the academic staff and my friends for motivating and helping
me at each step in proper direction.
Without their co-operation my project file would not have
taken a space.
Amtul Khan
XII C
CERTIFICATE
This is to certify that Amtul Khan student of class XII-C has
undertaken a project on bank management system under my
supervision and guidance.
This project file is in partial fulfillment for award of Senior
Secondary Examination.
To the best of my knowledge this work so far has not been
carried on / submitted by anyone else.
His hard work and enthusiasm during the project file was
found to be quite appreciable. I wish him all the very best for
the future endeavours
Mrs. Insha Arshad
P.G.T (CS)
MAIN CONTENTS
 Problem statement
 Introduction of Python
 Backend Language (MySQL.)
 Minimum hardware & software requirement
 Coding
 Output
 Bibliography
PROBLEM STATEMENT
The title of my project is Bank Management System. It is
basically a computer based record keeping system which can
help us for storing information of different customers and
accounts, if we do the same work manually a lot of time and
effort will be consumed. By using this software we can do the
same work very quickly and quite accurately.
INTRODUCTION OF PYTHON
Python programming language was developed by Guido Van
Rossum in 1991.Python is based on two programming
languages:
1. ABC language
2. Module-3
Python is easy to learn yet powerful object-oriented
programming language. It is as powerful as many other
middle level not so high-level languages like C, C++, Java etc.
Though Python language came into being in early 1990s yet it
is competing with even popular languages like C, C++, Java
etc. in popularity index. Although it is not perfect for every
type of application, yet it has many strengths that make it a
good choice for every situation.
Let us now see some of its advantages :
1. Easy to use
Python is compact and very easy to use object-oriented
language with simple syntax rules. It is a very high-level
language and thus very-very programmer friendly.
2. Expressive language
Python's expressiveness means it is more capable to
expressing the code's purpose than many other languages.
Reason being fewer lines of code, simpler syntaxes.

3. Interpreted language
Python is an interpreted language not a compiled language.
This means that Python installation interprets and executes
the code. Line by line at a time .It makes Python easy to
debug language and thus suitable for beginners to advance
users.

4. Cross platform language


Python can run equally well on variety of platforms.
Windows, LINUX, UNIX, Macintosh, Supercomputers,
Smartphones etc. Python is truly a cross plat form language
or in other words Python is portable language.

5. Free and open source


Python language is freely available i.e., without any cost
(from www.python.orq) ,and not only is it free it's open-
source code is also available i.e., it is open source as well.
6. It's completeness
When we install Python, we get everything we need to do
real works. All required functionality is available through
various modules of python standard library.
BACKEND LANGUAGE
(MySQL)
MySQL is a freely available open-source Relational Database
Management System (RDBMS) that uses Structured Query
Language. It is downloaded from site www.mysql.org. In
MySQL database, information is stored in tables. A single
MySQL database can contain many tables at once and store
thousands of individual records. MySQL provides us with rich
set of features that support a secure environment for storing,
maintaining and accessing data. MySQL is fast, reliable,
scalable alternative to many of the commercial RDBMS
available today.

MySQL was created and is supported by MySQL AB, a


company based in Sweden(www.mysql.com). This company
is now a subsidiary of Sun Microsystems which holds the
copyright to most of the codebase. On April 20th 2009 Oracle
Corp, which develops and sells the proprietary Oracle
database, announced a deal to acquire Sun Microsystem's
MySQL. database system.
MySQL database system refers to the combination of a
MySQL server instance and a MySQL database. MySQL
operates using client server architecture in which the server
runs on the machine containing the databases and the clients
connect to the server over the network. The server operating
system is usually a LINUX or Windows Operating System.
Features of MySQL :
1. Speed
If the server hardware is optimal, MySQL runs very fast. It
supports clustered servers for demanding applications.

2.Ease of use
MySQL is a high performance, relatively simple database
system. From
beginning, MySQL has typically been configured, monitored
and managed from the command line. However, several
MySQL graphical interfaces are also available.

3. Query Language Support


MySQL understands standard based SQL (Structured Query
Language ).

4. Data Types
MySQL provides many datatypes to support. It also supports
fixed length and variable length records.
5. Security
MySQL offers a private and password system that is very
flexible and secure, because it allows host based verification.
Passwords are secure because all password traffic encrypted
when you connect to a server.

Apart from these MySQL has numerous other advantages


and features which makes one of the best programming
language for backend use.
MINIMUM HARDWARE AND
SOFTWARE REQIREMENT
SOFTWARE SPECIFICATION
Operating system : Windows 8.1(64bits)
Platform : Python IDLE 3.7
Database : MySQL
Language : Python

HARDWARE SPECIFICATION
Processor : 2.16.5 Core i7 (2nd
. and 3rd generation)
Hard Disk : 1TB HHD
RAM : 4GB
CODING
Import mysql.connector
mydb=mysql.connector. connect(host="Localhost", user="root",
password="ram", database="bank")
def openAcc():
n=Input("Enter Name:")
ac-input("Enter Account No:") # Amtul KHAN
db=input("Enter D.0.B.:")
p=input("Enter Phone: ")
ad-input("Enter Address:")
ob=int(input("Enter Opening Balance:"))
data 1 =(n,ac,db,p,ad,ob)
data2=(,ac,ob)
sql1='insert into account values(%S, %S,'%S,%S,%S,%S)"
sql2-'insert into amount values (%S,%S)"
e=mydb. cursor) #Amtul Khan
c. execute(sql1,data 1)
c.execute(sql2,data2)
mydb.commit()
print(" Data Entered Successfully")
main()
def depoAmo(): #Amtul Khan
am=int(input("Enter Amount:"))
acc=int(input(" Enter Account No."))
a="select balance from amount where accno.=%s”
data=(ac,)
c=mydb.cursor()
c.execute(a, data)
myresult=c.fetchone()
tam=myresult|0] + am

sql="update amount set balance where accno=%s"


d=(tam,ac) # Amtul Khan
c.execute(sql,d)
mydb.commit()
main()
def withdrawam():
am=int(input("Enter amount:")
acc=input("Enter Account No:")
a="select balance from amount where acno=%s"
data=(ac,) # Amtul Khan
c=mydb.cursor)
c.execute(a,data)
myresult=c.fetchone)
tam=myresult[0]- am
sql="update amount set balance where accno=%s"
d=(tam,ac)
c.execute(sql,d) # Amtul Khan
mydb. commit()
main ()
def balance():
acc=input(" Enter Account No.:")
a="select balance from amount where accno=%s"
data=(ac,)
c=mydb.cursor()
c.execute(a,data)
myresult-c.fetchone)
print("Balance for Account", ac, "is",myresult|0])
main()

def displayacc():
acc=input("Enter Account No.:")
a ="select * from account where accno =%s'"
data-(ac,)
e=mydb.cursor()
c. execute(a,data)
myresult-c.fetchone()
for i in myresult:
print(i,end=" ")
main()
def closeacc():
acc=input("Enter Account No:'")
sql1="delete from account where accno = %s"
sql2="delete from amount where accno =%s"
data=(ac,)
c=mydb.cursor()
c.execute(sql1,data)
c.execute(sqI2, data)
mydb.commit()
main()
1. OPEN NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. DISPLAY CUSTOMER DETAILS
6. CLOSE AN ACCOUNT

choice=input(" Enter Task No.:")


while True:
if(choice==1):
openAcc()
elif(choice==2):
depoAmo()
elif(choice==3):
withdrawam()
elif(choice==4):
balance()
elif(choice==5):
displayacc()
elif(choice==6):
closeacc()
else:
print ("Wrong Choice")
main()
OUTPUT
1. OPEN NEW ACCOUNT:
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. DISPLAY CUSTOMER DETAILS
6. CLOSE AN ACCOUNT

Enter Task No.:1


Enter Name: Amtul Khan
Enter Account No: 100
Enter D.0.B.: 1-05-2007
Enter Phone: 9356798987
Enter Address: civil lines ,Bareilly
Enter Opening Balance: 8000
Data Entered Successfully
1. OPEN NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. DISPLAY CUSTOMER DETAILS
6. CLOSE AN ACCOUNT

Enter Task No.: 2


Enter Account No.:12345
Balance for Account: 8000
Amount Deposited Successfully
1. OPEN NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. DISPLAY CUSTOMER DETAILS
6. CLOSE AN ACCOUNT

Enter Task No.:3


Enter amount: 500
Enter Account No: 12345
Amount Withdraw Successfully
1. OPEN NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. DISPLAY CUSTOMER DETAILS
6. CLOSE AN ACCOUNT

Enter Task No.:4


Enter Account No: 12345
Balance for Account: 12345 is 7500
1. OPEN NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. DISPLAY CUSTOMER DETAILS
6. CLOSE AN ACCOUNT

Enter Task No.:5


Enter Account No.:12345
Amtul 12345 1/05/2007 9356 Bareilly 7000
1. OPEN NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. DISPLAY CUSTOMER DETAILS
6. CLOSE AN ACCOUNT

Enter Task No.:6


Enter Account No: 12345
Account Deleted
BIBLIOGRAPHY
Help from internet
 www.google.com
 www.youtube.com
Following links have been used:
 https://supportmicrosoft.com
 https://wikipedia.org
Following books are also used in completion of this file:
 Preeti Arora
 Sumita Arora

You might also like