ACADEMIC YEAR: 2024-25
SUBJECT: COMPUTER SCIENCE (083)
PROJECT REPORT ON
STUDENT RECORD MANAGEMENT SYSTEM
Submitted by: Ishaan Agarwal
Admission Number: 13480
Class: XII(X)
Board Roll Number: ____________________
CERTIFICATE
This is to certify that Ishaan Agarwal, from XII(A), bearing board
roll number ___________________ has successfully completed
the project work entitled “Student Record Management
System” in Python under the guidance of Mrs. Rajani Trivedi
(subject teacher) during the session 2023-24 in partial
fulfilment of Computer Science (083) practical Examination
conducted by AISSCE, New Delhi.
Internal Examiner External Examiner
ACKNOWLEDGEMENT
It would be my utmost pleasure to express my sincere
gratitude to my Computer Science Teacher Mr. Rajini
Trivedi for providing a helping hand in this project. His
valuable guidance, support and supervision all
through the making of this is presentable in the form
of this project.
TABLE OF CONTENT
SL CONTENT
1 SOURCE CODE
2 OUTPUT
3 HARDWARE-SOFTWARE REQUIREMENT
4 BIBILIOGRAPHY
SOURCE CODE
#Python Project on Customers Record Management
#[CustNo, Name, MobileNo, City]
import pickle
import os
import sys
#******************************************************#
def create_rec():
f=open("Customer.dat", 'wb')
L=[]
while True:
CustNo =int(input("\nEnter Customer Number of Student: "))
Name=input("Enter name of Customer: ").upper()
MobileNo = float(input("Enter the MobileNo: "))
City =input("Enter City of Customer: ").upper()
L.append([CustNo, Name, MobileNo, City])
ch=input("Do you want to enter more records?(Y/N) ")
if ch in 'yY':
continue
else:
break
pickle.dump(L, f)
f.close()
#******************************************************#
def display_all():
try:
f=open("Customer.dat", "rb")
Recs=pickle.load(f)
for R in Recs:
print(R)
f.close()
except EOFError:
print('Empty file')
except FileNotFoundError:
print('File not found')
#******************************************************#
def search_Customer():
try:
f=open("Customer.dat", 'rb')
A=int(input("Enter Customer No to search: "))
flag=False
Recs=pickle.load(f)
for R in Recs:
if R[0]==A:
print(R)
flag=True
break
f.close()
if not flag:
print('No record found')
except EOFError:
print('Empty file')
except FileNotFoundError:
print("File not found")
#******************************************************#
def search_City(S):
try:
f=open("Customer.dat", 'rb')
flag=False
Recs=pickle.load(f)
for R in Recs:
if R[3]==S:
print(R)
flag=True
if not flag:
print('No record found')
f.close()
except EOFError:
print('Empty file')
except FileNotFoundError:
print("File not found")
#******************************************************#
def update_MobileNo():
try:
f=open("Customer.dat", 'rb')
A=int(input("Enter Customer number for update: "))
flag=False
Recs=pickle.load(f)
for R in Recs:
if R[0]==A:
R[2]=float(input('Enter updated Mobile No: '))
flag=True
f.close()
if not flag:
print('No record found')
else:
f=open(' Customer.dat', 'wb')
pickle.dump(Recs, f)
print('File updated')
f.close()
except EOFError:
print('Empty file')
except FileNotFoundError:
print("File not found")
#******************************************************#
def delete_rec():
try:
f=open("Customer.dat", 'rb')
A=int(input("Enter Customer number to delete: "))
flag=False
Recs=pickle.load(f)
L=[]
for R in Recs:
if R[0]==A:
flag=True
else:
L.append(R)
f.close()
if not flag:
print('No record found')
else:
f=open(' Customer.dat', 'wb')
pickle.dump(L, f)
print('Record deleted')
f.close()
except EOFError:
print('Empty file')
except FileNotFoundError:
print("File not found")
#******************************************************#
def exit_r():
print("\n")
sys.exit("\nExit from PROJECT\nThank you\n\n")
#******************************************************#
while True:
print("\n\n")
print("\t\tMAIN MENU")
print("*********************************************")
print("1. Create Record")
print("2. Display Record")
print("3. Search Customer Number")
print("4. Search City")
print("5. Update Record (Mobile no)")
print("6. Delete Record")
print("7. Exit from Project")
print("*********************************************")
choice=int(input("Enter your choice between 1 to 8---->"))
if choice==1:
create_rec()
elif choice==2:
display_all()
elif choice==3:
search_CustNo()
elif choice==4:
S=input("Enter City to search: ").upper()
search_City(S)
elif choice==5:
update_MobileNo()
elif choice==6:
delete_rec()
elif choice==7:
exit_r()
else:
print("\nWrong Choice!\n\nTry again")
#******************************************************#
#END OF PROJECT
OUTPUT
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Customer Number
4. Search City
5. Update Record (Mobile No)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->1
Enter Customer Number of Student: 100
Enter name of Customer: RAVI
Enter the Mobile No: 6875646311
Enter city of Customer: CUTTACK
Do you want to enter more records?(Y/N) Y
Enter Customer Number of Student: 101
Enter name of Customer: PRIYA
Enter the Mobile No: 9668767091
Enter city of Customer: CUTTACK
Do you want to enter more records?(Y/N) Y
Enter Customer Number of Student: 102
Enter name of Customer: ASHISH
Enter the Mobile No: 8594686932
Enter city of Customer: BHUBANESWAR
Do you want to enter more records?(Y/N) Y
Enter Customer Number of Student: 103
Enter name of Customer: NILAM
Enter the Mobile No: 5766844560
Enter city of Customer: PURI
Do you want to enter more records?(Y/N) N
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Customer Number
4. Search City
5. Update Record (Mobile No)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->2
[100, 'RAVI', 6875646311, CUTTACK]
[101, 'PRIYA', 9668767091, CUTTACK]
[102, 'ASHISH', 8594686932, ' BHUBANESWAR ']
[103, 'NILAM', 5766844560, 'HUMANITIES']
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Customer Number
4. Search City
5. Update Record (Mobile No)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->3
Enter Customer No to search: 345
No record found
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Customer Number
4. Search City
5. Update Record (Mobile No)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->3
Enter Customer No to search: 101
[101, 'PRIYA', 9668767091, 'CUTTACK']
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Customer Number
4. Search City
5. Update Record (Mobile No)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->4
Enter City to search: science
[100, 'RAVI', 6875646311, ' CUTTACK ']
[101, 'PRIYA', 9668767091, ' CUTTACK ']
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Customer Number
4. Search City
5. Update Record (Mobile No)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->5
Enter Customer number for update: 101
Enter updated Mobile No: 7594760375
File updated
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Customer Number
4. Search City
5. Update Record (Mobile No)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->2
[100, 'RAVI', 6875646311, ' CUTTACK ']
[101, 'PRIYA', 7594760375, ' CUTTACK ']
[102, 'ASHISH', 8594686932, ' BHUBANESWAR ']
[103, 'NILAM', 5766844560, ' PURI ']
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Customer Number
4. Search City
5. Update Record (Mobile No)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->6
Enter Customer number to delete: 101
Record deleted
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Customer Number
4. Search City
5. Update Record (Mobile No)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->2
[100, 'RAVI', 6875646311, ' CUTTACK ']
[102, 'ASHISH', 8594686932, ' BHUBANESWAR ']
[103, 'NILAM', 5766844560, ' PURI ']
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Customer Number
4. Search City
5. Update Record (Mobile No)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->6
Enter Customer number to delete: 1001
No record found
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Customer Number
4. Search City
5. Update Record (Mobile No)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->9
Wrong Choice!
Try again
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Customer Number
4. Search City
5. Update Record (Mobile No)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->7
SystemExit:
Exit from PROJECT
Thank you
HARDWARE AND SOFTWARE
REQUIREMENTS
Python when used for this program is not very resource
intensive. Any computer assembled in the last 10 years or so
will be able to meet the minimum necessary hardware and
software requirements.
Below are the recommended system requirements:
WINDOWS 7+/
OPERATING SYSTEM LINUX V3+/
MACOS V16+
INTEL CORE I3+/
PROCESSOR
RYZEN 3+
RAM 4 GB+
EMPTY DISK SPACE 5 GB+
SOFTWARE PYTHON 3.X.X
BIBILIOGRAPHY
Computer Science with Python (Class XII) by Sumita Arora
www.w3schools.com
www.programiz.com
www.geeksforgeeks.org