0% found this document useful (0 votes)
9 views16 pages

COMPUTER SCIENCE PROJECT - Ashish mishra

Uploaded by

itwasme059
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)
9 views16 pages

COMPUTER SCIENCE PROJECT - Ashish mishra

Uploaded by

itwasme059
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/ 16

COMPUTER SCIENCE

PROJECT

TOPIC: - BANK MANAGEMENT WITH MYSQL

SUBMITED BY-ASHISH KUMAR MISHRA


CLASS-XII ‘E’
ACKNOWLEDGEMENT
I would like to express my gratitude to my
teacher, Ms. Pallavi Sharma who has guided me
and gave me the opportunity to make this
project.
ABOUT
Description:

This is a program that processes the way a bank


works and has been made by integrating the MySQL
database with python which presents it in an easy
and understanding manner.
This program has 2 mains modes – A Manager of
bank and an account holder. The account holder can
view the menu whereas the manager has various
roles like Open Account, Money Withdrawal, Cash
Deposit, Account Statement, Update Account.
Python Language and MySQL is used in this program
creation
CERTIFICATE

This is to certify that the project entitled, BANK


MANAGEMENT WITH PYTHON under my supervision
and guidance by:

Name: Ashish Kumar Mishra


Roll Number: 12
Class: XII ‘E’
PROGRAM:

import MySQL. Connector as m

con=m. connect (user='root',

passwd='1234',

host='localhost',

database='PROJECT')

d=con.cursor()

print ("*"*65)

print (““*26, end=' ' )


print ('Bank Management System')

print ("*"*65)

acc=11

while True:

choice=int (input ('1-->Open Account\n

2-->Money Withdrawal\n

3-->Cash Deposit\n

4-->Account Statement\n

5-->Update Account\n

6-->Exit\enter Your Choice'))


if choice==1:

name= input ('Enter Name of The Account


Holder:')
balance=int (input ('Enter Opening Balance:'))

mob=input ('Enter Registered Mobile Number:')

query="insert into bankmanagment values ({},

'{}’, {},'{}')”. format (acc, name, balance ,mob)

acc =acc+1

d.execute(query)

con. commit ()

print ('Account Opened Successfully...')


if choice==4:

account=int (input ('Enter Account Number:'))

query='select * from BANK where acc= {}’.


format(account)

cursor. execute(query)

data=cursor. fetchone ()

if cursor.rowcount>0:

print ('='*65)

print ('Account Details Are; \n:’, data)

print ('Name of Account Holder = ‘, data [0])


print ('Account Balance= ‘, data [2])

print ('Registered Mobile Number = ‘, data


[3])
print ('='*65)

else:

print ('Account Number Not Found...')

if choice==6:
break
OUTPUT:
********************************************
Bank Management System
********************************************
1-->Open Account
2-->Money Withdrawal
3-->Cash Deposit
4-->Account Statement
5-->Update Account
6-->Exit
Enter Your Choice1
Enter Name Of The Account Holder:ww wilyanam
Enter Opeaning Balance:12423
Enter Registered Mobile Number:084928379298
Account Opened Successfully...
1-->Open Account
2-->Money Withdrawal
3-->Cash Deposit
4-->Account Statement
5-->Update Account
6-->Exit
Enter Your Choice1
Enter Name Of The Account Holder:ii ilyanam
Enter Opeaning Balance:123231
Enter Registered Mobile Number:9972729932
Account Opened Successfully...
1-->Open Account
2-->Money Withdrawal
3-->Cash Deposit
4-->Account Statement
5-->Update Account
6-->Exit
Enter Your Choice1
Enter Name Of The Account Holder:jj jalyanam
Enter Opeaning Balance:12131
Enter Registered Mobile Number:97870283131
Account Opened Successfully...
1-->Open Account
2-->Money Withdrawal
3-->Cash Deposit
4-->Account Statement
5-->Update Account
6-->Exit
Enter Your Choice1
Enter Name Of The Account Holder:vv valyanam
Enter Opeaning Balance:1232
Enter Registered Mobile Number:988927232
Account Opened Successfully...
1-->Open Account
2-->Money Withdrawal
3-->Cash Deposit
4-->Account Statement
5-->Update Account
6-->Exit
1-->Open Account
2-->Money Withdrawal
3-->Cash Deposit
4-->Account Statement
5-->Update Account
6-->Exit
Enter Your Choice4
Enter Account Number:101

Account Details Are.


: (101, 'kk kalyanam', 1234, '978437382')
Name Of Account Holder = 101
Account Balance= 1234
Registered Mobile Number = 978437382
1-->Open Account
2-->Money Withdrawal
3-->Cash Deposit
4-->Account Statement
5-->Update Account
6-->Exit
Enter Your Choice4
Enter Account Number:2

Account Details Are.


: (2, 'ii Iliana', 123231, '9972729932')
Name Of Account Holder = 2
Account Balance= 123231
Registered Mobile Number = 9972729932

You might also like