Project XII NewDoc
Project XII NewDoc
ROLL NO :
NAME :
CLASS : XII
SUBJECT : INFORMATICS PRACTICES
SUB CODE : 065
CERTIFICATE
This is to certify that the project work entitled "BANK MANAGEMENT SYSTEM.” on
the subject Informatics Practices (065) has been successfully completed by
<Name> of class XII Science in partial fulfilment of the curriculum Central Board of
Secondary Education (CBSE) leading to the award of AISSCE practical examination.
1 ACKNOWLEDGEMENT
2 INTRODUCTION
5 INSTALLATION PROCEDURE
6 FLOW CHART
7 SOURCE CODE
8 OUTPUT
9 CONCLUSION
10 BIBLIOGRAPHY
ACKNOWLEDGMENT
Apart from the efforts of mine, the success of any project depends largely on the
encouragement and guidelines of many others. I take this opportunity to express my
gratitude to the people who have been instrumental in the successful completion of
this project.
I express deep sense of gratitude to almighty God for giving me strength for
the successful completion of the project. I express my heartfelt gratitude to my
parents for constant encouragement while carrying out this project. I gratefully
acknowledge the contribution of the individuals who contributed in bringing this
project up to this level, who continues to look after me despite my flaws,
I express my deep sense of gratitude to our luminary Principal Dr.Priyadarshi
Nayak, who has been continuously motivating and extending their helping hand to
us. My sincere thanks to my subject teacher, Ms.Samapika Sengupta who critically
reviewed my project and helped in solving each and every problem, occurred during
implementation of the project.
The guidance and support received from all the members who contributed
and who are contributing to this project, was vital for the success of the project. I am
grateful for their constant support and help.
INTRODUCTION
“BANK MANAGEMENT SYSTEM” This project is useful for the bank employees as
well as customers to keep a track of account details. The emerging of digital system
made information available on finger tips. By automating the transactions one can
view the details as and when required in no time. This project emphases on creation
of new customer accounts, managing the existing account holders in the bank, by
making digital system one can generate daily reports, monthly reports and annual
The objective of this project is to let the students apply the programming
knowledge into a real- world situation/problem and expose the students
how programming skills helps in developing a good software.
1. Write programs utilizing modern software tools.
2. Apply object-oriented programming principles effectively when
developing small to medium sized projects.
3. Write effective procedural code to solve small to medium sized
problems.
4. Students will demonstrate a breadth of knowledge in computer
science, as exemplified in the areas of systems, theory and
software development.
5. Students will demonstrate ability to conduct a research or applied
Computer Science project, requiring writing and presentation
skills which exemplify scholarly style in computer science.
HARDWARE AND SOFTWARE REQUIREMENTS
SOFTWARE REQUIREMENTS
I.Windows OS
II.Python
III.MYSQL
INSTALLATION PROCEDURE
MENU.PY
import mysql.connector as sql
conn=sql. connect (host=‘localhost’ , user=‘root’ , passwd= ‘manager’
database='bank')
cur = conn.cursor ()
conn. autocommit = True
print(‘1.CREATE BANK ACCOUNT’)
print (‘2.TRANSACTION’)
print(‘3.CUSTOMER DETAILS’)
print(‘4.TRANSACTION DETAILS’)
print(‘5.DELETE DETAILS’)
print (‘6.QUIT’)
n=int (input (‘Enter your CHOICE=’))
if n == 1:
acc_no=int (input(‘Enter your ACCOUNT NUMBER=’))
acc_name=input(‘ Enter your ACCOUNT NAME=’)
ph_no=int (input(‘Enter your PHONE NUMBER=’))
add= (input(‘Enter your place=’))
cr_amt=int (input(‘ Enter your credit amount=’))
V_SQLInsert=" INSERT INTO Customer details values (" + str (acc_no) + " , ‘ " +
acc_name + " , ‘ " + str (ph_no) + ", ‘ " + add + ' , "+ str (cr_amt) + " ) "
cur.execute (V_SQLInsert)
print ('Account Created Successfully!!!!!')
conn.commit()
if n == 2:
acct_no=int (input('Enter Your Account Number='))
cur.execute ( 'select * from customer details where acct_no='+str (acct_no) )
data=cur.fetchall ()
count=cur.rowcount
conn. commit ()
print (‘2.TRANSACTION’)
print(‘3.CUSTOMER DETAILS’)
print(‘4.TRANSACTION DETAILS’)
print(‘5.DELETE DETAILS’)
print (‘6.QUIT’)
n=int (input (‘Enter your CHOICE=’))
if n == 2:
acct_no=int (input('Enter Your Account Number='))
cur.execute ( 'select * from customer details where acct_no='+str (acct_no) )
data=cur.fetchall ()
count=cur.rowcount
conn. commit ()
if count == 0:
print(' Account Number Invalid Sorry Try Again Later ')
else:
print(' 1.WITHDRAW AMOUNT ')
print(' 2.ADD AMOUNT ')
x=int (input (' Enter your CHOICE= ' ))
if x == 1:
amt=int (input('Enter withdrawl amount='))
cur.execute('update customer_details set cr_amt = cr_amt-' +str (amt) + ' where
acct_no=' + str (acct no) )
conn. commit ()
print ('Account Updated Succesfully!!!!!')
if x == 2:
amt=int (input('Enter amount to be added='))
cur . execute ('update customer_details set
cr_amt=cr_amt + ' + str (amt) + ' where acct no=' + str (acct_no) )
conn.commit ()
print ('Account Updated Successfully!!!!! ')
if n == 3:
acct_no = int (input('Enter your account number = ')
cur.execute (' select * from customer_details where acct_no= ' + str (acct no) )
if cur.fetchone () is None:
print (' Invalid Account number')
else:
cur.execute('select * from customer_details where acct_no = ' + str (acct
no) )
data = cur.fetchall ()
for row in data:
print ('ACCOUNT NO=' ,acct_no)
print('ACCOUNT NAME=',row [1])
print ('PHONE NUMBER=' ,row [2])
print ('ADDRESS=',row [3])
print ('cr_ amt=' ,row [4])
if n== 4:
acct_no=int (input('Enter your account number='))
print ()
cur.execute (' select * from customer details where acct_no=' + str (acct no) )
ifcur.fetchone () is None:
print ()
print('Invalid Account number')
else:
cur.execute(' select * from transactions where acct_no= ' + str (acct no))
data=cur.fetchall()
for row in data:
print ('ACCOUNT NO=',acct_no)
print ()
print('DATE=',row [1])
print ()
print(' WITHDRAWAL AMOUNT=', row [2])
print ()
print('AMOUNT ADDED=',row [3])
print ()
if n == 5:
print('DELETE YOUR ACCOUNT')
acct_no=int (input(' Enter your account number='))
cur.execute(' delete from customer_details where
acct_no=' + str (acct no) )
print('ACCOUNT DELETED SUCCESFULLY')
if n == 6:
quit ()
print('DATE=',row [1])
print ()
print(' WITHDRAWAL AMOUNT=', row [2])
print ()
print('AMOUNT ADDED=',row [3])
print ()
if n == 5:
print('DELETE YOUR ACCOUNT')
acct_no=int (input(' Enter your account number='))
cur.execute(' delete from customer_details where
acct_no=' + str (acct no) )
print('ACCOUNT DELETED SUCCESFULLY')
if n == 6:
quit ()
MAIN.PY
import mysql.connector as sql
conn=sql.connect (host='localhost' , user='root' ,passwd= 'manager'
database='bank')
cur = conn.cursor ()
#cur. execute ('create table user table (username varchar (25) primarykey ,
passwrdvarchar (25) not null ) ')
print ('1.REGISTER')
print ('2.LOGIN')
n=int (input ('enter your choice=' ))
if n == 1:
name=input('Enter a Username=')
passwd=int (input('Enter a 4 DIGIT Password=' ))
V_SQLInsert="INSERT INTOuser_table (passwrd, username) values (" + str
(passwd) + ", ' " + name + " ') "
cur.execute (V_SQLInsert)
conn. commit ()
print (' USER Created successfully ')
if n==2:
name=input ('Enter your Username=')
passwd=int (input ('Enter your 4 DIGIT Password='))
V_Sql_Sel = "select * from user_table where password =' "+str (passwd) +" '
and username = ' " +name+ " ' "
cur.execute (V_Sql_Sel)
if cur.fetchone () is None:
print (' Invalid username or password')
else:
import main
OUTPUT
CREATE BANK ACCOUNT