Cs Finally Done
Cs Finally Done
GOVINDPURAM , GZB , UP
A PROJECT REPORT ON
SCHOOL MANAGEMENT SYSTEM
Roll no:
CERTIFICATE
Principal
ACKNOWLEDGMENT
1. Pc
2. Mobile Phone
SOFTWARE
1. PYTHON 3.10.2
2. MySQL
3. Python Connector
CODING
# CODE FOR SCHOOL MANAGEMENT
print("********School Management********")
print("===============================================
====================================================
==============")
print()
#CREATING DATABASES
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",pass
wd="1234")
mycursor = mydb.cursor()
mycursor.execute("create database if not exists pyschool")
mycursor.execute("use pyschool")
#CREATING REQUIRED TABLES
mycursor.execute("create table if not exists pystudent(name
varchar(50) not null, class varchar(25) not null,roll_no
varchar(25),gender char(1))")
mycursor.execute("create table if not exists pystaff(name
varchar(50) not null, gender char(1) ,subject varchar(25) not
null,Salary varchar(25))")
mydb.commit()
while(True):
print("1= Enter Data for new student")
print("7= Exit")
if(ch==1):
print("All information prompted are mandatory to be filled")
elif (ch==2):
sname=str(input("Enter Staff member name:"))
gender=str(input("Enter Gender(M/F):"))
sal=int(input("Enter Salary"))
mydb.commit()
elif(ch==3):
roll_no=str(input("Enter student roll_no:"))
elif(ch==4):
name=str(input("Enter Name"))
mycursor.execute("select * from pystaff where
name='"+name+"'")
for i in mycursor:
name,gender,dep,sal=i
print(f"Name:- {name}")
print(f"gender:-{gender}")
print(f"departmant:- {dep}")
print(f"sal:- {sal}")
#PROCEDURE FOR DELETING STUDENT RECORD
elif(ch==5):
r_no=str(input("Enter Roll Number"))
mycursor.execute("delete from pystudent where
roll_no="+r_no+"")
mydb.commit()
print("Student Record is successfully Deleted")
elif(ch==6):
name=str(input("Enter Name"))
mycursor.execute("delete from pystaff where
name='"+name+"'")
mydb.commit()
print("Staff Record is successfully Deleted")
else:
break
********School Management********
*** MADE BY - 1. GOPAL 2. ROOPESH SINGHAL 3.
============================================
AMAN SEMWAL *** CLASS - XII-SCIENCE SCHOOL
============================================
NAME- SHRI GURU RAM RAM PUBLIC SCHOOL ***
=========================================
SQL TABLE
SQL TABLE
SQL TABLE
BIBLIOGRAPHY
1.WWW.SCRIBD.COM
2.WWW.WIKIPEDIA.COM
3.WWW.GOOGLE.COM
4.CLASS 12 NCERT BOOK BY SUMITA ARORA