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

Delhi Public School, Bhilai: Project Work On "School Management System" Year-2020-2021

The document summarizes a school management system project created by students. It includes an overview stating that the system digitally monitors daily activities and manages resources on a single platform. It then lists the software and hardware requirements to run the project, including Python, MySQL database, and minimum system specifications. Finally, it provides the source code for the tables in the MySQL database to store student, employee, fee, and exam information for the school management system.

Uploaded by

Himanshu Sahu
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)
107 views

Delhi Public School, Bhilai: Project Work On "School Management System" Year-2020-2021

The document summarizes a school management system project created by students. It includes an overview stating that the system digitally monitors daily activities and manages resources on a single platform. It then lists the software and hardware requirements to run the project, including Python, MySQL database, and minimum system specifications. Finally, it provides the source code for the tables in the MySQL database to store student, employee, fee, and exam information for the school management system.

Uploaded by

Himanshu Sahu
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/ 48

Delhi Public School,

Bhilai

Project work o
“School Management System”
Year- 2020-202

Guided by: Prepared by:

Mr.A.H.Zunjan Pratham Gupta

Shreyansh P.

Monesh G

(CLASS-XII / ‘G’
1 | Page

i
)

Acknowledgement

We Pratham Gupta, Shreyansh P. and


Monesh G. of class XII-G would like to
express our sincere gratitude to our
Informatics Practices teacher
Mr.A.H.Zunjani (H.O.D COMPUTER
SCIENCE) for this vital support,
guidance and encouragement-without
which this project would not have
come forth.
We are also thankful to Principle Sir,
Mr.Prashant Vashishta for providing
the well-equipped Computer Lab for
completing the project

Student Name- Pratham Gupt

2 | Page

Certificate

This is to certify that the project work


entitled “School Management System”
has been completed by Pratham
Gupta, a student of class XII-G of Delhi
Public School, Bhilai. He has
submitted this project during the
academic session 2020-21 towards
partial ful lment of the CBSE board
He has completed the project under
my guidance and this is her original
work

SIGNATUR SIGNATUR
(EXTERNAL) (INTERNAL)

3 | Page

fi
E

.

Preface
This concise and comprehensive
project presents a detailed description
of A School Database Management
System along with the coding required
to produce it
The matter is self-explanatory all
regards to the subject, theory and
coding and provides a detailed coding
in an appropriate manner. The matter
has been unfolded in a lucid and
understandable way. Although every
care has been taken to emit error and
omission but still if there is any, it is
regretted.

4 | Page

Index
Sr.no TOPIC page
1. Brief overview of the 6
project
2. Need for 7
computerization
3. Software and 8
hardware
requirement
4. Advantages of 9
project
5. Source code of 10
project
6. Python code of 15
project
7. Output screens 44
8. Future enhancement 47
of project
9. Bibliography 48
5 | Page

School Management System


Brief overview of project
A school management system is a collec on of
computer instruc ons, especially designed to
manage the day to day administra ve task of
school. It allows schools to digitally monitor the
daily ac vi es along with managing all the
resources and informa on on a single pla orm
thus this system includes various features right
from maintaining the a endance to sending out
progress le ers to the parents.
This product contains each and every data
regarding student, payment etc., personal details
which can be updated by the student and viewed
by the administrator. It provides the detailed
informa on about the fee details. This system has
managed to ease the task of admins, teachers,
sta s, and others through a mul -func on
pla orm.

6 | Page
ff
tf

ti
ti

ti
tt
ti
ti
tt

ti
ti
ti
ti
tf

School Management System is capable of


managing each and every data regarding student,
payments etc.
School Management System helps us in managing
in an extremely e cient way.
This School Management System works in an
e cient manner.
****

7 | Page
ffi

ffi

SOFTWARE AND HARDWARE


REQUIREMENTS:

1.Software Requirements:

A. We used Anaconda Navigator (Spyder module)


for wri ng the code for the project . Moreover
PythonIDLE console was also used.

B. MySQL 8.0 is used for crea ng the local and


global database (server).

C. Opera ng systems:
• Windows XP or higher version
• MacOS X or higher (for apple users)

8 | Page



ti

ti

ti

2.Hardware Requirements:
A. Processor: Intel Pen um 4 or more
B. RAM: 1 GB or more
C.Hard disk: 40 GB hard disk recommended for
the primary par on.

We require LAN connec on for interac ng with


the database and local computers.

We also need a system with P4 processor; 1GB


RAM and database memory.

*****

9 | Page

ti
ti

ti

ti

ti
Source of the Code

DBMS: MySQL
Host : localhost
User: root
Password: ger
DataBase: mysql

10 | Page

ti

Table Structures: As per the Screenshots given below:

Table: Student

11 | Page

Table: Emp

12 | Page

Table: Fee

13 | Page

Table: Exam

******

14 | Page

Python code

import os

import pla orm

import mysql.connect

import pandas as pd

from pandas import DataFrame

def selec on():

db=mysql.connector.connect(user='root', password=' ger',

host='localhost',database='mysql')

cursor = db.cursor()

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

15 | Page
ti

tf

ti

if ch==1:

print('\nWELCOME TO STUDENT MANAGEMENT SYSTEM\n')

print('a.NEW ADMISSION')

print('b.UPDATE STUDENT DETAILS')

print('c.ISSUE TC')

c=input("\nEnter ur choice (a-c) : ")

display1()

if c=='a':

insert1()

print('\nModi ed details are..\n')

display1()

elif c=='b':

update1()

print('\nModi ed details are..\n')

display1()

elif c=='c':

delete1()

print('\nModi ed details are..\n')

display1()

16 | Page



























fi
fi
fi

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

c=input("Enter ur choice : ")

if c=='a':

insert2()

print('\nModi ed details are..\n')

display2()

elif c=='b':

update2()

print('\nModi ed details are..\n')

display2()

elif c=='c':

delete2()

print(‘\nModi ed details are..\n')

display2()

17 | Page





























fi
fi
fi

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

print('\nModi ed details are..\n')

display3()

elif c=='b':

update3()

print('\nModi ed details are..\n')

display3()
elif c=='c':

delete3()

else:

print('Enter correct choice...!!')

18 | Page




























fi
fi

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..!!')

19 | Page

















#Func on De ni on of Insert1 (First choice)
def insert1():

sname=input("Enter Student Name : ")

admno=int(input("Enter AdmissionNo : "))

dob=input("Enter Date of Birth(yyyy-mm-dd): ")


cls=input("Enter class for admission: ")

cty=input("Enter City : ")

db = mysql.connector.connect(user='root', password=' ger',


host='localhost',database='mysql')

cursor = db.cursor()

sql="INSERT INTO student(sname,admno,dob,cls,cty) VALUES


( '%s' ,'%d','%s','%s','%s')"%(sname,admno,dob,cls,cty)

try:

cursor.execute (sql)

db.commit()

except:

db.rollback()

db.close()

#insert1() ends.

20 | Page






















ti

fi

ti



ti





#Func on De ni on of Display1 (First choice)
def display1():

try:

db = mysql.connector.connect(user='root',
password=' ger', 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]

print (“(sname=%s, admno=%d, dob=%s, cls=%s,


cty=%s)” % (sname,admno,dob,cls,cty))

except:

print ("Error: unable to fetch data")

db.close()

#display1() ends.

21 | Page
































ti

fi

ti

ti

#Func on De ni on of Update1 (First choice)


def update1():

try:

db = mysql.connector.connect(user='root',
password=' ger', host='localhost',database='mysql')

cursor = db.cursor()

cursor.execute(sql)

for c in results:

sql = "SELECT * FROM student"

results = cursor.fetchall()

sname = c[0]

admno= c[1]

dob=c[2]

cls=c[3]

cty=c[4]

print()

tempst=int(input("Enter Admission No : "))


temp=input("Enter new class : ")

try:

sql = "Update student set cls=%s where

admno='%d'" % (temp,tempst)
22 | Page

































ti

fi

ti

ti

db.commit()

cursor.execute(sql)

Excep on as e:

print (e)

except:

print ("Error: unable to fetch data")


db.close()

#update1() ends.

23 | Page













ti

#Func on De ni on of Delete1 (First choice)


def delete1():

try:

db = mysql.connector.connect(user='root',
password=' ger', 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]

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


24 | Page





































ti



fi

ti

ti

if ans=='y' or ans=='Y':

cursor.execute(sql)

db.commit()

Excep on as e:

print(e)

except:

print ("Error: unable to fetch data")

db.close()

#delete1() ends.

25 | Page










ti

#Func on De ni on of Insert2 (Second choice)


def insert2():

ename=input("Enter Employee Name : ")

empno=int(input("Enter Employee No : "))

job=input("Enter Designa on: ")

hiredate=input("Enter date of joining: ")

db = mysql.connector.connect(user='root', password=' ger',


host='localhost',database='mysql')

cursor = db.cursor()

sql="INSERT INTO emp(ename,empno,job,hiredate) VALUES


( '%s' ,’%d','%s','%s')"%(ename,empno,job,hiredate)

try:

cursor.execute(sql)

db.commit()

except:

db.rollback()

db.close()

#insert2() ends.

26 | Page





















ti

fi

ti

ti

ti




#Func on De ni on of Display2 (Second choice)
def display2():

try:

db = mysql.connector.connect(user='root',
password=' ger', 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,ename,job,hiredate))

except:

print ("Error: unable to fetch data”)

db.close()

#Display2() ends.

27 | Page
































ti

fi

ti

ti

#Func on De ni on of Update2 (Second choice)


def update2():

try:

db = mysql.connector.connect(user='root',
password=' ger',
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()

tempst=int(input("Enter Employee No : "))

temp=input("Enter new designa on : ")

try:

sql = "Update emp set job=%s where empno='%d'"


%(temp,tempst)

28 | Page





































ti

fi
ti

ti

ti


db.commit()

cursor.execute(sql)

Excep on as e:

print (e)

except:

print ("Error: unable to fetch data")

db.close()

#upadte2() ends.

29 | Page















ti

#Func on De ni on of Delete2 (Second choice)


def delete2():

try:

db = mysql.connector.connect(user=‘root’,
password=' ger', 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]

temp=int(input("\nEnter empno. 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) : ")

30 | Page


































ti



fi
ti

ti

if ans=='y' or ans=='Y':

cursor.execute(sql)

db.commit()

Excep on as e:

print (e)

except:

print ("Error: unable to fetch data")

db.close()

#delete2() ends.

31 | Page

















ti

#Func on De ni on of Insert3 (Third choice)


def insert3():

admno=int(input("Enter adm no: "))

fee= oat(input("Enter fee amount : "))

month=input(“Enter Month: ")

db=mysql.connector.connect(user=‘root’,password=' ger',
host='localhost',database='mysql')

cursor = db.cursor()

sql="INSERT INTO fee(admno,fee,month) VALUES


( ‘%d','%d','%s')"%(admno,fee,month)

try:

cursor.execute(sql)

db.commit()

except:

db.rollback ()

db.close()

#insert3() ends.

32 | Page



















ti

fl

fi

ti



ti




#Func on De ni on of Display3 (Third choice)
def display3():

try:

db = mysql.connector.connect(user='root',
password=‘ ger', 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]

print ("(admno=%d,fee=%s,month=%s)" %
(admno,fee,month))

except:

print ("Error: unable to fetch data”)

db.close()

#display3() ends.

33 | Page





























ti

fi

ti

ti

#Func on De ni on of Update3 (Third choice)


def update3():

try:

db = mysql.connector.connect(user=‘root',
password=' ger', host=‘localhost',database='mysql')

cursor = db.cursor()

cursor.execute(sql)

for c in results:

sql = "SELECT * FROM fee”

results = cursor.fetchall()

admno= c[0]

fee=c[1]

month=c[2]

print()

tempst=int(input("Enter Admission No : "))

temp=input("Enter new class : “)

try:

sql = "Update fee set month=%s where admno='%d'"


% (temp,tempst)

cursor.execute(sql)

db.commit()
34 | Page





































ti

fi
ti

ti

Excep on as e:

print (e)

except:

print ("Error: unable to fetch data”)

db.close()

#update3() ends.

35 | Page







ti

#Func on De ni on of Delete3 (Third choice)


def delete3():

try:

db = mysql.connector.connect(user='root',
password=' ger',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]

temp=int(input("\nEnter admno 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) : ")

36 | Page



































ti

fi
ti

ti

if ans==‘y’ or ans==‘Y’:

db.commit()

cursor.execute(sql)

Excep on as e:

print(e)

except:

print ("Error: unable to fetch data")

db.close()

#delete3() ends.

37 | Page

















ti

#Func on De ni on of Insert4 (Fourth choice)


def insert4():

sname=input("Enter Student Name : ")

admno=int(input("Enter Admission No : "))

per= oat(input("Enter percentage : “))

res=input("Enter result: "

db = mysql.connector.connect(user='root', password=' ger',


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

#insert4() ends.

38 | Page




















ti

fl

fi

ti

ti




#Func on De ni on of Display4 (Fourth choice)
def display4():

try:

db = mysql.connector.connect(user='root',
password=' ger', host='localhost',database='mysql')

cursor = db.cursor()

sql = "SELECT * FROM exam”

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]

print ("(sname,admno,per,res)"%(sname,admno,p er,res) )

except:

print ("Error: unable to fetch data”)

db.close()

#display4() ends.

39 | Page
































ti

fi

ti

ti

#Func on De ni on of Update4 (Fourth choice)


def update4():

try:

db = mysql.connector.connect(user='root',
password=' ger', host=‘localhost',database='mysql')

cursor = db.cursor()

sql = "SELECT * FROM exam”

cursor.execute(sql)

for c in results:

results = cursor.fetchall()
sname = c[0]

admno=c[1]

dob=c[2]

cls=c[3]

cty=c[4]

print()

tempst=int(input("Enter Admission No : “))

temp=input("Enter new result : ")

try:

sql = "Update student set res=%s where


admno='%d'" %(temp,tempst)

40 | Page





































ti

fi
ti

ti

db.commit()

cursor.execute(sql)

Excep on as e:

print(e)

except:

print ("Error: unable to fetch data”)

db.close()

#update4() ends.

41 | Page













ti

#Func on De ni on of Delete4 (Fourth choice)


def delete4():

try:

db = mysql.connector.connect(user='root',
password=' ger', host='localhost',database='mysql')

cursor = db.cursor()

sql = "SELECT * FROM exam”

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]

temp=int(input("\nEnter admno. 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) : “)

42 | Page



































ti










ti


fi

ti



if ans=='y' or ans==‘Y’:

cursor.execute(sql)

db.commit()
Excep on as e:

print (e)

except:

print ("Error: unable to fetch data”)

db.close()

#delete4() ends.

*****

43 | Page

















ti

OUTPUT SCREEN

● Insert Details

44 | Page

● Update Details

45 | Page

● Delete Details

*****

46 | Page

Future enhancements
1 The solu ons are given as a proposal. The
sugges on is revised on user request and op mal
changes are made. This loop terminates as soon
as the user is gra ed with the proposal.
2 So on the whole, system analysis is done to
improve the system performance by monitoring it
and obtaining the best throughput possible from
it.
3.The intended audience for this School
Management System document is the internal
guides of the organisa on where the team has
developed the project. Further modi ca ons and
reviewing will be done by the organisa on and
deliver a nal version. The nal version of this
document is reviewed by the Internal Guides and
Head of the Department of the ins tute.

*****

47 | Page
.​
.​



ti
fi
ti
ti
fi
ti
fi
ti
fi
ti

ti

ti
BIBLIOGRAPHY
1 h p://www.google.com/
2 h p://en.wikipedia.org
3 Informa cs Prac ces with python by Sumita
Arora
4.h ps://www.W3SCHOOLS.com
5.h ps://www.geeksforgeeks.org
6.h ps://www.youtube.com/

******

48 | Page
.​
.​
.​


tt
tt
tt
tt
tt

ti
ti

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy