Chemistry
Chemistry
COMPUTER SCIENCE
PROJECT ON:
“BANK MANAGEMENT SYSTEM”
This is to certify that Master ARUL KUMAR a student Of class 12th A science
has successfully completed the project “Bank Management System” under
guidance of Mrs. KAJAL ( PGT-COMPUTER SCIENCE). During the academic year
2024-25.
SIGN OF PRINCIPAL:
ACKNOWLEDGEMENT
I would like to express my special thanks of gratitude to my
teacher Mrs. Kajal as well as our principal sir, who gave me
the golden opportunity to do this wonderful project.
SIGNATURE OF STUDENT:
INDEX
SR NO. CONTENTS PAGE NO.
1. INTRODUCTION 5-7
i. ABOUT PYTHON 5
ii. ABOUT MYSQL 6
iii. ABOUT BANK MANAGEMENT
SYSTEM 7
INTRODUCTION
ABOUT PYTHON:
Python is an interpreted, object oriented, high level
programming language with dynamic semantics. It’s high
level built in data structures, combined with dynamic typing
dynamic binding, make it attractive for rapid application
development, as well as for use as a scripting or glue
language to connect existing components together. Python’s
simple, easy to learn syntax emphasises readability and
therefore reduces the cost of program maintenance. Python
supports modules and packages, which encourages program
modularity and code reuse. The python interpreter and the
extensive standard library are available in source or binary
form without charge for all major platforms, and can be
freely distributed.
ABOUT MYSQL:
MySQL is a fast, easy-to-use RDBMS being used fir many
small and big businesses. MySQL is developed, marketed and
supported by MySQL AB, which is a Swedish company.
MySQL is becoming so popular because of many reasons:-
● MySQL is released under an open-source license. So you
have nothing to pay to use it.
SOURCE CODE
import mysql.connector
cursor.execute(query, values)
conn.commit()
conn.close()
account = cursor.fetchone()
if account:
print(f"Account No: {account[0]}")
print(f"Account Holder Name: {account[1]}")
print(f"Account Type: {account[2]}")
print(f"Balance: {account[3]}\n")
else:
print("Account not found!\n")
conn.close()
conn.close()
if account:
if account[0] >= amount:
new_balance = account[0] - amount
update_query = "UPDATE accounts SET balance = %s
WHERE acc_no = %s"
cursor.execute(update_query, (new_balance, acc_no))
conn.commit()
print("Amount withdrawn successfully!\n")
else:
print("Insufficient balance!\n")
else:
print("Account not found!\n")
conn.close()
if cursor.rowcount > 0:
print("Account deleted successfully!\n")
else:
print("Account not found!\n")
conn.close()
# Main Menu
def main():
while True:
print("\t\t\t\t**********************")
print("\t\t\t\tBank Management System")
print("\t\t\t\t**********************")
print("1. Create a new account")
print("2. View account details")
print("3. Deposit money")
print("4. Withdraw money")
print("5. Delete account")
print("6. Exit")
if choice == '1':
create_account()
elif choice == '2':
view_account()
elif choice == '3':
deposit_amount()
elif choice == '4':
withdraw_amount()
elif choice == '5':
delete_account()
elif choice == '6':
print("Thank you\nVisit Again!")
break
else:
print("Invalid choice! Please try again.\n")
OUTPUT
BIBLIOGRAPHY
BOOKS:
SUMITA ARORA-COMPUTER SCIENCE WITH PYTHON
WEBSITES:
https://www.python.org
https://www.wikipedia.org
https://www.w3schools.com