Computer Pratical
Computer Pratical
1
S.NO. CONTENT PAGE TEACHER
NO. SIGN
1. CERTIFICATE 3
2. ACKNOWLEDGEMENT 4
3. INTRODUCTION 5
4. SYSTEM & SOFTWARE 6
5. MAIN PROGRAMME 7-14
6. OUTPUT 15-20
7. SCOPE 21
8. BIBLIOGRAPHY 22
2
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
Compute Science project as per the guidelines
issued by Central Board of Secondary
Education (CBSE).
……………………………… ……….……………………….
Mr. SAURABH SRIVASTAVA EXTERNAL EXAMINER
(INTERNAL EXAMINER)
3
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.
5
SYSTEM & SOFTWARE
SYSTEM:
• Processor: 12th Gen Intel(R) Core (TM) i5-1235U 1.30 GHz
• Installed RAM: 16.0 GB
• System type: 64-bit operating system, x64-based processor
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
6
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 : "))
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={}
7
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:
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 : ")
8
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 : ")
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"):
9
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)
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
10
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 : ")
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")
11
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 : "))
if(x==0):
make()
elif(x==1):
add()
print("===========================================================
=======")
elif(x==2):
check_balance()
print("===========================================================
=======")
elif(x==3):
deposit_money()
12
print("===========================================================
=======")
elif(x==4):
inf()
print("===========================================================
=======")
elif(x==5):
loan_apply()
print("===========================================================
=======")
elif(x==6):
delete()
print("===========================================================
=======")
elif(x==7):
update()
print("===========================================================
=======")
elif(x==8):
print("THANK YOU FOR BEING A CUSTOMER OF OUR BANK")
print("===========================================================
=======")
break
else:
13
print("YOU HAVE ENTERED A INVALID NUMBER")
print("===========================================================
=======")
14
START
OPTION 0
15
OPTION 1
OPTION 2
16
OPTION 3
OPTION 4
17
OPTION 5
CASE A)
CASE B)
18
OPTION 6
OPTION 7
19
OPTION 8
20
• 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.
21
BIBLIOGRAPHY
INTERNET:
• W3schools
• Stackexchange
• Pythonhub
• Github
• Greeksforgreeks
• Projectidea
• Techhub
• Quora
• Python (official)
BOOKS:
• Computer science with PYTHON
• Learning python the hard way
• NCERT
22