Professional Documents
Culture Documents
AMBUJA
VIDYA NIKETAN
DARLAGHAT
COMPUTER SCIENCE
PROJECT
PROJECT ON BANK
MANAGEMENT
SYSTEM
BY: Garvit
SUBMITTED TO: Mr.Vivek
INDEX
1) Certificate
2) Acknowledgement
3) Introduction
4) Hardware Requirements
5) Source code
6) Output
7) Bibliography
CERTIFICATE
#Software Specifications:-
#Hardware Specifications:
i) Processor: Dual core or above
ii) Hard Disk: 40 GB
iii) RAM: 1024 MB
SOURCE CODE
1)import mysql.connector as a
2)con=a.connect(host="localhost",user="root",
passwd="asg5comp",database="bank")
3)def OpenAcc():
3.1)n=input("Enter Your Name:")
3.2)ac=input("Enter Account No:")
3.3)db=input("Enter D.O.B:")
3.4)p=input("Enter Phone:")
3.5)ad=input("Enter Address:")
3.6)ob=int(input("Enter Opening Balance:"))
3.7)data1=(n,ac,db,p,ad,ob)
3.8)data2=(n,ac,ob)
3.9)sql1='insert into account
values(%s,%s,%s,%s,%s,%s)'
3.10)sql2='insert into amount
values(%s,%s,%s)'
3.11)c=con.cursor()
3.12)c.execute(sql1,data1)
3.13)c.execute(sql2,data2)
3.14)con.commit()
3.15)print("Data is Entered Successfully")
main()
4)def depoAmo():
4.1)am=int(input("Enter Amount:"))
4.2)ac=input("Enter Account No:")
4.3)a="select balance from amount where
accno=%s"
4.4)data=(ac,)
4.5)c=con.cursor()
4.6)c.execute(a,data)
4.7)myresult=c.fetchone()
4.8)totalam=myresult[0]+am
4.9)sql="update amount set balance=%s
where accno=%s"
4.10)d=(totalam,ac)
4.11)c.execute(sql,d)
4.12)con.commit()
4.13)print("Amount has been deposited:")
main()
5)def witham():
5.1)am=int(input("Enter Amount:"))
5.2)ac=input("Enter Account No:")
5.3)a="select balance from amount where
accno=%s"
5.4)data=(ac,)
5.5)c=con.cursor()
5.6)c.execute(a,data)
5.7)myresult=c.fetchone()
5.8)totalam=myresult[0]-am
5.9)sql="update amount set balance=%s
where accno=%s"
5.10)d=(totalam,ac)
5.11)c.execute(sql,d)
5.12)con.commit()
5.13)print("Amount has been withdrawn")
main()
6)def balance():
6.1)ac=input("Enter Account No:")
6.2)a="select balance from amount where
accno=%s"
6.3)data=(ac,)
6.4)c=con.cursor()
6.5)c.execute(a,data)
6.6)myresult=c.fetchone()
6.7)print("Balance for
Account:",ac,"is",myresult[0])
main()
7)def dispacc():
7.1)ac=input("Enter Account No:")
7.2)a="select*from account where
accno=%s"
7.3)data=(ac,)
7.4)c=con.cursor()
7.5)c.execute(a,data)
7.6)myresult=c.fetchone()
7.7)for i in myresult:
print(i,end=" ")
main()
8)def closeac():
8.1)ac=input("Enter Account No:")
8.2)sql1="delete from account where
accno=%s"
8.3)sql2="delete from amount where
accno=%s"
8.4)data=(ac,)
8.5)c=con.cursor()
8.6)c.execute(sql1,data)
8.7)c.execute(sql2,data)
8.8)con.commit()
8.9)print("Account Closed Successfully:")
main()
9)def main():
9.1)print("-------BANK TRANSECTION-------")
9.2)print("""
1.OPEN NEW ACCOUNT
2.DEPOSIT MONEY
3.WITHDRAW MONEY
4.BALANCE ENQUIRY
5.DISPLAY CUSTOMER DETAILS
6.CLOSE AN ACCOUNT
""")
9.3)choice=input("Enter Your Choice:")
9.4)if choice=="1":
OpenAcc()
9.6)elif choice=="2":
depoAmo()
9.7)elif choice=="3":
witham()
9.8)elif choice=="4":
balance()
9.9)elif choice=="5":
dispacc()
9.10)elif choice=="6":
closeac()
9.11)else:
print("Wrong Choice Entered....:")
main()
main()
OUTPUT
BIBLIOGRAPHY
1)Computer Science with Python –
Class Xll by : Sumit Arora
2)https://www.w3resource.com
3)https://en.wikipedia.org/wiki/E_
(m athematical_constant)
4) i)https://cbsetoday.com
ii)https://www.academia.edu/