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

Cs file done

Uploaded by

arpitkaushik120
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)
13 views

Cs file done

Uploaded by

arpitkaushik120
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/ 40

CERTIFICATE

This is to certify that Arpit Kaushik of class: XII Sci of S.T.


ANDREWS PUBLIC SCHOOL has done her Project on STUDENT
MANAGEMENT SYSTEM under The supervision of Mr. Vikas
Goyal . he has Taken interest and has shown at most Sincerity in
completion of this project.
I certify this project upto my expectation & as per guidelines issued by
CBSE, NEW DELHI.

InternalExaminer ExternalExaminer

ACKNOWLEDGEMENT
It is with pleasure that acknowledge my Sincere
Gratitude to our teacher, MR.Vikas Goyal 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.Anshu Singh
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 Her.

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.
CONTENTS

S.No. TOPIC PAGENO

1 Certificate 2

2 Acknowledgement 3

3 Hardware’s and 4
Software’srequired
4 Introduction 6

5 Pythonsourcecode 13

6 MySQLDatabase 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.
##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 dataset
aimlessly. 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 stream lines 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 clean up 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 gate way 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 as implified 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.
###UpdateOperations
####UpdateStudentDetails
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.
####UserPanel
The user() function represents the User Panel,
Offering end-users as implified menu to search for
Their details, view academic information, and exitthe
system.
##Integration of My SQL and Python
###My SQL– The Relational Database Management
System
My SQL serves as the backend database for the
Student Management System, storing and managing
student-related information. The structured scheme
ensures efficient storage, retrieval, and
manipulation of data.
###Python–The Programming Language
Python, with its versatility and read ability, powers the
logic and user interface of the Student Management
System. The script employs Python’s database
connectivity features to seamlessly integrate with
My SQL, 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, arobustand 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


will delve into the detailed functionalities of the
system, explore the database schema, discuss the
integration of Python and My SQL, and shed light on
the future enhancements and scalability of the
Student Management System. Through this
comprehensive exploration, we aim to show case 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.
PythonSourceCode
Importmysql.connectorascon
Print(“---------------------------------------------------------------
“)
#Tosearchstudentsfromstudent
details
#table.
Defsearch_student():
Print(“*****************STUDENT
DETAILS***********************”)
K=input(“EnternametosearchstudentName:“)

D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
EM”)
C=d.cursor()
c.execute(“select*fromSTUDENT_DETAILSwhere
NAME like ‘%{}%’”.format(k))
a=c.fetchall()
if len(a)>=1:
for i in a:
print(“Addmissionno:”,i[0])
print(“Name is:”,i[1])
print(“Sex:”,i[2])
print(“Class=”,i[3])
print(“Sec:”,i[4])
print(“Phonenumberis=”,i[5])
print(“Email_id:”,i[6])
print(“Streamis:”,i[7])
print(“-------------------------------------------------“)
else:
print(“StudentDetailsNotFound”)

d.commit()

#Toupdatedetailsofstudentsfrom
student details table.

Defupdate_details():

D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
EM”)
C=d.cursor()

Print(“1. Update Name”)


Print(“2. Update Gender”)
Print(“3. Update class”)
Print(“4. Update Section”)
Print(“5.UpdatePhoneno.”)
Print(“6. Update E-mail id”)
Print(“7. Update Stream”)
Opt=int(input(“Enteryourchoicetoupdate”))

Ifopt==1:
Print(“ ----------------------------------------------- “)
Print(“Youareinsideupdatingname.”)
Q=input(“EnterADDMISSION_NUMBERwhose
data you want to update: “)
L=input(“Enteryourupdatedname:“)
c.execute(“updateSTUDENT_DETAILSset
NAME=’{}’ where
ADDMISSION_NUMBER={}”.format(l,q))
d.commit()

elif opt==2:
print(“ ----------------------------------------------- “)
print(“YouareinsideupdatingGender.”)
p=input(“Enternamewhosedatayouwantto
update: “)
l=input(“EnteryourupdatedGender:“)
c.execute(“updateSTUDENT_DETAILSsetSEX=’{}’
where name=’{}’”.format(l,p))
d.commit()

elif opt==3:
print(“ ----------------------------------------------- “)
print(“Youareinsideupdatingclass.”)
m=input(“Enternamewhosedatayouwantto
update: “)
n=input(“Enter your updated class: “)
c.execute(“updateSTUDENT_DETAILSset
CLASS={}wherename=’{}’”.format(n,m))
d.commit()

elif opt==4:
print(“ ----------------------------------------------- “)
print(“Youareinsideupdatingsection.”)
y=input(“Enternamewhosedatayouwantto
update: “)
e=input(“Enteryourupdatedsection:“)
c.execute(“updateSTUDENT_DETAILSsetSEC=’{}’
where name=’{}’”.format(e,y))
d.commit()

elif opt==5:
print(“ ----------------------------------------------- “)
print(“Youareinsideupdatingphonenumber.”)
h=input(“Enternamewhosedatayouwantto
update: “)
r=input(“Enteryourupdatedphonenumber:“)
c.execute(“update STUDENT_DETAILS set
PHONE_NUMBER={}wherename=’{}’”.format(r,h))
d.commit()

elif opt==6:
print(“ ----------------------------------------------- “)
print(“Youareinsideupdatingemail_id.”)
j=input(“Enternamewhosedatayouwantto
update: “)
k=input(“Enteryourupdatedemail_id:“) c.execute(“update
STUDENT_DETAILS set
EMAIL_ID=’{}’wherename=’{}’”.format(k,j))
d.commit()

elif opt==7:
print(“ ----------------------------------------------- “)
print(“Youareinsideupdatingstream.”)
f=input(“Enternamewhosedatayouwantto
update: “)
z=input(“Enter your updated stream : “)
c.execute(“updateSTUDENT_DETAILSset
STREAM=’{}’whereNAME=’{}’”.format(z,f))
d.commit()
else:
update_details()

#Todisplaythemarksofstudentsfrom
student details table .

Defview_Marks():
Print(“*******************VIEWSTUDENT
DETAILS******************”)
K=input(“Enternametoviewstudentdetails: “)

D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”student_management_system”
)
C=d.cursor()
c.execute(“select*fromSTUDENT_DETAILSwhere
NAME like ‘%{}%’”.format(k))
s=c.fetchall()
for i in s:
print(“MARKS:”,i[8])

print(“ ------------------------------------------------- “)

d.commit()

#Toinsertdetailstostudentdetailstable

Defadd_student():
Print(“..................ADDSTUDENT
DETAILS ...................... ”)

N=input(“Enterstudentname: “)
A=int(input(“Enterstudentadmissionnumber:“))
R=input(“Enter gender of student: “)
I=int(input(“Enterclassofstudent:”))
P=input(“Enterstudentsection:“)
T=int(input(“Enterstudentphonenumber:”))
W=input(“Enter student stream: “)
U=input(“Enter your mail id:”)
M=int(input(“Enteryourmarks:”))

D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
EM”)
C=d.cursor()
Sq=”insertintoSTUDENT_DETAILS
values({},’{}’,’{}’,{},’{}’,{},’{}’,’{}’,{})”.format(a,n,r,i,p,t,u,
w,m)
c.execute(sq)
d.commit()
print(“studentdataaddedsuccessfully”)
#Todeleteitemsfromstudentdetailstable Def
delete_student():
Print(“********************DELETESTUDENT
DETAILS*******************”)
K=input(“EnternametoDELETEstudentdetails:“)
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
EM”)
C=d.cursor()
c.execute(“deletefromSTUDENT_DETAILSwhere
name=’{}’”.format(k))
print(“.........Datadeletedsuccessfully ........... ”)
d.commit()

def admin():
whileTrue:
print(“***************WELCOMETOSTUDENT
MANAGEMENT *****************”)
print(“----------------------------------------------------------
--- “)

print(“1.search student details”)


print(“2.updatestudentdetails”)
print(“3.view student details”)
print(“4.add student details”)
print(“5.deletestudentdetails”)
print(“6.exit”)
ch=int(input(“yourchoice:“))
if ch==1:
search_student()
elif ch==2:
update_details()
elif ch==3:
view_Marks()
elif ch==4:
add_student()
elif ch==5:
delete_student()
elif ch==6:
break
else :
print(“invalidinput”)
def user():
whileTrue:
print(“***************WELCOMETOSTUDENT
MANAGEMENT **************”)
print(“1.searchyourDetails”)
print(“2.view Details”)
print(“3.exit”)
ch=int(input(“whatisyourchoice:“)) if
ch==1:
search()
elifch==2:
view_Marks()
elif ch==3:
break
else:
print(“invalidinput”)

#Tosearchstudentsfromstudentdetails
table.
Defsearch():
Print(“*****************STUDENT
DETAILS***********************”)
K=input(“Enternametosearchstudentdetails:“)

D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST
EM”)
C=d.cursor()
c.execute(“select*fromSTUDENT_DETAILSwhere
NAME like ‘%{}%’”.format(k))
a=c.fetchall()
if len(a)>=1:
for i in a:
print(“Addmissionno:”,i[0])
print(“Name is:”,i[1])
print(“Sex:”,i[2])
print(“Class=”,i[3])
print(“Sec:”,i[4])
print(“Phonenumberis=”,i[5])
print(“Email_id:”,i[6])
print(“Streamis:”,i[7])
print(“-------------------------------------------------“)
else:
print(“StudentDetailsNotFound”)
d.commit()
#Todisplaythemarksofstudentsfrom student
details table .

Defview_Marks():
Print(“*******************VIEWSTUDENT
DETAILS******************”)
K=input(“Enternametoviewstudentdetails: “)

D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”student_management_system”
)
C=d.cursor()
c.execute(“select*fromSTUDENT_DETAILSwhere
NAME like ‘%{}%’”.format(k))
s=c.fetchall()
for i in s:
print(“MARKS:”,i[8])

print(“ ------------------------------------------------- “)
d.commit()

whileTrue:
print(“**************WELCOMETOSTUDENT
MANAGEMENT*****************”)
print(“1.admin”)
print(“2.user”)
print(“3.exit”)
ch=int(input(“loginthrough:“)) if
ch==1:
admin()
elifch==2:
user()
elifch==3:
break
else:
print(“invalidinput”)
MySQLDATABASES
STUDENTMANAGEMENTSYSTEMDATABASEAND
STUDENT DETAILS TABLE:-

ADDSTUDENTFROMSTUDENT_DETAILSTABLE:
#Addedanewstudentinstudentdetailstablenamed
PRITI SHARMA
UpdatedStudentClassFromSTUDENT_DETAILSTable:

#updatedtheclassofstudentnameSALONIfromclass 12 to
class 11.

UpdatedStudentStreamFromSTUDENT_DETAILS
Table:

#updatedtheStreamofstudentnameSALONIfrom
SCIENCE to ARTS.
DELETESTUDENTFROMSTUDENT_DETAILSTABLE:

#Deleted the Details of student name PRITISHARMA


from STUDENT_ DETAILS TABLE.
OUTPUTS
#User Panel and Admin Panel:

#search Student Details:


#Update student Details:
##Name:

##Gender:
##Class:

##Section:
##Stream:

#View Mark of student:


#Add student Details:

#Delete Student Details:


THANKYOU

You might also like