0% found this document useful (0 votes)
13 views20 pages

Computer Science, Sample Project-XII

The document is a project report for a Student Record Management System created in Python, submitted by a student in Class XII as part of their Computer Science practical examination. It includes sections such as source code, output, hardware-software requirements, and bibliography. The project allows users to create, display, search, update, and delete student records efficiently.

Uploaded by

dharshita9171
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views20 pages

Computer Science, Sample Project-XII

The document is a project report for a Student Record Management System created in Python, submitted by a student in Class XII as part of their Computer Science practical examination. It includes sections such as source code, output, hardware-software requirements, and bibliography. The project allows users to create, display, search, update, and delete student records efficiently.

Uploaded by

dharshita9171
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 20

ACADEMIC YEAR: 2024-25

SUBJECT: COMPUTER SCIENCE (083)

PROJECT REPORT ON
STUDENT RECORD MANAGEMENT SYSTEM

Submitted by: XXXXXXXXXX


Admission Number: XXXXX
Class: XII(X)
Board Roll Number: ____________________
CERTIFICATE
This is to certify that XXXXXXXXXX, from XII(X), 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
TABLE OF CONTENT
SL CONTENT

1 SOURCE CODE

2 OUTPUT

3 HARDWARE-SOFTWARE REQUIREMENT

4 BIBILIOGRAPHY
SOURCE CODE
#Python Project on Student Data
#[adm, name, percentage, stream]

import pickle
import os
import sys

#******************************************************#
def create_rec():
f=open("Student.dat", 'wb')
L=[]
while True:
Adm=int(input("\nEnter Adm Number of Student: "))
Name=input("Enter name of student: ").upper()
Percent = float(input("Enter the percentage: "))
Stream=input("Enter steram of student: ").upper()
L.append([Adm, Name, Percent, Stream])
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("Student.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_Adm():
try:
f=open("Student.dat", 'rb')
A=int(input("Enter Adm 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_Stream(S):
try:
f=open("Student.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_percent():
try:
f=open("Student.dat", 'rb')
A=int(input("Enter Adm number for update: "))
flag=False
Recs=pickle.load(f)
for R in Recs:
if R[0]==A:
R[2]=float(input('Enter updated percent: '))
flag=True
f.close()
if not flag:
print('No record found')
else:
f=open('Student.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("Student.dat", 'rb')
A=int(input("Enter Adm 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('Student.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 Admission Number")
print("4. Search Stream")
print("5. Update Record (Percentage)")
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_Adm()
elif choice==4:
S=input("Enter stream to search: ").upper()
search_Stream(S)
elif choice==5:
update_percent()
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 Admission Number
4. Search Stream
5. Update Record (Percentage)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->1

Enter Adm Number of Student: 100


Enter name of student: RAVI
Enter the percentage: 95
Enter steram of student: SCIENCE
Do you want to enter more records?(Y/N) Y

Enter Adm Number of Student: 101


Enter name of student: PRIYA
Enter the percentage: 96
Enter steram of student: SCIENCE
Do you want to enter more records?(Y/N) Y

Enter Adm Number of Student: 102


Enter name of student: ASHISH
Enter the percentage: 95.5
Enter steram of student: COMMERCE
Do you want to enter more records?(Y/N) Y

Enter Adm Number of Student: 103


Enter name of student: NILAM
Enter the percentage: 94
Enter steram of student: HUMANITIES
Do you want to enter more records?(Y/N) N
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Admission Number
4. Search Stream
5. Update Record (Percentage)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->2
[100, 'RAVI', 95.0, 'SCIENCE']
[101, 'PRIYA', 96.0, 'SCIENCE']
[102, 'ASHISH', 95.5, 'COMMERCE']
[103, 'NILAM', 94.0, 'HUMANITIES']

MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Admission Number
4. Search Stream
5. Update Record (Percentage)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->3
Enter Adm No to search: 345
No record found
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Admission Number
4. Search Stream
5. Update Record (Percentage)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->3
Enter Adm No to search: 101
[101, 'PRIYA', 96.0, 'SCIENCE']

MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Admission Number
4. Search Stream
5. Update Record (Percentage)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->4
Enter stream to search: science
[100, 'RAVI', 95.0, 'SCIENCE']
[101, 'PRIYA', 96.0, 'SCIENCE']
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Admission Number
4. Search Stream
5. Update Record (Percentage)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->5
Enter Adm number for update: 101
Enter updated percent: 92
File updated

MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Admission Number
4. Search Stream
5. Update Record (Percentage)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->2
[100, 'RAVI', 95.0, 'SCIENCE']
[101, 'PRIYA', 92.0, 'SCIENCE']
[102, 'ASHISH', 95.5, 'COMMERCE']
[103, 'NILAM', 94.0, 'HUMANITIES']
MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Admission Number
4. Search Stream
5. Update Record (Percentage)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->6
Enter Adm number to delete: 101
Record deleted

MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Admission Number
4. Search Stream
5. Update Record (Percentage)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->2
[100, 'RAVI', 95.0, 'SCIENCE']
[102, 'ASHISH', 95.5, 'COMMERCE']
[103, 'NILAM', 94.0, 'HUMANITIES']

MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Admission Number
4. Search Stream
5. Update Record (Percentage)
6. Delete Record
7. Exit from Project
*********************************************
Enter your choice between 1 to 8---->6
Enter Adm number to delete: 1001
No record found

MAIN MENU
*********************************************
1. Create Record
2. Display Record
3. Search Admission Number
4. Search Stream
5. Update Record (Percentage)
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 Admission Number
4. Search Stream
5. Update Record (Percentage)
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

You might also like