Professional Documents
Culture Documents
Srno. Content
1. Certificate of excellence
2. Acknowledgement
3 Objective
5. Working Description
6. Coding
7. Output
8. Bibliography
Certi cate
This is to certify that Anurag kr. Singh of class XII
has successfully completed the investigatory project on
the below mentioned project under the guidance of
Nandlal Mahto [sub. Teacher (CSc.)] during the
session 2022-23 in the partial fulfillment of the
Computer Science practical examination conducted by
CBSE.
_______________________
External Signature
Acknowledgment
Merits:-
1. Better management of data
2. Easy Fee Management
3. Save Cost
4. Improves Overall Teacher Productivity
Demerits:-
1. User Interface
2. Requires good internet facility
3. User Requirements
4. Risk of data mishandling
WORKING DESCRIPTION
[6.] Exit
CODING
import pickle
def insert_rec( ):
record = [ ]
while True:
rno=raw_input("Enter Roll No. of the
Student :-> ")
nm=raw_input("Enter Name of the
Student :-> " )
mks=int(input("Enter Marks of the
Student :-> "))
data = [rno, nm, mks ]
record.append(data)
ch=raw_input("\nWant to enter more
records (Y/N) ? : ")
if ch.upper()=='Y':
continue
else:
break
fout=open("stud.txt","wb")
pickle.dump(record,fout)
print("\nRecord Added...")
fout.close()
def read_rec( ) :
fin=open("stud.txt", "rb")
stud_rec=pickle.load(fin)
print("\nContent of Student File are .....")
for r in stud_rec:
roll_no = r[0]
name = r[1]
marks = r[2]
print(roll_no, "\t",name,"\t", marks)
fin.close()
def search_rec( ):
fin=open("stud.txt","rb")
stud_rec=pickle.load(fin)
found=0
rn=raw_input("Enter roll no. to be searched
for -> ")
for r in stud_rec:
if r[0]==rn:
print("Sucessfull Search ", r[1], "Found
!!! ")
found=1
break
if found==0:
print("Sorry , Record Not Found...")
fin.close()
def modify_rec( ):
f=open("stud.txt","rb+")
stud_rec = pickle.load(f)
found = 0
rno = raw_input("Enter roll no. to be
Modified -> ")
for r in stud_rec:
if r[0] == rno:
print("Current name of the student is
",r[1] )
r[1] = raw_input("Enter new name : ")
print("Old marks of the student is ",r[2]
)
r[2] = raw_input("Enter new marks : ")
found = 1
break
if found == 1:
f.seek(0)
pickle.dump(stud_rec,f)
print("Record updated !!! ")
else:
print("Record not found")
f.close()
def del_rec():
f=open("stud.txt","rb")
stud_rec = pickle.load(f)
temp_list = [ ]
found = 0
f.close()
rno = raw_input("Enter roll no. to be deleted
-> ")
for r in stud_rec:
if r[0] == rno:
found = 1
continue
else:
temp_list.append(r)
if found == 1:
f=open("stud.txt","wb")
pickle.dump(temp_list,f)
print("Record deleted !!! ")
else:
print("Record not found")
f.close()
print("="*70)
print(" PROGRAM TO IMPLEMENT
VARIOUS OPERATIONS ON EMPLOYEE
DATABASE")
print("="*70)
while True:
print("\n")
print("[1.] To Insert a Record ->")
print("[2.] To Display All Records -> ")
print("[3.] To Search a Record -> ")
print("[4.] To Modify a Record -> ")
print("[5.] To Delete a Record -> ")
print("[6.] Exit")
WELCOME SCREEN
TO INSERT A RECORD
Record Added…
TO SEARCH A RECORD
TO MODIFY A RECORD
TO DELETE A RECORD
Internet-www.wikipedia
.com,www.encyclopedia.
com,www.google.com.
NCERT COMPUTER
SCIENCE Textbook