Copy (1)ComputerScience project
Copy (1)ComputerScience project
SCHOOL
2024-2025
PROJECT TOPIC:
STUDENT MANAGEMENT
SYSTEM
SUBMITTED BY:
NAME: GR ABHAY
CLASS: XII
ROLL NUMBER: 5002830
CERTIFICATE
This is to certify that GR ABHAY of class: XII of
NARAYANA E-TECHNO SCHOOL 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.
Principal
ACKNOWLEDGEMENT
It is with pleasure that I acknowledge my sincere
gratitude to our teacher, who taught and
undertook the responsibility of teaching. The
subject computer science. I have been greatly
benefited from her classes.
1 Certificate 2
2 Acknowledgement 3
3 Hardware’s and 4
Software’s required
4 Introduction 6
6 MySQL Database 29
7 Outputs 33
8 References 39
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.
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.
Def update_details():
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYS
T EM”)
C=d.cursor()
If opt==1:
Print(“---------------------------------------------------“)
Print(“You are inside updating name.”)
Q=input(“Enter ADDMISSION_NUMBER whose
data you want to update: “)
L=input(“Enter your updated name: “)
c.execute(“update STUDENT_DETAILS set
NAME=’{}’ where
ADDMISSION_NUMBER={}”.format(l,q))
d.commit()
elif opt==2:
print(“---------------------------------------------------“)
print(“You are inside updating Gender.”)
p=input(“Enter name whose data you want to
update: “) l=input(“Enter your updated
Gender: “)
c.execute(“update STUDENT_DETAILS set
SEX=’{}’ where name=’{}’”.format(l,p))
d.commit()
elif opt==3:
print(“---------------------------------------------------“)
print(“You are inside updating class.”)
update: “)
elif opt==4:
print(“---------------------------------------------------“)
print(“You are inside updating section.”)
y=input(“Enter name whose data you want to
update: “) e=input(“Enter your updated
section: “)
c.execute(“update STUDENT_DETAILS set
SEC=’{}’ where name=’{}’”.format(e,y))
d.commit()
elif opt==5:
print(“---------------------------------------------------“)
update: “)
elif opt==6:
print(“---------------------------------------------------“)
print(“You are inside updating email_id.”)
j=input(“Enter name whose data you want to
update: “) k=input(“Enter your updated
email_id : “) c.execute(“update
STUDENT_DETAILS set EMAIL_ID=’{}’ where
name=’{}’”.format(k,j)) d.commit()
elif opt==7:
update: “)
print(“---------------------------------------------------“)
print(“You are inside updating stream.”)
f=input(“Enter name whose data you want to
Def view_Marks():
update: “)
D=con.connect(host=”localhost”,user=”root”,passwo
r
d=”admin”,database=”student_management_system
”
)
C=d.cursor()
c.execute(“select*from STUDENT_DETAILS
where NAME like ‘%{}%’”.format(k))
s=c.fetchall() for i in s:
print(“MARKS:”,i[8])
print(“-----------------------------------------------------“)
d.commit()
Def add_student():
Print(“.................. ADD STUDENT
DETAILS......................”)
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYS
T EM”)
C=d.cursor()
Sq=”insert into STUDENT_DETAILS
values({},’{}’,’{}’,{},’{}’,{},’{}’,’{}’,{})”.format(a,n,r,i,p,t,
u, w,m)
c.execute(sq)
d.commit() print(“student data added
successfully”)
#To delete items from student details table
Def delete_student():
Print(“******************** DELETE STUDENT
DETAILS*******************”)
K=input(“Enter name to DELETE student details : “)
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYS
T EM”)
C=d.cursor()
c.execute(“delete from STUDENT_DETAILS
where name=’{}’”.format(k)) print(“.........Data
deleted successfully..........”) d.commit()
def admin():
while True:
print(“***************WELCOME TO STUDENT
MANAGEMENT *****************”)
print(“----------------------------------------------------------
---“)
delete_student()
elif ch==6: break
else :
print(“invalid input”)
def user():
while True:
print(“***************WELCOME TO STUDENT
MANAGEMENT **************”)
print(“1.search your Details”)
print(“2.view Details”)
print(“3.exit”) ch=int(input(“what is
your choice: “)) if ch==1:
search() elif ch==2:
view_Marks()
elif ch==3:
break else:
print(“invalid input”)
Def search():
Print(“*****************STUDENT
DETAILS***********************”)
K=input(“Enter name to search student details: “)
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYS
T EM”)
C=d.cursor()
c.execute(“select*from STUDENT_DETAILS
where NAME like ‘%{}%’”.format(k))
a=c.fetchall() if len(a)>=1: for i in a:
print(“Addmission no:”,i[0])
print(“Name is:”,i[1])
print(“Sex:”,i[2])
print(“Class=”,i[3])
print(“Sec:”,i[4]) print(“Phone
number is=”,i[5])
print(“Email_id:”,i[6])
print(“Stream is:”,i[7]) print(“-
--------------------------------------------------
-“) else:
print(“Student Details Not Found”)
d.commit()
#To display the marks of students from
student details table .
Def view_Marks():
Print(“******************* VIEW STUDENT
DETAILS******************”)
K=input(“Enter name to view student details : “)
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”student_management_system
”
)
C=d.cursor()
c.execute(“select*from STUDENT_DETAILS
where NAME like ‘%{}%’”.format(k))
s=c.fetchall() for i in s:
print(“MARKS:”,i[8])
print(“-----------------------------------------------------“)
d.commit()
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:-
##Gender:
##Class:
##Section:
##Stream: