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

Computer Science Project

Uploaded by

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

Computer Science Project

Uploaded by

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

COMPUTER SCIENCE PROJECT

TOPIC: SCHOOL MANAGEMENT SYSTEM

Session: 2024-25

Submitted by: Submitted to:

Syed Mohammad Adil, Class:12-E Ms. Richa Mishra

Roll No:
CERTIFICATE

This is to certify that


Syed Mohammad Adil
Of 12-E, The Millennium School, has successfully completed his
Computer Science project on the topic ‘School Management System’
under the supervision of Ms. Richa Mishra, Computer Science teacher.

Ms. Richa Mishra Dr. Manjula Goswami


(Internal Examiner) (Principal)

External Examiner
ACKNOWLEDGEMENT

I would like to express our thanks to Ms. Richa Mishra and


everyone in the Computer Science department who
helped directly and indirectly in the timely completion of
this project.
I am also grateful to our parents and friends for motivating
and guiding us during the research as well as execution of
this project.

- Syed Mohammad Adil


BIODATA

NAME: Syed Mohammad Adil


CLASS: 12
SECTION: E
ROLL NO:
SUBJECT: Computer Science
SUBJECT CODE: 083
PROJECT TOPIC: School Management system
Project Topic:

SCHOOL MANAGEMENT
SYSTEM
INDEX

o Introduction
o Software and Hardware Requirements
o Advantages
o Program Code in Python
o Output
o MySQL Tables
o Limitations
o Future Scope
o Bibliography
INTRODUCTION

This project automates a school management system.


A School Management System consists of tasks such as
registering students, attendance record keeping, details of
teacher, fee structure, etc.
Data File Handling has been effectively used in the
program. A database is a collection of interrelated data
that serves multiple applications, or, a file of information. So,
we see that most of the files are worked with from inside the
program itself.

DBMS
The software required for management of data is called
DBMS. It has three models:
Relation model: it stores information in rows and columns.
Hierarchal model: in this type of model, we have multiple
records inside a single record.
Network model: in this, the data is represented by
collections of records and relationships are separated by
associations.
Software and Hardware Requirements

Software:
o Operating system: Windows 10/8/7
o Platform: Python IDLE 3.7
o Database: MySQL
o Languages: Python

Hardware:
o Processor: Dual core or above
o Hard Disk: 40 GB
o RAM: 1024 MB

ADVANTAGES OF THE PROJECT:


o Saves time for the administrators
o Improves teaching standards
o Fee collection
o Effortless grades management
o Ordering books for library accordingly
o Complete attendance automation
o Easy management of class information
PROGRAM 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=input("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.commit()

print("Data entered successfully")


print("")
main()
def Renovest():

cl=input("Class: ")
rwint=(input("Roll no:"))
data=(cl,e)
sql='delete from student where class=%s and roll=%s

c=con.cursor()
c.execute(sql, data)
con.commit()
print("Data Updated")
print("")
main()
def Displayst():
cl=input("Class: ")

data=(cl,)
sql='select from student where class=%s'
c=con.cursor()
c.execute(sql, data)
d=c.fetchall()
for i in d:

print("Name:",i[0])
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=input("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=input("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("")
main()
def UpdateSal():
n=input ("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 in d:

print("Tcode: ", i[0])


print("Name:",i[1])
print("Salary: ",i[2])
print("Address: ",i[3])

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

def ClAttd():
d=input ("Class: ")
clt=input ("Class teacher: ")
t=int(input("Class strength: "))

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=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 in d:
print ("Class: ",i[0])
print("Class teacher: ",i[1])
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=input ("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()
c.execute(sql)
d=c.fetchall()
for i in d:

print("Name:",i[0])
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 Display Fees():


sql='select from FeeStructure'
c=con.cursor()
c.execute(sql)

d=c.fetchall()
for i in d:
print ("Class: ",i[0])
print("Monthly: ",i[1])

print("Bus Fee:",i[2])
print("ScFee:", i[3])
print("TechFee:", i[4])
print ("Total: ", i[5])
print("")
print("")
main()

def AddBook():
bid=int(input("Book id: "))
t=input("Title:")
a=input ("Author: ")

p=input("Publisher: ")
g=input("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 in d:
print("Bid: ", i[0])
print("Title:",i[1])
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("The Millennium 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==1:
op='y'
while op in ['y', 'Y']:
print("1. Add student")

print("2. Remove student")


print("3. Display St detail")
task=int(input ("enter task no:"))
if task==1:

AddSt()
elif task==2:
RemoveSt()
elif task==3:

DisplaySt()
else:
print("Enter Valid Choice!!")
op=input ("Continue in this table (y/n):")
elif table==2:
op='y'
while op in ['y', 'Y']:

print("1. Add teacher")


print("2. Remove teacher")
print("3. Update Salary")
print("4. Display Tdetails")

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


if task==1:
AddT()
elif task==2:

RemoveT()
elif task==3:
UpdateSal()
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("1. Class Attendance")

print ("2. Display ClAttd details")


task=int(input("enter task no:"))
if task==1:
ClAttd()

elif task==2:
DisplayClAttd()
else:
print ("Enter Valid Choice!!")

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


elif table==4:
op='y'
while op in ['y', 'Y']:
print("1. Teacher attendance")
print("2. Display TAttd details")
task=int(input("enter task no:"))

if task==1:
TAttd()
elif task==2:
DisplayTAttd()

else:
print("Enter Valid Choice!!")
op=input("Continue in this table (y/n):")
elif table==5:

op='y'
while op in ['y', 'Y']:
print("1. Update Fees")
print("2. Display Fees details")
task=int(input("enter task no: "))
if task=1:
UpdateFees()
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("1. Add Book")

print ("2. Remove Book")


print("3. Display Book")
task=int(input("enter task no:"))
if task=1:

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
MySQL Tables
LIMITATIONS

o There is an allowance for improvement in online


examinations, as limited questions have been stored.
This requires consistent updating and maintenance.

o Backup of the data is necessary as storage capacity is


too small.

FUTURE SCOPE
o In the future, the system may include an accounting
system, better backup and restore facility.

o New modules can be easily added into the system.

o Student admission and online fee payment options can


be added.

o Online exams can be made more effective, efficient as


well as dynamic so that more students opt for them.
BIBLIOGRAPHY

o Computer Science with Sumita Arora

o www.wikipedia.org

o www.w3resource.com

o Computer Science with Preeti Arora

You might also like