0% found this document useful (0 votes)
4 views24 pages

Adobe Scan Jan 16, 2025

Uploaded by

Milan Dhara
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)
4 views24 pages

Adobe Scan Jan 16, 2025

Uploaded by

Milan Dhara
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/ 24

NAME-Swapnil Kanti

Mondal

ROLL- 18 *

CLASS- 12

*
TOPIC:-School
Management
ACKNOWLEDGEMENT
I would like to express my immense
*
gratitude to my computer science teacher *
Mr. Biplab Das
for the help and guidance she provided for
* completing this project.
Most of all Ithank our school
management, for providing us the facilities
and opportunity to do this project.
Lastly, I would like to thanks my
* classmates who have helped me in this
project. Their support made this project
fruitful.

2
*

CERTIFICATE
*
This is to certify that
*
Swapnil Kanti Mondal

has successfully completed his computer science


project titled

under the supervision and guidance of

in the partial fulfillment of the physics practical


assessment conduct during the
acadamic year

2023-2024.

Teacher's sign

3
*

HARDWARES AND
SOFTWARES REQUIRED

HARDWARE:
1. DESKTOP/LAPTOP
2.MOBILE PHONE

SOFTWARE:

1. PYTHON (LATEST VERSION) *

2.MySQL

4
INDEX

" Introduction
"About project
" Objective
" Description
" Benefit
"Python code
" Output
"Conclusion
ABOUT PROJECT

School Management Systems plays an essential role in the current educational system
School authoritics all over the world are cngaged in a lot of day-to-day administrative and
academic activities to manage and provide a better academic cxpericnee to students
effeetively. However, maintaining and keeping track of schooladministrative activities is
not an casy process in the fast-growing world. It requires hard work and often it is time
consuming.
For better perfomance of thc school administrative activitics of cducational institute,
they utilize School Management software nowadays. Such applications often oftfer many
features that help to enhance the performance of schools with minimum efforts. School
Management software does it by avoiding the manual paper works and automation of
many academic and administrative activitics.
So, the project made by me includes the facility of Adding. Displaying. Updating.
Searching and Deleting Student's Details. In the same wayitfurther includes the facility
of Adding. Displaying. Updating and Deleting Teacher's Details. So basically this project
helps us to make our task casicr and also reduces the time being wastcd unnccessarily
INTRODUCTION

This project is developed in Python platform with MySQL database as backend and has
bcen designcd to automate the processes of result and attendance for the students as well
as teachers of Prince Ashokraje Gackwad School. It has two uscrs admin and teacher. It
takes as input from teachers in fom of student details. attendance ete.. through a
Graphical User Interface. It also helps the administration staff to update the details of all
the list of teachers and students. It helps the parents and guardians and student to give a
feedback about the school and its performance and thus also helps the school these view
this review:s and improve the management kecping in mind the requirements mentioned
in the feedback. Positive feedback helps to motivate the school management team to
work better to give their school a better reputation! In a nutshell the program is aimed to
automate the complete pruocess of managing data of students and teachers of Prince
Ashokraje Gackwad Sehool with the utmost convenience of the team and also nullifies
the negative aspects offercd by paperwork like loss of data and data redundancy.

13
OBJECTIVE OF THE PROJECT

The objective of this project is to let the students apply the programming knowledge into
a real- world situation and get the students exposcd to how programming skills helps in
developing a good software.

º Write programs utilizing modern software tools.


º Apply object-oriented programming principles cffectively when developing small
to medium sized projects.

Write effective procedural code to solve small to medium sized problems.


º Students willdemonstrate abreadth of knowlcdge in computer science.
º Students will demonstrate ability to conduct research or applied Computer Science
project, requiring writing and prescntation skills which cxemplify scholarly style
in computer science.

DESCRIPTION

This project is aimed to automate the student management system. This project is
developed mainly to administrate the student records. The purpose of the project entitled
as to computerize the Front Office Management of student records in colleges, schools
and coaching's, to develop software which is user friendly. simple, fast and cost
cffective. Trnditionally. it was done manually. The main function of the system is to
register and store student details, retrieve and these details as and when requircd, and also
to manipulate these details meaningfully.

14
MODULES
1) Login Module: it is a multiple login interface that would allow you to secure
you' are Data (you may log in by entering ID and Password). And even you can
register a ncw l'D
2) Student module: it would have two submodulcs in it, i.c., add a new student and
remove data of a particular student.
3) Teacher module: it would have two submodules in it, ic. add a new teacher and
remove data of a particular teacher.
4) Fccdback module: it would allow parents and guardians to give fecdback and
Suggestions regarding administration and faculty.
BENEEITS OF PROPOSED SYSTEM
1) Less Paper Work: The paperwork is reduced to minimal level. Computer
preparesthe lists of students.
2) No Manual Work: There is no manual work. Alltheprocesses are done
throughcomputer.
3) Record of students: There is rocord of all the students who got registercd.
4) Register Maintenance is Easier: Register can now casily be maintaincd by
producinga report with a fornat of adding student's records.
S) Data Is Not Scattered: Data is now stored at onc place. Any information
regardinganything can be casily available to the user.
6) Uscr-fricndly Software: The software is GUl and is very casy to use.
7) Flexibility: The system is more flexible than the manual system being uscd presentiy.
8) Bencficial: The system is casy to use and roduccs the user's workload a lot. It
Provides timely &accurate information and there is automatic generation of reports.

10
PROJECT TITLE-"SCHOOL MANAGEMENT"
DBMS: MysQL
Host : localhost
User:root
Password: tiger
DataBase: mysql Table Structure: As per the Screenshot given below:

Table:Student

ECUProgram Files\WMysQLIMySCQL Senver 51\bin\mysql.exe


Enter pOss wOO
Commands end w ith
Vou MtOL
c o n n it y My$Q. GomEn ity seruer (GPL)

for he lp. T ype buFfor

Dataa ehang
Snane varchar(30) not nul.adnno int prinary key. dob date,

student ;

Pie ld Nu Defoult : Extra


Type
harC 30) NO NUILL
PRI
AULL
charc2,C20)

Table: Emp

imoyko y.enae varc her(20).


ac20

TVpo Ko Defnul
PRI
ES
HUll
date
Table:Fee

|CProgram Files\MMysQLMSQL Sere Slbinmysqleve


intuer- Oth

Nu Ko y ! Def a u l t Extra

Table:Exam
MyMsQL Sener5S
Eable har(20).adno dee imalC4.2),

Pild Typ

int
Python Code:
import os
import platform
import mysql.connector
#import pandas as pd
#from pandas import DatafFrame

def selection():
db = mysql.connector.connect(user='root', password='tiger, host-'localhost',database='mysql')
cursor = db.cursor(0
print( -\nWELCOME TO SCHOOL MANAGEMENT SYSTEM\n
print("1.STUDENT MANAGEMENT")
print("2.EMPLOYEE MANAGEMENT")
print("3.FEE MANAGEMENT")
print("4.EXAM MANAGEMENT")

ch=int(input("\nEnter ur choice (1-4): "))


if ch=-1:
print(\nWELCOME TO STUDENT MANAGEMENT SYSTEM\n')
print('a.NEW ADMISSION)
print('b.UPDATE STUDENT DETAILS)
print('cISSUE TC')
c=input("Enter ur choice (a-c):")
print("\nlnitially the details are..n')
display1()
if c=='a':

insert1)
print(\nModified details are..\n')
display1()
elif c=='b':
update1(})
print(\nModified details are..\n')
display1()
elif c=='c':

delete1()
print(\nModified details are..\n')
display1()
else:
print('Enter correct choice...!)
elif ch==2:
print('WELCOME TO EMPLOYEE MANAGEMENT SYSTEM')
print('a.NEW EMPLOYEE'") print('b.UPDATE STAFF DETAILS")
print('c.DELETE EMPLOYEE') cinput("Enter ur choice : ") if
c=='a':

insert2()
print("\nModified details are..\n')
display2()
elif c==b':
update2(0
print(\nModified details are..\n')
display2()
elif c=='c':
delete2()
print(\nModified details are.\n')
display2()
else:
print('Enter correct choice...!!")
elif ch==3:
print("WELCOME TO FEE MANAGEMENT SYSTEM')
print('a.NEW FEE") print('b. UPDATE FEE')
print('c.EXEMPT FEE') c=input("Enter ur choice : ")
if c=='a':

insert3()
elif c=='b':
update3(0
elif c=='c':
delete3()
else:
print('Enter correct choice...!!")
elif ch==4:

print('WELCOME TO EXAM MANAGEMENT SYSTEM")


print('a.EXAM DETAILS')
print('b.UPDATE DETAILS")
print('c.DELETE DETAILS')
c=input("Enter ur choice :")
if c=='a':
insert4()
elif c=='b:
update4()
elif c=='c:
delete4()
else:
print('Enter correct choice...!!"')
else:
print('Enter correct choice..!")

def insert1():
sname=input("Enter Student Name:")
admno=int(input("Enter Admission No:"))
dob=input("Enter Date of Birth(yyvy-mm-dd): ")
cls=input("Enter class for admission:")
cty=input("Enter City: ")
db = mysql. connector.connect(user='root', password='tiger, host='localhost',data base='mysql")
cursor = db.cursor()

8
sql="INSERT INTO Student(sname, admno, dob, cls, cty) VALUES ("%s',%d',"%s,"%s,"%s')"%(sname,admno,do b,cls,cty)
try:
cursor.execute(sql)
db.commit()
except:
db.rollback()
db.close()
#insert()

def display1():
try:
db mysql.connector.connect(user='root', password='tiger, host='localhost', data base='mysql')

cursor =db.cursor() sql ="SELECT* FROM student" cursor. execute(sq) results =cursor.fetchall()
for c in results: sname [0] admno= c[1] dob=c[2] ds=c[3) cty=[4) print ("
(sname=%s,ad mno=%d,dob=%s,cls=%s, cty=%s)" %(sname,admno, dob,cis, cty))

except:
print ("Error: unable to fetch data")
db.close() def update1():

try:
db =mysq.connector. connect(user='root', password='tiger, host='localhost',database='mysql)
cursor = db.cursor()
sql = "SELECT FROM student"
cursor.execute(sql)
results = cursor.fetchall()

for c in results:
sname = c[0]
admno= c[1]
dob=c[2]
cls=c[3]
cty=c[4]
except:
print ("Error: unable to fetch data")
print()
tempst=int[input("Enter Admission No:"))
temp=input("Enter new class:")
try:
sql = "Update student set cds=%s where admno='%d"" %(temp,tempst)
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close(0
def delete1():
try:
db = mysql.connector.con nect(user='root', password=tiger, host='localhost',database='mysql)
cursor = db.cursor)
sql = "SELECT * FROM student"
cursor.execute(sql)
results = cursor.fetchall()
for c in results:
sname = c[0]
admno= c(1]
dob=c[2]
cds=c[3]
cty=c[4]
except:
print ("Error: unable to fetch data")

temp=int(input("\nEnter adm no to be deleted:")


try:
sql = "delete from student where admno='%d'" % (temp)
ans=input("Are you sure you want to delete the record(y/n): ")
if ans=='y'or ans=="y:
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
def insert2():
ename=input("Enter Employee Name : ")
empno=int(input("Enter Employee No:"))
job=input("Enter Designation: ")
hiredate=input("Enter date of joining:")
db = mysql.connector.connect(user='root', password='tiger', host='localhost', data base='mysql')
Cursor = db.cursor)
sql="INSERT INTO emp(ename, empno,job,hiredate) VALUES ( "%s,"%d',"%s',"%s'"%(ename, empno,job,hired ate)
try:
cursor.execute(sql)
db.commit()
except:
db.rollback()
db.close() def
display2():
try:
db = mysql.connector.con nect(user='root', password=tiger", host='localhost',database=mysql)
cursor = db.cursor()
sql = "SELECT* FROM emp"
cursor.execute(sql)
results = cursor.fetchall()
for c in results:

ename = c[0]
empno= c[1]
job=c[2]
hiredate=c[3]
print ("(empno=%d,ename=%s,job=%s, hiredate=%s)" %(empno,en ame,job,h iredate))
except:
print ("Error: unable to fetch data")
db.close() def update2():

try:
db = mysql.connector.con nect(u ser='root', password='tiger, host='localhost',database='mysql)
cursor = db.cursor()
sql = "SELECT * FROM emp"
cursor.execute(sql)
results = Cursor.fetchall()
for c in results:
en ame = c[0]
empno c[1]
job=c[2]
hiredate=c[3]
except:
print ("Error: unable to fetch data")
print()
termpst=int( input("Enter Employee No:")
temp-input("Enter newdesignation :")
try:
sql = "Update emp setjob=%s where empno=%d" % (temp,tempst)
cursor.execute(sql)
db.com mit()
except Exception as e:
print (e)
db.close()
def delete2():
try:
db = mysql.connector.con nect(user='root', password='tiger', host='localhost',database='mysql)
cursor = db.cursor()
sql = "SELECT FROM emp"
cursor.execute(sql)
results = cursor.fetchall()
for c in results:

ename = c[o]
empno c[1]
job=c[2]
hiredate=c[3]
except:
print ("Error: unable to fetch data")

temp=int(input("\nEnter emp no to be deleted :")


try:
sql = "delete from emp where empno="%d'" %(temp)
ans=input("Are you sure you want to delete the record(y/n): ")
if ans==y' or ans==':
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
def insert3():
admno=int(in put("Enter adm no: ")
fee-float(input("Enter fee amount:")
month=input("Enter Month:")
db =mysql.connector.connect(user='root', password='tiger', host='localhost', database='mysql")
cursor = db.cursor()
sql="INSERT INTO fee(adm no,fee, month) VALUES ("%d', %d %s')"%(admno, fee,month)
try
Cursor.execute(sql)
db.commit()
except:
db.rollback()
db.close() def
display3():
try:
db = mysql.connector.connect(user='root', password='tiger, host='localhost',d atabase=mysql")
cursor = db.cursor()
sql = "SELECT FROM fee"
cursor.execute(sgl)
results = cursor.fetchall()
for c in results:
admno= c[oj
fee-c[1]
month-cl[2]
print (" (admno=%d,fee=%5,month=%s)" %(admno,fee, month))
except:
print ("Error: unable to fetch data")
db.close() def update3():

try:
db = mysql.connector.conne ct(user='root',password=tiger, host='localhost,database=mysql)
cursor = db.cursor()
sql = "SELECT FROM fee"
cursor.execute(sql)
results Cursor.fetchall()
for c in results:
admno= c[o]
fee=c[1]
month=c(2]
except:
print ("Error: unable to fetch data")
print()
tempst-int(input("Enter Admission No : ")
temp=input("Enter new class:")
try:
sgl ="Update fee set month=%s where admno=%d" %
(temp,tempst)
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
def delete3():
try:
db = mysql.connector.con nect(user=root, password='tiger, host='localhost',database='mysql)
Cursor = db.cursor()
sql = "SELECT* FROM fee"
cursor.execute(sql)
results = cursor.fetchall()
for c in results:
admno= c[0]
fee-c[1]
month=c[2]
except:
print ("Error: unable to fetch data")

temp-int(input("\nEnter adm no to be deleted:"))


try:
sgl = "delete from student where admno="%d'" % (temp)
ans=input("Are yousure you want to delete the record(y/n): ")
if ans=y' or ans==y:
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
def insert4():
sname=input("Enter Student Name: ")
admno=int(in put("Enter Admission No:")
per=float(input("Enter percentage : ")
res=input("Enter result: ")
db = mysql.connector.connect(user='root', password='tiger", host='localhost', database='mysql')
cursor = db.cursor()
sql="INSERT INTO exam(sname,admno,per,res) VALUES ('%s,'%d,'%s,"%s')"%(sname,admno,per, res)
try:

cursor.execute(sql)
db.commit()
except:
db.rollback()
db.close() def

display4():
try:
db = mysql.connector.con nect(user='root', password='tiger, host='localhost',database='mysql)
cursor = db.cursor()
sgl = "SELECT FROM exam"
cursor.execute(sql)
results = Cursor.fetchall()
for c in results:
sname = c[O]
admno= c[1]
dob=c[2]
ds=c[3]
cty=c[4)
print ("(sname, admno,per, res)"%(sname, admno,per, res) )
except:
print ("Error: unable to fetch data")
db.close()

def update4():
try:
db = mysql.connector. con nect(user='root', password=tiger, host='localhost,database='mysql)
cursor = db.cursor(0
sgl = "SELECT * FROM exam"
cursor.execute(sql)
results = cursor.fetchall()

for c in results:
sname = c[0]
admno=
dob=c[2]
cls=c(3]
cty=c[4]
except:
print ("Error: unable to fetch data")
print()
tempst-int(input("Enter Admission No:"))
temp-input("Enter new result: ")
try

sql = "Update student set res=%s where admno=%d" %(temp,tempst)


cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
def delete4):
try:
db = mysql.connector.conn ect(user='root, password=tiger, host='localhost', database='mysql')
cursor = db. cursor() sql ="SELECT FROM exam" cursor.execute(sql) results =cursor.fetchall() for
cin results: sname =c[o] admno= c[1] dob=c[2] cls=c[3] cty=c[4]

except:
print ("Error: unable to fetch data")
temp=int(input("\nEnter adm no to be deleted: ")
try:
sql="delete from exam where admno='%d" % (temp)
ans=input("Are you sure you want to delete the record(y/n):")
if ans=='y' or ans=='Y':
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
selection()
OUTPUT: INSERT DETAILS

Python 3.6.5 Shell


File Edit Shell Debug Options Window Help
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Inte
1) ) on win32
Type "copyright", "creditsm or "license ( ) " for more information.
>>>
= RESTARI: D:\pythonEXE\ DBconnectivity.py

WELCOME TO SCHOOL MANAGEMENT SYSTEM

1.STUDENT MANAGEMENT
2.EMPLOYEE MANAGEMENT
3.FEE MANAGEMENT
4.EXAM MANAGEMENT

Enter ur choíce (1l-4) : 1

WELCOME TO SIUDENI MANAGEMENT SYSTEM

a.NEW ADMISSION
b.UPDATE STUDENT DETAILS
c.ISSUE TC
Enter ur choice (a-c) : a

Initially the details are..

(9name=Reema, admno=2089, dob=l111-11-11, clg=5,cty=Delhi)


(9name=Jitu, admno=2341, dob=2012-01-01, cls-2, cty=Sehore)
(3name=gwerty, admno=3456, dob=3333-33-33, clg=3, cty=fghi)
Enter Student Name : Deepak Kumar
Enter Admissi on No : 2114
Enter Date of Birth (yYYY-nm-dd) : 2012-11--07
Enter clasg for admission: 1
Enter City : Indore

Modified details are..

(3name=Reema, admno=2089, dob=1111-11-11, clg=5, cty=Delhi)


(3name=Deepak Kumar, a dmno=2114, dob=2012-11-07, clg=1, cty=Indore)
(3name=Jitu, admno=2341,dob=2012-01-01,clg=2, cty=Sehore)
(3name=qwerty,admno=3456, dob=3333-33-33, clg=3, cty=fghj)
>>>

Ln: 39 Col: 4
UPDATE DETAILS

Le Python 3.6.5 ShelI


File Edit Shell Debug Options Window Help
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Inte
l)) on win32
Type "copyright", "credits" or "license () " for more information.
>>>

RESTART: D:/pythonEXE/ DBconnectivity.py


WELCOME TO SCHOOL MANAGEMENI SYSTEM

1.STUDENT MANAGEMENT
2.EMPLOYEE MANAGEMENT
3.FEE MANAGEMENT
4.EXAM MANAGEMENI

Enter ur choice (1-4) : 1

WELCOME TO STUDENT MANAGEMENT SYSIEM

a.NEW ADMISSION
b.UPDATE STUDENT DETAILS
C.ISSUE TC
Enter ur choice (a-c) : b

Initially the details are..

(9name-Reema, admno=2089, dob=1111-11-11,, cls=3, cty=Delhi)


(9name=qwerty, admno=3456, dob=3333-33-33, clg=3, cty=fghj )

Enter Admission No : 2089


Enter new class :5

Modified details are..

(3name=Reema, admno=2089,dob=1111-11-11, cls=5, cty-Delhi)


(9name=qwerty, admno-3456, dob=3333-33-33, cls-3, cty=fghj)
>>>

Ln: 34 Cok 4
DELETE DETAILS

Le Python 3.6.5 Shell


File Edit Shell Debug Options Window Help
Python 3.6.5 (v3.6.5:£59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Inte
l)] on win32
Type " copyright", "credits" or "license () " for more information.
>>>
RESTART: D:/pythonEXE/ DBconnectívity.py

WELCOME TO SCHOOL MANAGEMENT SYSTEM

2.STUDENT MANAGEMENT
2.EMPLOYEE MANAGEMENI
3.FEE MANAGEMENI
4.EXAM MANAGEMENT

Enter ur choice (1-4) : 1

WELCOME TO STUDENT MANAGEMENI SYSTEM

a.NEW ADMISsION
b.UPDATE STUDENT DETAILS
c.ISSUE TC
Enter ur choice (a-c) : c

Initially the details are..

(3name=ad, admno=11, ob=1111-11-11, cls=12, ctywe)


(9name=-Reema, admno=2089, dob=1111-11-11, clg=3, cty=Delhi)
(9name=qwerty, admno=34 56, dob=3333-33-33, cls=3, cty=fghj)
Enter adm no to be deleted : 11
Are you sure you want to delete the record(y/n):y
Modified details are..

(3name=Reema, admno=2089, dob=1111-11-11, clg=3, cty-Delhi)


(9name=qwerty, admno=3456, dob=3333-33-33, cls=3, cty=fghj )
>>>

Ln: 35 Col: 4

By: Milan Dhara &


Swapnil Kanti Mondal
Conclusion
The School Management System
project allows youto apply your
knowledge of MySQL database
management and SQL queries while
also learning how todevelop an
* automated system that can be used in
real-world applications. This project
not only helps in understanding
database design and implementation
but also improves your problem
solving sills, making it a valuable
learning experience for students.

You might also like