0% found this document useful (0 votes)
5 views

shivam cs file

The document outlines a Computer Science project titled 'Student Management System' submitted by Shivam Upadhyay for the academic year 2024-2025. It details the project's objectives, functionalities, and implementation using Python and MySQL, aimed at enhancing student data management for educational institutions. The project includes various features such as student search, updates, views, additions, and deletions, along with a user-friendly interface for both administrators and end-users.

Uploaded by

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

shivam cs file

The document outlines a Computer Science project titled 'Student Management System' submitted by Shivam Upadhyay for the academic year 2024-2025. It details the project's objectives, functionalities, and implementation using Python and MySQL, aimed at enhancing student data management for educational institutions. The project includes various features such as student search, updates, views, additions, and deletions, along with a user-friendly interface for both administrators and end-users.

Uploaded by

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

M.J.R.

P PUBLIC SCHOOL
JAGDISHPURAM GHAZIPUR

COMPUTER SCIENCE PROJECT


2024-2025
PROJECT TOPIC :
STUDENT MANAGEMENT SYSTEM

SUBMITTED BY :SHIVAM UPADHYAY


CLASS: XII B3
CBSE ROLL NUMBER:
SUBMITTED TO:SANJEEV AGRAHARI

EXAMINER SIGN
CONTENTS
➢ Certificate

➢ Acknowledgement

➢ Hardwares and Softwares


required

➢ Introduction

➢ Python Source Code

➢ MY SQL database

➢ Outputs

➢ Reference
CERTIFICATE

This is to certify that SHIVAM


UPADHYAY of class: XII B3
has done his Project on
STUDENT MANAGEMENT
SYSTEM under my supervision.
He has Taken interest and has
shown at most Sincerity in
completion of this project. I
certify this project up to my
expectation & as per guidelines
issued by CBSE, NEW DELHI.

Internal Examiner External Examiner

Principal
ACKNOWLEDGEMENT
It is with pleasure that I acknowledge my
Sincere gratitude to our teacher, MR.
Sanjeev sir who taught and Undertook the
responsibility of teaching The subject
computer science. I have Been greatly
benefited from his classes.
I am especially indebted to our Principal
MR. SS Kushwaha who has always been
A source of encouragement and support
And
without whose inspiration this project
Would not have been a successful I would
Like to place on record heartfelt thanks to
Him.
Finally, I would like to express my Sincere
appreciation for all the other Students for
my batch their friendship & the fine time
that we all shared Together.
HARDWARES AND
SOFTWARES REQUIRED

HARDWARES

1.Desktop/laptop
2.Mobile phone

SOFTWARES

1.Python(latest version)
2.MY SQL
3.Python connector module
INTRODUCTION

The real meaning of educational


administration has undergone a radical
transformation in recent years, with an
increasing reliance on technology to
streamline student management processes.
The provided Python script embodies a
Student Management System that leverages
the capabilities of MySQL as the backend
database. This system caters to the diverse
needs of administrators and users, offering
functionalities ranging from student details
search to updates, views, additions, and
deletions.
• Evolution of Student Management
Systems:-
Traditionally, student management
involved intricate manual processes,
making it susceptible to errors, delays,
and inefficiencies. The emergence of digital
solutions has ushered in an era of efficiency
and accuracy, allowing educational
institutions to manage student data
seamlessly. Our project aligns with this
evolution, providing an interactive and
dynamic Student Management System that
caters to the specific requirements of
administrators and users alike.
• Objectives of the Project:-
1.Administrative Empowerment
The primary objective of the Student
Management System is to empower
administrators with tools that facilitate
efficient student data management. The
system encompasses key administrative
functionalities, including:
• Student Search:-
The `search_student()` function allows
administrators to search for student details
based on the student’s
name. This ensures quick access to
comprehensive
information, such as admission number,
name, gender, class, section, phone
number, email ID, and stream.
• Update Student Details:-
The `update_details()` function provides
administrators with a versatile interface to
update
various student details, such as name,
gender, class, section, phone number, email
ID, and stream. The system’s flexibility
ensures adaptability to changing student
information.
• View Student Details:-
The `view_Marks()` function facilitates the
display of student details, with a particular
focus on showcasing student marks. This
functionality caters to the academic aspect of
student management, allowing
administrators to assess and communicate
student performance.
• Add Student:-
The `add_student()` function streamlines the
process of adding new students to the
system, ensuring that vital details are
captured efficiently. This contributes to the
completeness and accuracy of the student
Database.
• Delete Student:-
The `delete_student()` function enables
administrators to remove student records
from the system, providing a mechanism for
data cleanup and management.
2. User-Friendly Interface
The project recognizes the importance of
user experience for both administrators and
end-users. Two distinct panels, namely the
Admin Panel and the User Panel, cater to
the unique needs of these user groups.
• Admin Panel:-
The `admin()` function serves as the
gateway to the Admin Panel, offering a
menu-driven interface for administrators
to access and utilize the various
functionalities provided by the system.
• User Panel:-
The `user()` function represents the
User Panel, providing a simplified
interface for end-users to
search for their details, view academic
information, and exit the system.
• Key Code Functionalities Integrated:-
### Search and Display
Operations
#### Search Student
The `search_student()` function utilizes SQL
queries to search for student details based on
the provided
name, returning a detailed display of
relevant information.
#### View Student Details
The `view_Marks()` function employs SQL
queries to fetch and display student details,
with a specific focus on academic performance.
• Update Operations
Update Student Details
The `update_details()` function integrates
user input and SQL queries to selectively
update student information, offering granular
control over the data modification process.
• Data Manipulation
Operations
Add Student
The `add_student()` function combines user
input and SQL queries to insert new student
records into the system, ensuring data
completeness.
Delete Student
The `delete_student()` function utilizes SQL
queries to delete student records based on
the provided name, contributing to data
management and cleanup.
• User and Admin
Panels:-
• Admin Panel
The `admin()` function orchestrates the
Admin Panel, providing administrators with
a menu-driven interface to navigate through
the system’s functionalities.
• User Panel:-
The `user()` function represents the User
Panel, offering end-users a simplified menu to
search for their details, view academic
information, and exit the system.
• ## Integration of MySQL and Python:-
MySQL – The Relational Database
Management System
MySQL serves as the backend database for the
Student Management System, storing and
managing student-related information. The
structured schema ensures efficient storage,
retrieval, and manipulation of data.
•Python – The Programming Language:-
Python, with its versatility and readability,
powers the logic and user interface of the
Student Management System. The script
employs Python’s database connectivity
features to seamlessly integrate with MySQL,
providing a cohesive and interactive
experience for users and administrators.
Significance of the Project:-
The significance of our Student Management
System transcends its technical intricacies. In
an era where educational institutions are
grappling with vast amounts of student data, a
robust and user-friendly system is
indispensable. Our project addresses this need,
offering a solution that not only streamlines
administrative tasks but also enhances user
experience and contributes to the overall
efficiency of student management processes.
In the subsequent sections of this project
report, we explore the database schema,
discuss the integration of Python and
MySQL, and shed light on the future
enhancements and scalability of the Student
Management System. Through this
comprehensive exploration, we aim to
showcase not only the technical prowess of
the implemented solution but also the
thoughtfulness invested in creating a system
that aligns seamlessly with the evolving
landscape of educational administration.
PYTHON
SOURCE CODE
import pymysql as con

# Function to search STUDENT details


def search_STUDENT():
print("***************** STUDENT
DETAILS ***********************")
k = input("Enter Name_is to search
STUDENT Name_is: ")

d = con.connect(host="localhost",
user="root", passwd="",
database="STUDENT_MANAGEMENT_SYSTE
M")
c = d.cursor()
c.execute("SELECT * FROM STUDENT
WHERE Name_is LIKE '%{}%'".format(k))
a = c.fetchall()
if len(a) >= 1:
for i in a:
print("Admission no:", i[0])
print("Name_is is:", i[1])
print("Sex:", i[2])
print("Class:", i[3])
print("Sec:", i[4])
print("Phone_number_is is:", i[5])
print("Email_id:", i[6])
print("Stream is:", i[7])
print("PERCENTAGE:",i[3])
print("----------------------------------------
------------")
else:
print("STUDENT Details Not Found")

d.commit()
# Function to update STUDENT details
def update_details():
d = con.connect(host="localhost",
user="root", passwd="",
database="STUDENT_MANAGEMENT_SYSTE
M")
c = d.cursor()

print("1. Update Name_is")


print("2. Update Sex")
print("3. Update class")
print("4. Update Sec")
print("5. Update Phone no.")
print("6. Update E-Email_id")
print("7. Update Stream")

opt = int(input("Enter your choice to


update: "))
if opt == 1:
print("-------------------------------------------
--------")
print("You are inside updating
Name_is.")
q = input("Enter Admission_no whose
data you want to update: ")
l = input("Enter your updated Name_is:
")
c.execute("UPDATE STUDENT SET
Name_is='{}' WHERE
Admission_no={}".format(l, q))
d.commit()
elif opt == 2:
print("-------------------------------------------
--------")
print("You are inside updating Sex.")
p = input("Enter Name_is whose data
you want to update: ")
l = input("Enter your updated Sex: ")
c.execute("UPDATE STUDENT SET
SEX='{}' WHERE Name_is='{}'".format(l, p))
d.commit()
elif opt == 3:
print("-------------------------------------------
--------")
print("You are inside updating class.")
m = input("Enter Name_is whose data
you want to update: ")
n = input("Enter your updated class: ")
c.execute("UPDATE STUDENT SET
CLASS={} WHERE Name_is='{}'".format(n,
m))
d.commit()
elif opt == 4:
print("-------------------------------------------
--------")
print("You are inside updating Sec.")
y = input("Enter Name_is whose data
you want to update: ")
e = input("Enter your updated Sec: ")
c.execute("UPDATE STUDENT SET
SEC='{}' WHERE Name_is='{}'".format(e, y))
d.commit()
elif opt == 5:
print("-----------------------------------------------
----")
print("You are inside updating
Phone_number_is.")
h = input("Enter Name_is whose data you
want to update: ")
r = input("Enter your updated
Phone_number_is: ")
c.execute("UPDATE STUDENT SET
Phone_number_is={} WHERE
Name_is='{}'".format(r, h))
d.commit()
elif opt == 6:
print("-----------------------------------------------
----")
print("You are inside updating email_id.")
j = input("Enter Name_is whose data you
want to update: ")
k = input("Enter your updated email_id: ")
c.execute("UPDATE STUDENT SET
EMAIL_ID='{}' WHERE Name_is='{}'".format(k,
j))
d.commit()
elif opt == 7:
print("--------------------------------------------
-------")
print("You are inside updating Stream.")
f = input("Enter Name_is whose data you
want to update: ")
z = input("Enter your updated Stream: ")
c.execute("UPDATE STUDENT SET
Stream='{}' WHERE Name_is='{}'".format(z,
f))
d.commit()
else:
print("Invalid option.")
# Function to view PERCENTAGE
def view_PERCENTAGE():
print("******************* VIEW
STUDENT DETAILS ******************")
k = input("Enter Name_is to view
STUDENT details: ")

d = con.connect(host="localhost",
user="root", passwd="",
database="STUDENT_MANAGEMENT_SY
STEM")
c = d.cursor()
c.execute("SELECT PERCENTAGE
FROM STUDENT WHERE Name_is LIKE
'%{}%'".format(k))
s = c.fetchall()

for i in s:
print("PERCENTAGE:", i)
print("---------------------------------------
--------------")

d.commit()
# Function to add STUDENT details
def add_STUDENT():
print(".................. ADD STUDENT DETAILS
......................")

n = input("Enter STUDENT Name_is: ")


a = int(input("Enter STUDENT
Admission_no: "))
r = input("Enter Sex of STUDENT: ")
i = int(input("Enter class of STUDENT: "))
p = input("Enter STUDENT Sec: ")
t = int(input("Enter STUDENT
Phone_number_is: "))
w = input("Enter STUDENT Stream: ")
u = input("Enter your Email_id: ")
m = int(input("Enter your PERCENTAGE:
"))
d = con.connect(host="localhost",
user="root", passwd="",
database="STUDENT_MANAGEMENT_SYSTE
M")
c = d.cursor()

sq = "INSERT INTO STUDENT


VALUES({},'{}','{}',{},'{}','{}','{}','{}',{})".format(
a, n, r, i, p, t, u, w, m)
c.execute(sq)
d.commit()
print("STUDENT data added successfully")

# Function to delete STUDENT details


def delete_STUDENT():
print("******************** DELETE
STUDENT DETAILS *******************")
k = input("Enter Name_is to DELETE
STUDENT details: ")
d = con.connect(host="localhost",
user="root", passwd="",
database="STUDENT_MANAGEMENT_SYSTE
M")
c = d.cursor()
c.execute("DELETE FROM STUDENT
WHERE Name_is='{}'".format(k))
print("......... Data deleted successfully
..........")
d.commit()
# Admin menu
def admin():
while True:
print("*************** WELCOME TO
STUDENT MANAGEMENT *****************")
print("--------------------------------------------
--------------")
print("1. Search STUDENT details")
print("2. Update STUDENT details")
print("3. View STUDENT PERCENTAGE")
print("4. Add STUDENT details")
print("5. Delete STUDENT details")
print("6. Exit")
ch = int(input("Your choice: "))
if ch == 1:
search_STUDENT()
elif ch == 2:
update_details()
elif ch == 3:
view_PERCENTAGE()
elif ch == 4:
add_STUDENT()
elif ch == 5:
delete_STUDENT()
elif ch == 6:
break
else:
print("Invalid input")
# User menu
def user():
while True:
print("*************** WELCOME TO
STUDENT MANAGEMENT
****************")
print("1. Search your Details")
print("2. View PERCENTAGE")
print("3. Exit")
ch = int(input("What is your choice: "))
if ch == 1:
search_STUDENT()
elif ch == 2:
view_PERCENTAGE()
elif ch == 3:
break
else:
print("Invalid input")
# Main program to select between admin and
user
while True:
print("************** WELCOME TO
STUDENT MANAGEMENT *****************")
print("1. Admin")
print("2. User")
print("3. Exit")
ch = int(input("Login through: "))
if ch == 1:
admin()
elif ch == 2:
user()
elif ch == 3:
break
else:
print("Invalid input")
MySQL
DATABASES
STUDENT MANAGEMENT SYSTEM
DATABASE AND STUDENT
DETAILS TABLE:-
OUTPUTS
#User Panel and Admin Panel:
*** WELCOME TO STUDENT MANAGEMENT***
1. Admin
2. User
3. Exit
Login through: 1
*** WELCOME TO STUDENT MANAGEMENT***

#Search Student Details:


1. Search STUDENT details
2. Update STUDENT details
3. View STUDENT PERCENTAGE
4. Add STUDENT details
5. Delete STUDENT details
6. Exit
Your choice: 1
**********STUDENT DETAILS **********
Enter Name_is to search STUDENT Name_is:
Shivam
Admission no: 1006
Name_is is: Shivam
Sex: Male
Class: 12
Sec: B3
Phone_number_is is: 2147483647
Email_id: shivam657@gmail.com
Stream is: Biology
PERCENTAGE: 12
----------------------------------------------------
***WELCOME TO STUDENT MANAGEMENT ***
#Update student Details
1. Search STUDENT details
2. Update STUDENT details
3. View STUDENT PERCENTAGE
4. Add STUDENT details
5. Delete STUDENT details
6. Exit
Your choice: 2
1. Update Name_is
2. Update Sex
3. Update class
4. Update Sec
5. Update Phone no.
6. Update E-Email_id
7. Update Stream
Enter your choice to update: 1
---------------------------------------------------
You are inside updating Name_is.
Enter Admission_no whose data you want to
update: 2345
Enter your updated Name_is: Abhi
***WELCOME TO STUDENT MANAGEMENT ***
#View Mark of student :

1. Search STUDENT details


2. Update STUDENT details
3. View STUDENT PERCENTAGE
4. Add STUDENT details
5. Delete STUDENT details
6. Exit
Your choice: 3
***VIEW STUDENT DETAILS ***
Enter Name_is to view STUDENT details:
Shushil
PERCENTAGE: (55,)
***WELCOME TO STUDENT
MANAGEMENT***
#Add student Details:

1. Search STUDENT details


2. Update STUDENT details
3. View STUDENT PERCENTAGE
4. Add STUDENT details
5. Delete STUDENT details
6. Exit
Your choice: 4
.................. ADD STUDENT DETAILS ......................
Enter STUDENT Name_is: Rahul
Enter STUDENT Admission_no: 1007
Enter Sex of STUDENT: Male
Enter class of STUDENT: 11
Enter STUDENT Sec: A2
Enter STUDENT Phone_number_is:
9978678798
Enter STUDENT Stream: Math
Enter your Email_id: rahul567@gmail.com
Enter your PERCENTAGE: 88
STUDENT data added successfully
**WELCOME TO STUDENT MANAGEMENT **
#Delete Student Details:
1. Search STUDENT details
2. Update STUDENT details
3. View STUDENT PERCENTAGE
4. Add STUDENT details
5. Delete STUDENT details
6. Exit
Your choice: 5
*******DELETE STUDENT DETAILS ********
Enter Name_is to DELETE STUDENT details: abhi
......... Data deleted successfully ..........
**WELCOME TO STUDENT MANAGEMENT **
1. Search STUDENT details
2. Update STUDENT details
3. View STUDENT PERCENTAGE
4. Add STUDENT details
5. Delete STUDENT details
6. Exit
Your choice: 6
**WELCOME TO STUDENT MANAGEMENT
**
1. Admin
2. User
3. Exit
Login through:
REFERENCE
➢ CLASS 11 TH & 12 TH
COMPUTER
S CIENCE BOOK(SUMITA
ARORA)

➢ PYTHON
HTTPS:/ /w ww. PYTHON . ORG/

➢ MYSQL
HTTPS:/ / WWW.MYSQL.COM /

➢ WIKIPEDIA
Https://www.wikipedia.org/

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy