Report file

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

SRS.SR.SEC.

SCHOOL

ACADEMIC YEAR :2022 – 2023


PROJECT REPORT ON
STUDENT MANAGEMENT SYSTEM

NAME: DHEERAJ
CLASS: 12th Arts
SUBJECT: Computer Science
SUB CODE: 083
ROLL NO:
SRS.SR.SEC.SCHOOL

CERTIFICATE
This is certified that DHEERAJ CBSE Roll no
has successfully completed the Project work entitled STUDENT
MANAGEMENT SYSTEM in the subject Computer Science (083) Python laid
down in the regulations of CBSE for the purpose of Practical Examination
in Class 12th to be held in your school SRS.SR.SEC.SCHOOL

INTERNAL EXAMINER: EXTERNAL EXAMINER:


Name: Name:

SIGNATURE: SIGNATURE:
TABLE OF CONTENTS (T O C)

SS.NO DESCRIPTION PAGE NO

1 ACKNOWLEDGEMENT

2 INTRODUCTION

3 SOURCE CODE

4 BIBLIOGRAPHY
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 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 successfully competition of the project.

I express my heart felt gratitude to my parents for constant


encouragement while carrying out this project.

I gratefully acknowledge the contribution of the individuals who


contributed in bringing this project up to this level, who continuous to
look after me despite my flaws.

I express my deep sense of gratitude to the luminary The


Principal, SRS.SR.SEC.SCHOOL who has been continuously motivating
and extending their helping hand to us.

My sincere thanks to Mrs. Asha Hooda, Master in charge, A


guide, Mentor all the above a friend, who critically reviewed my
project and helped in solving each and every problem occurred during
implementation of the project
PROJECT ON STUDENT MANAGEMENT SYSTEM

INTRODUCTION
This project is all about a software for school. It helps the Teachers to
manage students’ details. It adds a student, updates an existing student’s
details and oncourse display details of student and store in csv file that can
later be accessed using spreadsheet applications like Ms Excel.

OBJECTIVES OF THE PROJECT


The objective of this project is to let the students apply the programming
knowledge into a real- world situation/problem and exposed the students
how programming skills helps in developing a good software.

1. Write programs utilizing modern software tools.


2. Apply object-oriented programming principles effectively when
developing small to medium sized projects.
3. Write effective procedural code to solve small to medium sized
problems.
4. Students will demonstrate a breadth of knowledge in computer
science, as exemplified in the areas of systems, theory and software
development.
5. Students will demonstrate ability to conduct research or applied
Computer Science project, requiring writing and presentation skills
which exemplify scholarly style in computer science
SOURCE CODE

# "Student Management System"


"""
Fields :- ['Roll no.', 'Name', 'Age', 'Email', 'Phone']
1. Add New Student
2. View Students
3. Search Student
4. Update Student
5. Delete Student
6. Quit
"""

import csv

# Define global variables


student_fields = ['Roll no.', 'Name', 'Age', 'Email',
'Phone']
student_database = 'students.csv'

def display_menu():
print("-------------------------------------")
print(" Welcome to Student Management
System")
print("-------------------------------------")
print("1. Add New Student")
print("2. View Students")
print("3. Search Student")
print("4. Update Student")
print("5. Delete Student")
print("6. Quit")

def add_student():
print("-------------------------")
print("Add Student Information")
print("-------------------------")
global student_fields
global student_database

student_data = []
for field in student_fields:
value = input("Enter " + field + ": ")
student_data.append(value)
with open(student_database, "a",
encoding="utf-8") as f:
writer = csv.writer(f)
writer.writerows([student_data])

print("Data saved successfully")


input("Press any key to continue")
return

def view_students():
global student_fields
global student_database

print("--- Student Records ---")

with open(student_database, "r",


encoding="utf-8") as f:
reader = csv.reader(f)
for x in student_fields:
print(x, end='\t |')
print("\n-------------------------------------------------
----------------")
for row in reader:
for item in row:
print(item, end="\t |")
print("\n")

input("Press any key to continue")

def search_student():
global student_fields
global student_database

print("--- Search Student ---")


roll = input("Enter roll no. to search: ")
with open(student_database, "r",
encoding="utf-8") as f:
reader = csv.reader(f)
for row in reader:
if len(row) > 0:
if roll == row[0]:
print("----- Student Found -----")
print("Roll: ", row[0])
print("Name: ", row[1])
print("Age: ", row[2])
print("Email: ", row[3])
print("Phone: ", row[4])
break
else:
print("Roll No. not found in our database")
input("Press any key to continue")

def update_student():
global student_fields
global student_database

print("--- Update Student ---")


roll = input("Enter roll no. to update: ")
index_student = None
updated_data = []
with open(student_database, "r",
encoding="utf-8") as f:
reader = csv.reader(f)
counter = 0
for row in reader:
if len(row) > 0:
if roll == row[0]:
index_student = counter
print("Student Found: at index ",
index_student)
student_data = []
for field in student_fields:
value = input("Enter " + field + ": ")
student_data.append(value)
updated_data.append(student_data)
else:
updated_data.append(row)
counter += 1

# Check if the record is found or not


if index_student is not None:
with open(student_database, "w",
encoding="utf-8") as f:
writer = csv.writer(f)
writer.writerows(updated_data)
else:
print("Roll No. not found in our database")
input("Press any key to continue")

def delete_student():
global student_fields
global student_database

print("--- Delete Student ---")


roll = input("Enter roll no. to delete: ")
student_found = False
updated_data = []
with open(student_database, "r",
encoding="utf-8") as f:
reader = csv.reader(f)
counter = 0
for row in reader:
if len(row) > 0:
if roll != row[0]:
updated_data.append(row)
counter += 1
else:
student_found = True
if student_found is True:
with open(student_database, "w",
encoding="utf-8") as f:
writer = csv.writer(f)
writer.writerows(updated_data)
print("Roll no. ", roll, "deleted successfully")
else:
print("Roll No. not found in our database")

input("Press any key to continue")

while True:
display_menu()

choice = input("Enter your choice: ")


if choice == '1':
add_student()
elif choice == '2':
view_students()
elif choice == '3':
search_student()
elif choice == '4':
update_student()
elif choice == '5':
delete_student()
else:
break
print("-------------------------------")
print(" Thank you")
print("-------------------------------")

OUTPUT

Main Screen
Adding new student in software
Displaying Students Records in Software
Searching record of a student in software
Updating record of a student in software
Deleting record of a student in software
Closing of Software
BIBLIOGRAPHY
WEBSITES
https://www.geeksforgeeks.org/
https://www.w3schools.com/

BOOKS
Computer Science with Python Class 12th by Sumita
Arora

Under the guidance of subject Teacher

You might also like