New Comp
New Comp
2. INTRODUCTION
4. MySQL DATABASE
5. OUTPUTS
6. REFERENCES
HARDWARES:
1.DESKTOP COMPUTER
2.MOBILE PHONE
SOFTWARES:
1.PYTHON
2.MySQL
3.PYTHON CONNECTOR MOBILE
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.
###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 `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.
#### 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
Def update_details():
D=con.connect(host=”localhost”,user=”root”,password=”
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. Update Phone no.”)
Print(“6. Update E-mail id”)
Print(“7. Update Stream”)
Opt=int(input(“Enter your choice to update”))
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.”)
m=input(“Enter name whose data you want to update:
“)
n=input(“Enter your updated class: “)
c.execute(“update STUDENT_DETAILS set CLASS={}
where name=‟{}‟”.format(n,m))
D.commit()
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(“---------------------------------------------------“)
print(“You are inside updating phonenumber.”)
h=input(“Enter name whose data you want to update: “)
r=input(“Enter your updated phonenumber: “)
C.execute(“update STUDENT_DETAILS set
PHONE_NUMBER={} where name=‟{}‟”.format(r,h))
D.commit()
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:
print(“---------------------------------------------------“)
print(“You are inside updating stream.”)
f=input(“Enter name whose data you want to update: “)
z=input(“Enter your updated stream : “)
C.execute(“update STUDENT_DETAILS set
STREAM=‟{}‟ where NAME=‟{}‟”.format(z,f))
D.commit()
else: update_details()
#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*fromSTUDENT_DETAILS where
NAME like „%{}%‟”.format(k))
s=C.fetchall()
for i in s:
print(“MARKS:”,i[8])
print(“-----------------------------------------------------“)
D.commit()
#To insert details to student details table
Def add_student():
Print(“.................. ADD
STUDENTDETAILS......................”)
N=input(“Enter student name : “)
A=int(input(“Enter student admission number: “))
R=input(“Enter gender of student: “)
I=int(input(“Enter class of student:”))
P=input(“Enter student section : “)
T=int(input(“Enter student phone number:”))
W=input(“Enter student stream: “)
U=input(“Enter your mail id:”)
M=int(input(“Enter your marks:”))
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SY
ST EM”)
C=D.cursor()
Sq=”insert into STUDENT_DETAIL
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_SY
ST 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(“----------------------------------------------------------
----“)
print(“1.search student details”)
print(“2.update student details”)
print(“3.view student details”)
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_Marks()
elif ch==4:
add_student()
elif ch==5:
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”)
1.NEWS API
2.WIKIPEDIA
3.PYTHON
4.MySQL
5.ANSI ESCAPE CODES IN PYTHON
6.CLASS 11TH & 12TH COMPUTER SCIENCE
BOOKS