SMG07 Last CS Project 2024
SMG07 Last CS Project 2024
1 Certificate
2 Acknowledgement
4 Hardware’s and
Software’s required
7 Outputs Screening
8 Bibliography
BRIEF OVERVIEW OF PROJECT
HARDWARES:
➢ DESKTOP COMPUTER/LAPTOP
➢ MOBILE PHONE
SOFTWARES:
➢ PYTHON(latest version)
➢ MySQL
➢ PYTHON CONNECTOR
MODULE
ADVANTAGES OF THE PROJECT
Print(“*****************STUDENT DETAILS***********************”)
database=”STUDENT_MANAGEMENT_SYST EM”)
C=d.cursor()
‘%{}%’”.format(k))
a=c.fetchall()
for i in a:
if len(a)>=1:
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 update details of students from student details table.
def update_details():
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST EM”)
C=d.cursor()
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: “)
elif opt==3:
print(“---------------------------------------------------“)
name=’{}’”.format(n,m))
d.commit()
elif opt==4:
print(“---------------------------------------------------“)
print(“---------------------------------------------------“)
d.commit()
else:
update_details()
def view_Marks():
D=con.connect(host=”localhost”,user=”root”,password
d=”admin”,database=”student_management_system” )
C=d.cursor()
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():
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST EM”)
C=d.cursor()
values({},’{}’,’{}’,{},’{}’,{},’{}’,’{}’,{})”.format(a,n,r,i,p,t,u, w,m)
c.execute(sq)
d.commit()
print(“student data added successfully”)
def delete_student():
d.commit()
def admin():
while True:
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(“2.view.Details”)
print(“3.exit”)
if ch==1:
search()
elif ch==2:
view_Marks()
elif ch==3:
break
else:
print(“invalid input”)
#To search students from studentdetails
. def search():
Print(“*****************STUDENT DETAILS***********************”)
D=con.connect(host=”localhost”,user=”root”,passwor
d=”admin”,database=”STUDENT_MANAGEMENT_SYST EM”)
C=d.cursor()
a=c.fetchall()
for i in a:
if len(a)>=1:
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():
D=con.connect(host=”localhost”,user=”root”,password=”admin”
,database=”student_manage ment_system” )
C=d.cursor()
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”)
OUTPUTS SCREENING
MySQL DATABASES
#updated the class of student name SALONI from class 12 to class 11.
Updated Student Stream From STUDENT_DETAILS Table:
#Deleted the Details of student name PRITI SHARMA from STUDENT_ DETAILS
TABLE.
#User Panel and Admin Panel:
##Gender:
##Class:
##Section:
##Stream:
➢ MySQL
THANK YOU !