Professional Documents
Culture Documents
Naman Project Report
Naman Project Report
Naman Project Report
A PROJECT REPORT ON
BANK MANAGEMENT SYSTEM
…………………………………. ……………………………………...
(Signature of teacher) (Signature of Principal)
Name: Ms. Nidhi Agarwal Name: Ms. Sheena Yadav
Designation: PGT (CS/IP)
Place: ………………………………………………………………………
Date: ……………………………………..
ACKNOWLEDGEMENT
I undertook this project as the part of our 12th
computer science course. I had tried to apply my best
knowledge and experience. However, developing a
project is generally a quite complex and time-
consuming process. It requires a systematic study,
insight vision and professional approach during the
design and development. Moreover, the developer
always feels the need, help and the good wishes of the
people near you, who have considerable experience
and idea.
TABLE OF CONTENTS:
➢ Introduction
➢ Coding
➢ Outputs
INTRODUCTION
It can add new accounts and edit the existing ones and it
also helps in viewing the details of the customer either by name
or by their account number. It helps in the deposition or
withdrawal of money from an account and also helps in
modifying the incorrect data of an account of the customer and
closing an account.Also to create KYC a person need to enter
either of following documents- Voting Id Card, Aadhar
Number,Driving License,Pan Card.
LIBRARIES USED AND THEIR PURPOSE
elif choice==2:
try:
query="select * from ACCOUNT_REGISTRY "
cur.execute(query)
detail=cur.fetchall()
print(tabulate(detail,tablefmt="psql"))
except:
print("Error in Displaying details")
elif choice==3:
try:
no=input("Enter Account Number to Display")
query="select * from ACCOUNT_REGISTRY where accno="+no
cur.execute(query)
myrecord=cur.fetchone()
print("Record of Account number :"+no)
print(myrecord)
c=cur.rowcount
if c==-1:
print("Account not found ")
except:
print("Error in Displaying account details")
elif choice==4:
try:
ch=input("Do you want to delete All Records (Y/N)")
if ch=='Y':
query="truncate table ACCOUNT_REGISTRY"
cur.execute(query)
con.commit()
print(" All Records Deleted")
except:
print("Error in Deleting Records")
elif choice==5:
try:
no=input("Enter Account Number to Delete")
query="delete from ACCOUNT_REGISTRY where accno="+no
cur.execute(query)
con.commit()
c=cur.rowcount
if c>=0:
print("account Deleted ")
except:
print("Error in Deleting record")
elif choice==6:
try:
no=input("Enter Account Number to Modify")
query="select * from ACCOUNT_REGISTRY where accno= "+no
cur.execute(query)
myrecord=cur.fetchone()
c=cur.rowcount
if c==-1:
print("Account Number "+no+" does not exist")
else:
name=myrecord[1]
typ=myrecord[3]
username=myrecord[2]
bal=myrecord[4]
ag=myrecord[5]
print(type(myrecord[5]))
print("AccNO : ",myrecord[0])
print("NAME : ",myrecord[1])
print("USERNAME : ",myrecord[2])
print("AccType : ",myrecord[3])
print("Balance : ",myrecord[4])
print("AGE : ",myrecord[5])
print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
print("ENTER THE NEW VALUE FOR CHANGE OR JUST LEAVE
AND PRESS ENTER")
x=input("Enter new name or leave")
if len(x)>0:
name=x
y=input("Enter new Account Type or leave ")
if len(y)>0:
typ=y
z=input("Enter new username or leave")
if len(z)>0:
username=z
b=input("Enter new age or leave")
if len(b)>0:
ag=int(b)
query='update ACCOUNT_REGISTRY
setname='+"'"+name+"'"+','+'acctype='+"'"+typ+"'"+','+'username='+"
'"+username+"'"+','+' age='+str(ag)+' where accno=' +no
print(query)
cur.execute(query)
con.commit()
print("details modified")
except Exception as e:
print("error in modifying")
print(e)
elif choice==7:
try:
no=input("Enter Account Number ")
query="select * from ACCOUNT_REGISTRY where accno= "+no
cur.execute(query)
myrecord=cur.fetchone()
c=cur.rowcount
if c==-1:
print("Account Number "+no+" does not exist")
else:
amount=int(input("Enter amount to deposit"))
bal=amount+int(myrecord[4])
query='update ACCOUNT_REGISTRY set balance=%s
where '+\
'accno=%s'
rec=(bal,no)
cur.execute(query,rec)
con.commit()
print("Amount Deposited in account no",no)
except:
print("error in Depositing Amount")
elif choice==8:
try:
no=input("Enter Account Number ")
query="select * from ACCOUNT_REGISTRY where accno= "+no
cur.execute(query)
myrecord=cur.fetchone()
c=cur.rowcount
if c==-1:
print("Account Number "+no+" does not exist")
else:
amount=int(input("Enter amount to withdraw"))
if amount<myrecord[4]:
bal=int(myrecord[4])- amount
if bal>1000:
query='update ACCOUNT_REGISTRY set balance=%s
where '+\
'accno=%s'
rec=(bal,no)
cur.execute(query,rec)
con.commit()
print("Amount Withdrawn")
else:
print("insufficient balance so cant withdraw ")
else:
print("amount to be withdrawn greater than your balance
available")
except:
print("error in Withdrawing Amount")
elif choice==9:
no=input("Enter Your Account Number")
query="select * from ACCOUNT_REGISTRY where accno= "+no
cur.execute(query)
myrecord=cur.fetchone()
c=cur.rowcount
if c==-1:
print("Account Number "+no+" does not exist")
else:
if myrecord[6]=='not done':
print('For KYC you need to provide details from one of these
government id')
print('Press 1 for Aadhar Card')
print('Press 2 for Voter Id Card')
print('Press 3 for Pan Card')
print('Press 4 for Driving License')
print('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>')
cho=int(input("Enter your choice :- "))
if cho==1:
ad=int(input("Aadhar Number :- "))
cur.execute('update ACCOUNT_REGISTRY set
kyc='+str(ad)+' where '+\
'accno='+no)
con.commit()
print("KYC Done")
elif cho==2:
vi=int(input("Voter Id Number :- "))
cur.execute('update ACCOUNT_REGISTRY set
kyc='+str(vi)+' where '+\
'accno='+no)
con.commit()
print("KYC Done")
elif cho==3:
pc=int(input("Pan Card Number :- "))
cur.execute('update ACCOUNT_REGISTRY set
kyc=+'+str(pc)+' where '+\
'accno='+no)
con.commit()
print("KYC Done")
elif ch==4:
dl=int(input("Driving License Number :- "))
cur.execute('update ACCOUNT_REGISTRY set
kyc='+str(dl)+' where '+\
'accno='+no)
con.commit()
print("KYC Done")
else:
print('Wrong Choice')
else:
print("kyc already done")
elif choice==0:
break
OUTPUTS
1. INITIAL SCREEN
6. MODIFY RECORD
7. DELETE RECORD
8. DEPOSIT MONEY
9. WITHDRAW MONEY
10. ADD KYC
THANK YOU