School Management Analysis

Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

We would like to express our sincere gratitude to

m y r e s p e c t e d t e a c h e r M r s . J AY S H R E E
PARASHAR for her vital support, guidance and
encouragement without which this project would
not come forth from our side to help me completing
the project by giving ideas, thoughts and made this
project easy and accurate. We wish to thank our
parents for their undivided support and interest
who inspired us and encouraged us to go our own
way without which we would be unable to
complete our project.
In today's fast-paced world, efficient management of
educational institutions is essential for delivering quality
education and ensuring seamless administrative operations.
A School Management System (SMS) is a software solution
designed to handle various administrative tasks, from
managing student records to tracking faculty details,
streamlining fee collection, and generating reports. This IP
project focuses on developing a School Management System
that simplifies the administration of school-related data and
provides a user-friendly interface for both staff and students.
The primary goal is to create a system that automates and
integrates crucial functions such as attendance tracking,
grade management, timetable scheduling, and
communication between teachers and students. By
implementing this School Management System, schools can
improve data accuracy, reduce paperwork, and ensure timely
updates on essential information, ultimately creating a more
organized and effective learning environment. This project
aims to demonstrate how technology can contribute to the
efficient and smooth running of school administration,
benefiting students, teachers, and management alike.
In the modern educational landscape, schools and institutions
face a growing need for efficient and centralized management
systems. With numerous students, teachers, and
administrative staff to coordinate, a well-organized approach
is essential for maintaining high standards and ensuring
smooth day-to-day operations. A School Management System
(SMS) is designed to address these needs by offering a
comprehensive platform that automates and streamlines
various administrative functions. This project aims to develop
a School Management System that facilitates easy
management of student data, attendance records, grades,
and other essential information. By replacing traditional paper-
based and manual processes with a digital system, this
project will allow school administrators and faculty members
to manage records, track student progress, generate reports,
and maintain open communication within the institution.
Through this School Management System, schools can
achieve improved data accuracy, enhanced productivity, and
quick access to vital information, leading to more effective
educational outcomes. This project is not only an exploration
into the practical applications of database management and
programming skills but also a step toward creating smarter,
more resource-efficient educational environments.
TECHNOLOGY USED
SOURCE CODE IN PYTHON
import mysql.connector as a

con = a.connect(host='localhost', user='root', database='test', passwd='123456')

def main():
print("========== School Database Management System ==========")
print("1. Add Student")
print("2. Remove Student")
print("3. Display Students by Class")
print("4. Add Teacher")
print("5. Remove Teacher")
print("6. Update Teacher Salary")
print("7. Display All Teachers")
print("8. Add Class Attendance")
print("9. Display Class Attendance")
print("10. Add Teacher Attendance")
print("11. Display Teacher Attendance")
print("12. Update Fee Structure")
print("13. Display Fee Structure")
print("14. Add Book")
print("15. Exit")
print("======================================================")

choice = input("Enter choice (1-15): ")


print("")

if choice == '1':
AddSt()
elif choice == '2':
RemoveSt()
elif choice == '3':
Displayst()
elif choice == '4':
AddT()
elif choice == '5':
RemoveT()
elif choice == '6':
UpdateSal()
elif choice == '7':
DisplayT()
elif choice == '8':
ClAttd()
elif choice == '9':
DisplayClAttd()
elif choice == '10':
TAttd()
elif choice == '11':
DisplayTAttd()
elif choice == '12':
UpdateFees()
elif choice == '13':
DisplayFees()
elif choice == '14':
AddBook()
elif choice == '15':
print("Exiting system...")
con.close()
return
else:
print("Invalid choice. Please select a valid option.")
print("")

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 RemoveSt():
cl = input("Class:")
r = int(input("Roll no:"))
data = (cl, r)
sql = 'DELETE FROM student WHERE class=%s AND rollno=%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("Class:", i[1])
print("Name:", i[0])
print("Phone:", i[4])
print("Roll no:", i[2])
print("Address:", i[3])
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 = (salary, 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 Updated")
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:")
date = input("Date (YYYY-MM-DD):")
attendance = input("Attendance (comma-separated roll numbers):")
data = (d, date, attendance)
sql = 'INSERT INTO class_attendance (class, date, attendance) VALUES (%s, %s, %s)'
c = con.cursor()
c.execute(sql, data)
con.commit()
print("Attendance recorded successfully")
print("")
main()
def DisplayClAttd():
cl = input("Class:")
sql = "SELECT * FROM class_attendance WHERE class=%s"
c = con.cursor()
c.execute(sql, (cl,))
d = c.fetchall()
for i in d:
print("Class:", i[0])
print("Date:", i[1])
print("Attendance:", i[2])
print("")
print("")
main()

def TAttd():
tcode = int(input("TCode:"))
date = input("Date (YYYY-MM-DD):")
data = (tcode, date)
sql = 'INSERT INTO teacher_attendance (tcode, date) VALUES (%s, %s)'
c = con.cursor()
c.execute(sql, data)
con.commit()
print("Attendance recorded successfully")
print("")
main()

def DisplayTAttd():
sql = "SELECT * FROM teacher_attendance"
c = con.cursor()
c.execute(sql)
d = c.fetchall()
for i in d:
print("Tcode:", i[0])
print(”
MY SQL TABLE

You might also like