0% found this document useful (0 votes)
25 views25 pages

Adobe Scan 28 Oct 2023

The document describes a school management system project in Python. It outlines the software and hardware requirements and provides the source code with functions for adding, removing, and displaying student, teacher, fee and other data from MySQL database tables. It also describes the advantages of the project.

Uploaded by

LAKSHYA SUTHAR
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)
25 views25 pages

Adobe Scan 28 Oct 2023

The document describes a school management system project in Python. It outlines the software and hardware requirements and provides the source code with functions for adding, removing, and displaying student, teacher, fee and other data from MySQL database tables. It also describes the advantages of the project.

Uploaded by

LAKSHYA SUTHAR
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/ 25

Session: 2020-2021

C-ovnpvtter ScieV1ce
-Project

Submitted by:-
Name: Rema Deosi S
Class:XIIA
Class Roll no.: 4
Certificate
This is to certify that Rema Deosi Sundi of class
XII A of Oxford Public . School, Ranchi has
completed her project file under the supervision
of Mrs Rolley. She has taken care and shown
sincerity in completion of this project.

I hereby certify that this project is upto my


expectations and guidance issued by CBSE.

Internal External

Signature Signature
would like to express my greatest
gratitude to the people who helped and
supported me throughout my project. I
am thankful to my parents for helping me
in completion of this project. I am grateful
to Mrs. Rolley whose valuable guidance
has been the ones that helped me patch
this project and make it full proof success.
I would also like to express my gratitude to
the Principal Mr. Suraj Sharma for his
constant motivation during the course of
this investigation.

Name: Rema Deosi Sundi


Class: XII A
Board roll no.:
P ctWor
School
Management
S¥,stem
.Software anl1farlware retfuiremenf
#Software Speci{icafions:-
• Operating system: Windows 10/8/7
• Platform : Python IDLE 3. 7
• Database : MySQL
• Languages : Python

#1-/arlware Speci{icafions:-
• Processor : Dual core or above
• Hard Disk: 40 GB
• RAM : 1024 MB

AAanlajes of flrpjecf:-
1. Saves time of teachers and administrators
2. Fee Collection
3. Improving Teaching Standards
4. Complete attendance automation
5. Effortless grades and marks management
6. Publishing of online forums and assignments
7. Easy management of class information analytical
reports
8. Ordering books for library accordingly
9ntroluction
This pr5ect work automates schoofmanliljementSJStem.
,Schoof Manliljement .J3stem consist of task.; such re_Jisterfr!J students, affenlance
recordkeepiYJ_J controfto a6sentees, letaifs ofteacher, fee structure ,etc.
1Jata f fe hanlfiYJ_J has 6een ef{ecfive~ uselin the prOJram. 1Jata6ase is a coffecfion of
interrelate/lata to serve muffipfe appficafions i.e. lata6ase prD_Jrams create f fes of
informafion. So we see that f fes are workedwith most inside the prD_Jram ifse{f.
fJ'B'MS
The software re1uirelfor manliljement oflata is caffel1)1?, MS 9t has three molefs.
1<.§fafion mole[ 9t stores informafion in form of rows (carclinaff f:j) anl columns
(le_Jree).
1-fierarchicafmole[ 9n this f:jpe of mole(, we have muffipfe record;· inside a siYJ_Jfe
record.
Network mole[ 9n this, the lata is represented 63
coffecfions of record anl
63
refafionships is separate/ associafions.
Cfuracferimcs of fJ'B'MS
• 9t reduces the relunlanc_J,
• 1Jata sharin3
• 1Jata stanlarclizafion
• 1<.tlucfion oflata inconsisfenc_J
1jpes 0{6/es 6aselon acceJJ
• Se1uenfiaff fe
• Seriafffe
• 1<£,nlom ffe
• Testffe
• 1?,inary f fe
Source Code in Python
import mysql.connector as a
con=a.connect(host='localhost' ,user='root' ,database='test' ,passwd='rema')
def AddSt () :
n=input ("Student name: ")
cl=input("Class:")
r=int(input("Roll no:"))
a=input ("Address:")
ph=inpu t ("Phone : " )
data=(n,cl,r,a,ph)
sql='insert into student values(%s,%s,%s,%s,%s)'
c=con. cursor ()
c.execute(sql,data)
con . comrni t ()
print ( "Data entered successfully")
print("")
main ()
def RemoveSt () :
cl=input("Class:")
r=int(input("Roll no:"))
data=(cl,r)
sql='delete from student where class=%s and roll=%s'
c=con.cursor()
c.execute(sql,data)
con . comrni t ()
print ( "Data Updated")
print("")
main ()
def DisplaySt():
cl=input("Class:")
data=(cl,)
sql='select * from student where class=%s'
c=con. cursor ()
INDEX
* 9ntroluction
* Software ~ 1-farlware reiuirements
* :l&fvanta_Jes ofthis f r1ect
* Source Cole in fl3thon
* Ouf(lut ,Screen
* M!)S{2,f. tahfes
* !.imitations
* <'future Scof!.es
* ~ihfiD_Jra/1,_y
c.execute(sql)

d=c . fetchall()

for i ind :

print ("Name:", i [O])

print ("Date:", i [1])

print("Attendance:" ,i[2])

print("")

print (" ")

main()

def UpdateFees():

cl=input("Class:")

m=input ("Monthly: ")

b=input ( "BusFee: ")

sc=input ( "ScFee: ")

tc=input("TechFee:")

t=input ("Total:")

data=(cl,)

sql='update FeeStructure set monthly=%s, BusFee=%s, ScFee=%s,


TechFee=%s, Total=%s'

c.execute(sql,data)

con. commit()

print ( "Data Updated")

print("")

main()

def DisplayFees():

sql='select * from FeeStructure'

c=con.cursor()

c.execute(sql)

d=c. fetchall ()

for i ind :

print ("Class:", i [O])


print ("Monthly:", i [1])

print ( "BusFee: ", i [2])

print ( "ScFee: ", i [3])

print ("TechFee: ", i [4])


main()
def UpdateSal():
n=inpu t ("Teacher : " )
tcode=int (input ( "Tcode : ") )
salary=int(input("Salary:"))
data=(n,tcode)
sql='update teacher set salary=%s where name=%s and tcode=%s'
c=con.cursor()
c.execute(sql,data)
con . commit()
print ( "Data Update")
print("")
main()
def DisplayT() :
sql='select * from teacher'
c=con.cursor()
c.execute(sql)
d=c . fetchall()
for i ind :
print ( "Tcode: ", i [O])
print ("Name:", i (l])
print ("Salary: " , i (2] )
print ("Address:", i [3])
print("Phone: ",i[4])
print("")
print("")
main()
def ClAttd () :
d=input("Class:")
cl t=input ( "Class teacher : ")
t=int(input("Class strenght:"))
d=input("Date: ")
ab=int(input("No of absentees:"))
data=(d,clt,t,d,ab)
sql='insert into ClAttendance values(%s,%s,%s,%s,%s)'
c.execute(sql,data)
d=c . fetchall()

for i ind :
print ("Name:", i [O])
print ("Class:", i [1])

print ("Roll no:" ,i [2])

print ("Address:", i [3])


print("Phone: ",i[4])

print("")
print("")
main()

def AddT() :

tcode=int (input ( "TCode : ") )

n=input( " Teacher name:")


s=int(input("Salary:"))

a=input("Address : ")

ph=inpu t ("Phone : " )


data=(tcode,n,s,a,ph)

sql='insert into teacher values(%s,%s,%s,%s,%s)'


c=con.cursor()

c.execute(sql,data)

con . commit()

print ( "Data entered successfully")

print("")
main()

def RemoveT():

n=inpu t ("Teacher : " )

tcode=int (input ( "Tcode : ")


data=(n,tcode)

sql='delete from teacher where name=%s and tcode=%s'

c=con . cursor ()
c.execute(sql,data)

con . commit()

print ( "Data Updated")

print("")
c=con. cursor ()
c.execute(sql,data)
con. commit()
print ( "Data entered successfully")
print("")
main()
def DisplayClAttd():
sql='select * from ClAttendance'
c=con. cursor ()
c . execute(sql)
d=c.fetchall()
for i ind :
print ("Class:", i [O])
print("Class teacher:",i[l])
print("Total St:",i[2])
print ("Date:", i [3])
print("Absentees:",i[4])
print("")
print (" ")
main()
def TAttd () :
n=input ("Name:")
d=input ("Date:")
a=inpu t ("Attendance : " )
data=(n,d,a)
sql='insert into tattendance values(%s,%s,%s)'
c=con. cursor ()
c.execute(sql,data)
con . commit()
print ( "Data entered successfully")
print("")
main()
def DisplayTAttd():
sql='select * from tattendance'
c=con. cursor ()
print ( "Enter Valid Choice! ! ")
op=input("Continue in this table(y/n) :")

elif table=2:

op='y'
while op in [ 'y', 'Y']:
print ("l .Add teacher")

print ( "2 . Remove teacher" )


print ( "3. Update Salary")

print("4.Display Tdetails")

task=int(input("enter task no:"))


if task=l:

AddT ()

elif task=2:

RemoveT ()

elif task==3:
Upda teSal ()

elif task=4:
DisplayT():

else:
print("Enter Valid Choice!!")

op=input("Continue in this table(y/n) :")


elif table==3:

op='y'

while op in [ 'y', 'Y']:


print("l.Class Attendance")

print("2.Display ClAttd details")


task=int(input("enter task no:"))

if task=l:
ClAttd()
elif task=2:

DisplayClAttd ()
else:

print("Enter Valid Choice!!")


op=input("Continue in this table(y/n) :")

elif table==4:
print("Total: ",i[S])

print("")

print("")
main()

def AddBook () :

bid=int(input("Book id : "))

t=input("Title : ")

a=input("Author: ")

p=input("Publisher: ")

g=inpu t ("Genre : " )


data=(bid,t,a,p,g)

sql='insert into library values(%s,%s,%s,%s,%s)'

c=con. cursor ()

c.execute(sql,data)
con . commit()

print ( "Data entered successfully")

print("")
main()

def RemoveB () :
t=input("Title: ")

bid=int(input("Book id:"))

data=(t,bid)

sql='delete from library where t=%s and bid=%s'

c=con. cursor ()
c.execute(sql,data)

con. commit()
print ( "Data Updated")

print("")
main()

def DisplayB () :

sql='select * from library'

c=con . cursor ()
c.execute(sql)

d=c . fetchall ()
for i ind :

print("Bid:",i[O])

print("Title: ",i[l])

print ("Author:", i [2])

print ("Publisher:", i [3])

print ("Genre:", i [4])

print("")

print (" ")

main()

def main() :

ch='y'

while ch in [ ' y ' , ' Y ' ] :


print("Pitts Modern School")

print ( "1. Student")

print ( "2. Teacher")

print ("3 . ClAttendance")

print ("4. TAttendance")


print ( "5. FeeStructure")

print ( "6. Library")

table=int(input("enter table no:"))

print("")

if table==l :

op='y'

while op in [ 'y', 'Y'] :

print ("l . Add student")

print("2.Remove student")

print("3 . Display St detail")

task=int(input("enter task no : "))

if task=l :

AddSt()

elif task==2 :
RemoveSt()

elif task=3 :

DisplaySt ()

else :
op='y'
while op in [ 'y', 'Y']:

print("l.Teacher attendance")
print("2.Display TAttd details")

task=int(input("enter task no:"))


if task=l :

TAttd()
elif task=2:

DisplayTAttd ()
else:

print ( "Enter Valid Choice!!")

op=input("Continue in this table(y/n) :")


elif table=S:

op='y'
while op in ['y' ,'Y']:

print ( "1 . Update Fees")

print("2.Display Fees details")


task=int(input("enter task no : "))

if task=l:
OpdateFees ()

elif task=2 :
DisplayFees ()

else:

print ( "Enter Valid Choice! ! ")


op=input("Continue in this table(y/n) :")

elif table=6:

op='y'

while op in ['y' ,'Y'] :


print("l . Add Book")
print ( "2 . Remove Book")

print ( "3 . Display Book")


task=int(input("enter task no:"))

if task=l:
AddBook()

elif task=2 :
RemoveB()
elif task=3:
DisplayB ()
else:
print ( "Enter Valid Choice! ! ")
op=input("Continue in this table(y/n) :")
else:
print ( "ENTER VALID CHOICE! ! ! ")
ch=input("Do you want to continue(y/n) :")
Output Screen
Fiw Eat Sheil DdxJv Options W ~ tWp
Python 3.7.4 (tags/v3.7 . 4 : e09359112e,
,_ E. . """
phone : 8002742766
Debug Op6on, - Hdp •
32 Data entered successfull y
Type "help", "copyright", "credits" o:
>>> Continue in student table(y/n) : y
= RESTART: C:\Users\abc\AppData\Loca: 1.Add student
right", "credits" or "license()" for i 2 . Remove student
Pitts Modern School 3 . Display Stdetails
l . School enter task no : 2
2 . Teacher Class : 12A
3 . CLAttendance Roll no : 40
4 . TAttendence Data updated
5 . Feestructure
6 . Library continue i n student tabl e(y/n) : y
enter table no : 1 l .Add student
2 . Remove student
1.Add student 3 . Di spl ay Stdetails
2 . Remove student enter task no : 3
3 . Display Stdetails class : 12A
enter task no :1 Name :Rema
Student name :Rema Class : 12A
Class : 12A
Roll : 40
Roll no :40
Address : Siromtoli
Address : Siromtoli
Phone : 80027 42766
phone : 80027 42766

,._ E.. Sh<II D<""9 0,,00,,, W.,_ Hdp


A Ui ~UA""" Z
fiJ< E.. Sh<II D<""9 ()pbon,- Hdp
A
Class : 12A enter task no : 1
Name :Raj Tcode : 101
class : 12A Teacher name :Ajay
Roll : 41 Salary : 64000
Address :Bari atu Address :Hi noo
Phone : 6204881532 Phone : 9430182766
Continue in teacher table(yn) : y
1 . Add teacher
Continue in student table(y/n) : n 2 .Remove teacher
Do you want to continue(y/n) :y 3 .Update Salary
Pitts Modern School 4 .Display Tdetail s
l . Student enter task no :2
2 . Teacher Teacher :Ajay
3 . CLAttendance Tcode : 101
4 . TAttendance Data Updated
5 . Feestructure
6 . Library Continue in teacher table(y/n) :y
enter table no : 2 l .Add teacher
2 .Remove teacher
1 .Add teacher 3 .Update salary
2 . Remove teacher 4 .Display Tdetails
3 . Update Salary enter task no : 3
4 . Display Tdetails Teacher :Ajay
enter task no : 1 Tcode : 101
c-: :-~7A- [. -UA
... ... """ ....... °""""' - -
Continue in TAttendance table(y/n) : n
fii, E... Sh<II
1 . Update Fees
D,bug()p6on, _ H..,,

Do you want to c ontinue(y/n) :y 2 . Display Fees


Pitts Modern School enter task no : 2
I . Student Class : 12
2 . Teacher Monthly : 3700
3 . CLAttendance BuaFee : 500
4 . TAttendance ScFee : 200
5 . FeeStructure TechFee : 200
6 . Library Total : 4600
enter table no : 5
Class : 11
l . Updat Fees Monthly : 3700
2 . Display Fees BusFee : 500
enter task no : 1 ScFee : 200
Class : 12A TechFee : 200
Monthly : 3700 Total : 4600
BusFee : 500
ScFee : 200
TechFee : 200 Continue in Feestructure table(y/n) : n
Total : 4600 Do you want to continue(y/n) : y
Data Update Pitts Modern School
l . Student
Continue in Feestructure table(y/n) : y 2 . Teacher
l . Update Fees 3 . CLAttendance

U!-~7A-
Fil, Edit Shetl Debug Opbons WWKlow Hdp
Fi.. Edit SW! 0-., Options Window Halp

3 . CLAttendance Continue in Library tabl e(y/n) : y


4 . TAttendance enter task no : 2
5 . Feestructure Title : Da Vinci Code
6 . Library Book id : 11091
enter tabl e no : 6 Data Updated

l . Add Book Continue in Library table(y/n) : y


2 . Remove Book enter task no : 3
3 . Display Book Book id : 11091
enter task no : 1 Title : Da Vinci Code
Book id : 11091 Author : Dan Brown
Title : Da Vinci Code Publisher : Transworld
Author :Dan Brown Genre : Thriller
Publisher : Transworld
Genre : Thriller Book id : 11092
Data entered successfully Title : Twilight
Author : Stephenie Meyer
Continue in Library table(y/n) : y Publisher : Little Brown Book
enter task no : 2 Genre : Fiction
Title:Da Vinci Code
Book id : 11091
Data Updated Continue in library table(y/n) : n
Do you want to continue(y/n) : n
Continue in Library table(y/n) : y >>>
... E.. Shdl l><bug o,,.;o,. W.-Hdo
w Fite Edit Shell Debug Opuons WWKlow Hdp
w
Tcode : 101 Continue in teacher table(y/n) : n
Salary : 68000 Do you want to c ontinue(y/n : y
pata Updated Pitts Modern School
l . Student
Continue i n teacher tabl e(y/n) : y 2 . Teacher
1 . Add teacher 3 . CLAttendance
2 . Remove teacher 4 . TAttendance
3 . Update Salary 5 . FeeStructure
4 . Display Tdetails 6 . Library
enter task no : 4 enter table no : 3
Tcode : 101
Name :Ajay l . Class Attendance
Salary : 68000 2 . Display CLAttd details
Address : Hinoo enter task no : 1
Phonr : 9430182766 Class : 12A
Class teacher :A Singh
Tcode : 102 Class strength : 60
Name : Seema Date : 2021 - 02 - 13
Salary : 51000 No of absentees : 15
Addres :Kokar Data entered successfully
Phone : 8340484603
Continue i n CI.Attendance table(y/n) : y
l . Class Attendance
Continue in teacher table(y/n) : n 2 . Display CLAttd details

l.j "Y"- UA ....


Fihr Edit Shel Debu9 a.,tioM W1ndow Hdp
w fiw Edit Shdl ~ Optiofb W,,.._ Hdp

2 . Display CLAttd details 6 . Library


enter task no : 2 enter table no : 4
Claa : 12A
Class teacher :A Singh l . Teacher Attendance
Total St : 60 2 . Display TAttd details
Date : 2021- 02 - 13 enter task no : 1
Absentees : 15 Name :Ajay
Date : 2021 - 03- 13
Class : 12B Attendance : Present
Class teacher : RK Sinha Data entered successfully
Total St : 67
Date : 2021- 0-13 Continue in TAttendance table(y/n) : y
Absentees : 12 1 . Teacher Attendance
2 . Display TAttd details
enter task no : 2
Continue i n CI.Attendance table(y/n) : n Name :Ajay
Do you want to cntinue(y/n) : y Date : 2021 - 02 - 13
Pitts Modern School Attendance : Present
l . Student
2 . Teacher Name:Seema
3 . CLAttendance Date2021-02-13
4 . TAttendance Attendance :Absent
5 . Feestructure
6 . Library
MySQL Tables

mysql> desc: ~udent;


+--------- ♦ -- - -----------+------•-----+---------•-------+
I Field I Type I Null) Key I Default I Extra I
varchar(30) YES NULL I
·---------♦-------------♦------·-----+---------·-------·
nane
IIclass
roll
address
phone
varchar(30)
varchar(30)
varchar(30)
varchar(30)
YES
YES
YES
YES
PRI
NULL
NULL
NULL
NULL
I
+----- - --- ♦ ----- - -------+-- - -- -+- ----+---- - ----+-------+
5 rows in set (0.145 sec)

-----+------+-----+---------+-------+
. ~qi>_des~ teacher;
I Field I Type I Null I Key I Default I Extra I
+---------+-------------+------+-----+---------+-------+
tcode varchar(30) NO PRI NULL
na111e varchar(30) YES NULL
salary varchar(30) YES NULL
address varchar(30) YES NULL
phone varchar(30) YES NULL
+---------+-------------+------+-----+---------+-------+
~ r!)WS in set (0.009 sec)
mysql> desc cattenpance;

I Field

cl teacher
totalst
date
I Type

varchar(40) YES
varchar(30) (-¥ES-
varchar(30) I YES
i
+-----------+-------------+------+----- ♦ ---------+-------+
I Null I Key I Default I Extra I
·-----------+-------------+------+-----+---------•-------+
class varchar(30) I YES NULL
NULL
NULL
NULL
I
absentees varchar(30) I YES NULL
+-----------+-------------+------+-----+---------·-------+
5 rows in set (0.012 sec)
roysql> desc: tattendance;
+------------+-------------+------+-----+---------+-------+
I Field I Type I Null I Key I Default I Extra I

I nane
date
attendance
I
varchar(30) YES
varchar(30)
varchar(30)
I NULL
YES
YES
I
·------------+-------------+------·-----·---------+-------+
NULL
NULL
3♦------------·-------------♦------♦-----♦
rows in set (0.016 sec) ---------·-------+

·mysql> desc;. feestructure;


+---------+-------------+------+-----+---------+-------+
I Field I Type I Null I Key I Default I Extra I
+---------+-------------+------+-----+---------+-------+
I NULL
class
[ monthly
I busfee
scfee
techfee
varchar(30) YES
varchar(30)
varchar(30)
varchar(30)
varchar(30)
YES
YES
YES
YES
I I
I NULL
NULL
NULL
NULL
I total varchar(30) YES NULL
+---------·-------------+------+-----+---------+-------+
6 rows in set (0.005 sec)
mysql> ·desc library;
♦-----------+-------------♦ ------+----- ♦---------·-------♦
I field I Type I Null I Key I Default I Extra I
·-----------+-------------·------·-----+---------+-------+
bid I varchar(30) I YES I NULL
I author I varchar(30) I YES NULL
I publisher I varchar(30) I YES
genre I varchar(30) I YES I NULL
NULL
+----------- ♦ -------------+------+----- ♦ ---------+-------+
4 raws in set (0.018 sec)
Bibliograuhy
• Computer Science with Sumita Arora
• Computer Science with Preeti Arora
• www.wil<ipedia.org
• www.w3resource.com
• Under the guidance of subject teacher
Future Scone
• In future our system can include accounting
system, good bacl<up, and restore facility.
• System is so much flexible so in future it can
increase easily and new modules can be added
easily.
• You can add student admission as well as pay
online fees.
• Mal<e online exams more effective, efficient and
more dynamic so that it helps to get good
support from the student.
Limitations
• The limitation of the application is more
improvement in online examinations.
Limited questions had been stored and
need more updation and maintenance of
the application.
• Storage capacity is too small so that it
cannot be stored large amount of data so
that backup is necessary for the future
improvement.
~
~.
~
,f
.,.-.. '

.
,

,
9
H-ANK
\

You might also like