Computer Sci
Computer Sci
Vidya Mandir
TOPIC:- OFFLINE AND ONLINE
TEACHING DURING COVID
Index
1
4. SYSTEM & SOFTWARE 6
5. MAIN PROGRAMME 7-14
6. OUTPUT 15-20
7. SCOPE 21
8. BIBLIOGRAPHY 22
CERTIFICATE
This is to certify that Shubham Shrivastava of
Class 12 ‘Sci’ has successfully completed under
the supervision of Mr. Saurabh Srivastava
during academic year 2024-2025 on the
2
Compute Science project as per the guidelines
ACKNOWLEDGEMENT
I Would like to express my special thanks
to my Typography Teacher Mr. SAURABH
SRIVASTAVA as well as our Principal Sir
Mr. GAUTAM GUPTA who gave me the
golden opportunity to this wonderful
project.
3
Secondly, I would also thanks my parents
and friends who helped me a lot in
finalizing this project within the limited
time frame.
INTRODUCTION
The project is based on Banking Management System
In this project we have selected the python coding
language. This project works just like the software that
we use in the bank. We have added many features in
this project. The project offers the user to do the
following: -
> Adding the multiple customer account in the bank
> Adding the single customer account in the bank
4
> Checking the balance of a particular customer
> Depositing the money in customer account
> Seeing the information of a particular customer
that kept with the bank
> Can applying for a loan
> Deleting account of the customer from the bank
> Updating the customer information that kept with
the bank
The project used the pickle module which is the built
in module. In the pickle module we save the data in the
binary format.
5
SOFTWARE:
• Edition Windows 11 Home Single Language
• Python 3.12.5 IDLE
•Version: 24H2
•OS build: 26100.2605
•Experience: Windows Feature Experience Pack
1000.26100.36.0
MAIN PROGRAME
import pickle
def make():
with open("Bank.dat","wb") as f1:
ac={}
while True:
ind={}
ind["name"]=input("ENTER THE NAME : ")
ind["account_no"]=int(input("ENTER THE ACCOUNT NUMBER : "))
ind["mobile_no"]=int(input("ENTER THE MOBILE NUMBER : "))
6
ind["balance"]=int(input("ENTER THE BALANCE OF YOUR ACCOUNT: "))
ind["address"]=input("ENTER THE PERMANENT ADDRESS : ")
ind["job"]=input("WHETHER YOUR JOB IS PERMANENT OR TEMPORARY :")
ind["loan_taken"]=int(input("ENTER THE LOAN AMOUNT :"))
ac[str(ind["account_no"])]=ind
ch=input("IF YOU WANT TO EXIT PRESS 'N/n' ")
if(ch in"nN"):
break
pickle.dump(ac,f1)
def add():
with open("Bank.dat","rb") as f1:
a=pickle.load(f1)
while True:
ind={}
ind["name"]=input("ENTER THE NAME : ")
ind["account_no"]=int(input("ENTER THE ACCOUNT NUMBER : "))
ind["mobile_no"]=int(input("ENTER THE MOBILE NUMBER : "))
ind["balance"]=int(input("ENTER THE BALANCE OF YOUR ACCOUNT : "))
ind["address"]=input("ENTER THE PERMANENT ADDRESS : ")
ind["job"]=input("WHETHER YOUR JOB IS PERMANENT OR TEMPORARY :")
ind["loan_taken"]=int(input("ENTER THE LOAN AMOUNT : "))
a[str(ind["account_no"])]=ind
ch=input("IF YOU WANT TO EXIT PRESS 'N/n' ")
if(ch in "nN"):
break
with open("Bank.dat","wb") as f1:
7
pickle.dump(a,f1)
print("YOUR ACCOUNT IS ADDED ")
def check_balance():
with open("Bank.dat","rb") as f1:
account=input("ENTER YOUR ACCOUNT NUMBER : ")
a=pickle.load(f1)
if(account in a):
print("YOUR CURRENT BALANCE AMOUNT IS :",a[account]["balance"])
else:
print("INVALID ACCOUNT NO ")
def deposit_money():
with open("Bank.dat","rb") as f1:
a=pickle.load(f1)
acc=input("ENTER YOUR ACCOUNT NUMBER : ")
amount=int(input("ENTER THE AMOUNT : "))
if(acc in a):
a[acc]["balance"]=a[acc]["balance"]+amount
else:
print("INVALID ACCOUNT NUMBER")
with open("Bank.dat","wb") as f1:
pickle.dump(a,f1)
print("YOUR AMOUNT IS SUCCESSFULLY DEPOSITED ")
def inf():
with open("Bank.dat","rb") as f1:
a=pickle.load(f1)
acc=input("ENTER YOUR ACCOUNT NUMBER : ")
8
if (acc in a):
print("YOUR ACCOUNT \n")
for i in a[acc]:
print(i,":",a[acc][i])
else:
print("INVALID ACCOUNT NUMBER")
def loan_apply():
print("YOU CAN APPLY FOR LOAN ONLY IF YOUR PREVIOUS LOAN IS LESS
THAN OR EQUAL TO 1000000")
print("YOU MUST HAVE A PERMANENT JOB")
with open("Bank.dat","rb") as f1:
a=pickle.load(f1)
acc=input("ENTER YOUR ACCOUNT NUMBER: ")
if(acc in a):
if((a[acc]["job"]).lower()=="permanent"):
if(a[acc]["loan_taken"]<=1000000):
x=int(input("ENTER THE LOAN AMOUNT : "))
a[acc]["loan_taken"]=a[acc]["loan_taken"]+x
print("YOUR LOAN IS APPROVED")
else:
print("YOUR PREVIOUS LOAN IS MORE THAN 1000000 ")
else:
print("YOUR JOB IS NOT PERMANENT ")
else:
print("INVALID ACCOUNT NUMBER")
with open("Bank.dat","wb") as f1:
pickle.dump(a,f1)
9
def delete():
with open("Bank.dat","rb") as f1:
a=pickle.load(f1)
acc=input("ENTER THE ACCOUNT NUMBER : ")
if(acc in a):
del a[acc]
else:
print("INVALID ACCOUNT NUMBER")
with open("Bank.dat","wb") as f1:
pickle.dump(a,f1)
print("YOUR ACCOUNT IS DELETED")
def update():
print("YOU CAN ONLY CHANGE MOBILE NO , ADDRESS AND JOB STATUS")
print("""FOR MOBILE NO PRESS 1
FOR ADDRESS PRESS 2
FOR JOB STATUS PRESS 3""")
x=int(input("ENTER YOUR CHOICE : "))
with open("Bank.dat","rb") as f1:
a=pickle.load(f1)
acc=input("ENTER YOUR ACCOUNT NUMBER : ")
if(acc in a):
if(x==1):
a[acc]["mobile_no"]=int(input("ENTER YOUR NEW MOBILE NUMBER : "))
print("YOUR MOBILE NUMBER IS UPDATED")
elif(x==2):
a[acc]["address"]=input("ENTER YOUR NEW ADDRESS : ")
10
print("YOUR ADDRESS IS UPDATED")
elif(x==3):
a[acc]["job"]=input("ENTER YOUR NEW JOB STATUS : ")
print("YOUR JOB STATUS IS UPDATED")
else:
print("YOU HAVE ENTER INVALID NUMBER ")
else:
print("INVALID ACCOUNT NUMBER")
with open("Bank.dat","wb") as f1:
pickle.dump(a,f1)
print("===========================================================
=======")
print(" #BANKING MANAGEMENT SYSTEM# ")
print(" STATE BANK OF INDIA WELCOMES YOU")
print("===========================================================
=======")
while True:
print("""PRESS 0 FOR ADDING MULTIPLE ACCOUNT IN THE BANK
PRESS 1 FOR ADDING SINGLE ACCOUNT IN THE BANK
PRESS 2 FOR CHECKING BALANCE OF A PARTICULAR CUSTOMER
PRESS 3 FOR DEPOSIT MONEY IN THE PARTICULAR CUSTOMER ACCOUNT
PRESS 4 FOR SEEING YOUR INFORMATION THAT IS KEPT WITH BANK
PRESS 5 FOR APPLYING FOR LOAN
PRESS 6 FOR DELETING ACCOUNT FROM OUR BANK
PRESS 7 FOR UPDATING ACCOUNT INFORMATION OF CUSTOMER
PRESS 8 FOR EXITING FROM THE BANKING MANAGEMENT SYSTEM """)
x=int(input("Enter your choice : "))
11
if(x==0):
make()
elif(x==1):
add()
print("===========================================================
=======")
elif(x==2):
check_balance()
print("===========================================================
=======")
elif(x==3):
deposit_money()
print("===========================================================
=======")
elif(x==4):
inf()
print("===========================================================
=======")
elif(x==5):
loan_apply()
print("===========================================================
=======")
elif(x==6):
delete()
12
print("===========================================================
=======")
elif(x==7):
update()
print("===========================================================
=======")
elif(x==8):
print("THANK YOU FOR BEING A CUSTOMER OF OUR BANK")
print("===========================================================
=======")
break
else:
print("YOU HAVE ENTERED A INVALID NUMBER")
print("===========================================================
=======")
13
OUTPUT
START
14
OPTION 0
OPTION 1
15
OPTION 2
OPTION 3
OPTION 4
16
OPTION 5
CASE A)
17
CASE B)
OPTION 6
OPTION 7
18
OPTION 8
19
SCOPE
• Adding GUI will make this project even more useful.
• The project could also be REDEVLOPED so that it is more
efficient and powerful.
• Project could also be made more powerful by using
multiple languages.
• Other features like ADMIN ACCESS could also be included
• Voice inputs and outputs
• Language selection (Hindi, Tamil etc.)
• Use of Biometrics password or face password.
20
BIBLIOGRAPHY
INTERNET:
• W3schools
• Stackexchange
• Pythonhub
• Github
• Greeksforgreeks
• Projectidea
• Techhub
• Quora
• Python (official)
BOOKS:
• Computer science with PYTHON
• Learning python the hard way
• NCERT
21