Lakshay Project File
Lakshay Project File
SCHOOL
NEW DELHI
COMPUTER SCIENCE
PROJECT
2024-2025
PROJECT TOPIC :
STUDENT MANAGEMENT
SYSTEM SUBMITTED BY :
NAME: LAKSHAY
CLASS: XII A CBSE
ROLL NUMBER:
SUBMITTED TO:
MR.BANWARI LAL
RATHI,CS
CERTIFICATE
This is to certify that LAKSHAY of class: XII A of
VANASTHALI PUBLIC 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.
ACKNOWLEDGEMENT
It is with pleasure that I acknowledge my Sincere
gratitude to our teacher, MR. BANWARI LAL
RATHI 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
MRS.VINA HIMANI 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.
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.
###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.
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.
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
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()
Def update_details():
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
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():
Print(“******************* VIEW STUDENT
DETAILS******************”)
update: “)
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()
Def add_student():
Print(“.................. ADD STUDENT
DETAILS......................”)
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
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_SYST
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(“-------------------------------------------------------------“)
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_SYST
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
##Gender:
##Class:
##Section:
##Stream: