Class 11 CS Project Report Format - 2024-25 2
Class 11 CS Project Report Format - 2024-25 2
PROJECT REPORT ON
NAME : ANMOL
CLASS : XI
PGT (CS)
1
MAHARSHI PATANJALI VIDYA MANDIR
CERTIFICATE
( )
PGT Comp. Sci.
Examiner:
Name:
2
Signature:
Date:
3
TABLE OF CONTENTS [ T O C ]
4
ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any project depends largely on the
encouragement and guidelines of many others. I take this opportunity to express my
gratitude to the people who have been instrumental in the successful completion of
this project.
I express deep sense of gratitude to almighty God for giving me strength for the
successful completion of the project.
The guidance and support received from all the members who contributed and
who are contributing to this project, was vital for the success of the project. I am
grateful for their constant support and help.
5
PROJECT ON “STUDENT MANAGEMENT SYSTEM”
➢ INTRODUCTION :
6
➢ OBJECTIVES OF THE PROJECT :
Write a menu driven Python Program to:-
• Accept records of Student (RollNo, Name, Class, Marks) and save the
records in form of dictionary.
• Display all the records which are already saved in the student
database.
• Update the value of Marks for any particular record identified on the
basis of RollNo entered by user.
7
❖ PROJECT DESCRIPTION
In this project, we are going to create a menu driven program which will enable the
users to insert new records in the database, display previously stored records from the
database, search for any record from the database based on RollNo entered by the
user, update any record based on RollNo entered by the user and delete any record
based on RollNo entered by the user.
Once the user runs the program, a menu will be displayed before the user as shown
below:
• Enter 1 for inserting new records
• Enter 2 for displaying all the saved records
• Enter 3 for searching any record based on RollNo
• Enter 4 for updating any record based on RollNo
• Enter 5 for deleting any particular record
• Enter 6 for exiting the program
Scenario 1:
If user enters 1, then the system will prompt the user to enter the records of the student
(RollNo, Name, Class, Marks). The user will enter these 4 values one after the other for
every student record and this record will be entered in the student dictionary using
simple assignment method. User will be again shown the menu of options from which
he/she can choose the next operation to be performed.
Scenario 2:
If user enters 2, then the system will display all the records of the student database in
the form of dictionary. It should be noted that the records may be displayed in any order
as there is no defined ordering in the key value pairs of a dictionary. User will be again
shown the menu of options from which he/she can choose the next operation to be
performed.
Scenario 3:
If user enters 3, then system will again prompt the user to enter the value of RollNo on
the basis of which the student record will be searched from the database. Once user
enters the value of RollNo, then the program will search for the record on the basis of
entered RollNo and if the record is found, the record will be displayed before the user.
Otherwise, a message will be displayed before the user that the record was not found.
User will be again shown the menu of options from which he/she can choose the next
operation to be performed.
Scenario 4:
If user enters 4, then system will again prompt the user to enter the value of RollNo on
the basis of which the student record which is to be updated will be searched from the
database. The user will then be prompted to enter the new value of Marks which has to
be updated in the searched record. If the searched record is found, then the new value
of Marks is updated in the record. Otherwise, a message will be displayed before the
user that the record was not found. User will be again shown the menu of options from
which he/she can choose the next operation to be performed.
Scenario 5:
8
If user enters 5, then system will again prompt the user to enter the value of RollNo on
the basis of which the student record which is to be deleted will be searched from the
database. Once user enters the value of RollNo, then the program will search for the
record on the basis of entered RollNo and if the record is found, the record will be
deleted and a message confirming the action will be displayed before the user.
Otherwise, a message will be displayed before the user that the record was not found.
User will be again shown the menu of options from which he/she can choose the next
operation to be performed.
Scenario 6:
If the user enters 6, it means that he/she doesn’t want to continue the execution of
program and so the break statement will terminate the while loop in the program and the
program execution will come to an end.
➢ PROJECT CODE :
students = { }
while True:
print("\nMenu:")
print("1. Add Student Record")
print("2. Display All Records")
9
print("3. Search Record by Roll No")
print("4. Update Marks by Roll No")
print("5. Delete Record by Roll No")
print("6. Exit") choice = input("Enter your choice: ")
if choice == '1':
roll_no = input("Enter Roll No: ")
name = input("Enter Name: ")
class_name = input("Enter Class: ")
marks = input("Enter Marks: ")
students[roll_no] = {'Name': name, 'Class': class_name,
'Marks': marks}
print("Record added successfully!\n")
else:
print("Invalid choice. Please try again!\n")
11
➢ OUTPUT:
5. Updating Marks:
a. By choosing Option 4, the program requests the Roll No and the
new marks.
b. If the record is found, it updates the marks and confirms with:
12
"Marks updated successfully!"
c. If the record doesn't exist, it notifies:
"Record not found!"
6. Deleting a Record:
a. Selecting Option 5, the program asks for the Roll No to delete
the corresponding record.
b. Upon successful deletion, it shows:
"Record deleted successfully!"
c. If the Roll No is not found, the message is:
"Record not found!"
❖ Example Scenario:
1. Adding Student Records:
Input:
13
Enter your choice: 2
Output:
Roll No: 101, Name: Rahul Sharma, Class: 11A, Marks: 85
3. Searching a Record by Roll No:
Input:
Enter your choice: 3
Enter Roll No to search: 101
Output:
Found - Roll No: 101, Name: Rahul Sharma, Class: 11A, Marks: 85
14
15
HARDWARE AND SOFTWARE REQUIREMENTS
III.RAM : 12GB
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
16
17
BIBLIOGRAPHY
***
18