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

Cs Finally Done

This project report describes a school management system created using Python and MySQL. The system allows users to add, search, and remove student and staff records from databases. It provides menus to enter new student or staff data, search for records by roll number or name, and delete records. The code connects to MySQL databases, defines tables to store student and staff information, and includes functions for each menu option to insert, retrieve, or delete records as needed for school administration.

Uploaded by

aayushkjaat324
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Cs Finally Done

This project report describes a school management system created using Python and MySQL. The system allows users to add, search, and remove student and staff records from databases. It provides menus to enter new student or staff data, search for records by roll number or name, and delete records. The code connects to MySQL databases, defines tables to store student and staff information, and includes functions for each menu option to insert, retrieve, or delete records as needed for school administration.

Uploaded by

aayushkjaat324
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

SHRI GURU RAM RAI PUBLIC SCHOOL

GOVINDPURAM , GZB , UP

A PROJECT REPORT ON
SCHOOL MANAGEMENT SYSTEM

Submitted To: Submitted By:

Mrs. Rinku Dixit Mam Gopal


P.G.T. (Computer Science) Class :12A

Roll no:
CERTIFICATE

This is to certify that Gopal of class: XII A of Shri Guru Ram


Rai Public School has done his project on SCHOOL
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.

Internal Examiner External Examiner

Principal
ACKNOWLEDGMENT

It is with pleasure that I acknowledge my sincere gratitude to our


teacher, MRS. RINKU DIXIT MAM 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. RINKU DIXIT MAM
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.
Finally, I would like to express my sincere appreciation for all the
other students for my batch their friendship & the fine times that we
all shared together.
Hardware and Software Required
HARDWARE

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 ("*** MADE BY - 1. GOPAL 2. ROOPESH SINGHAL 3. AMAN


SEMWAL *** CLASS - XII-SCIENCE SCHOOL NAME- SHRI GURU RAM
RAM PUBLIC SCHOOL ***")

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("2= Enter Data for new Staff Data")

print("3= Search Student Data")

print("4= Search Staff Data")

print("S= Remove student record")

print("6= Remove staff record")

print("7= Exit")

ch=int(input("Enter your choice:"))


#PROCEDURE FOR ENTERING A NEW STUDENT RECORD

if(ch==1):
print("All information prompted are mandatory to be filled")

name=input("Enter name(limit 35 characters):")

classs= str(input("Enter Class:"))

roll_no=str(input("Enter Roll Number:"))

gender =str(input("Enter Gender(M/F):"))


mycursor.execute("insert into pystudent
values('"+name+"','"+classs+"','"+roll_no+"','"+gender+"')")
mydb.commit()
print("Student record has been saved successfully!!")
# PROCEDURE FOR ENTERING A NEW STAFF RECORD

elif (ch==2):
sname=str(input("Enter Staff member name:"))

gender=str(input("Enter Gender(M/F):"))

dep=str(input("Enter department or subject"))

sal=int(input("Enter Salary"))

mycursor.execute("insert into pystaff


values('"+sname+"','"+gender+"','"+dep+"','"+str(sal)+"')")

mydb.commit()

print("Staff record has been saved successfully!!!")


#PROCEDURE FOR displaying Student record

elif(ch==3):
roll_no=str(input("Enter student roll_no:"))

mycursor.execute("select * from pystudent where


roll_no='"+roll_no+"'")
for i in mycursor:
name,classs,roll_no,gender=i
print(f"Name:-{name}")
print(f"Class:-{classs}")
print(f"Roll Number:- {roll_no}")
print(f"gender:-{gender}")

#PROCEDURE FOR DISPLAYING staff record

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")

#PROCEDURE FOR DELETING STAFF RECORD

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

You might also like