0% found this document useful (0 votes)
24 views17 pages

Untitled Design

The document outlines a project for a Student Management System developed by Himanshu Sharma and Isshant Khatwa for the academic year 2024-2025. It details the system's purpose to streamline school administration tasks such as student records management, attendance tracking, and fee collection, aiming to enhance data accuracy and reduce paperwork. The document also includes Python source code for implementing various functionalities of the system.

Uploaded by

ik314534
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)
24 views17 pages

Untitled Design

The document outlines a project for a Student Management System developed by Himanshu Sharma and Isshant Khatwa for the academic year 2024-2025. It details the system's purpose to streamline school administration tasks such as student records management, attendance tracking, and fee collection, aiming to enhance data accuracy and reduce paperwork. The document also includes Python source code for implementing various functionalities of the system.

Uploaded by

ik314534
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/ 17

INFORMTICS

PRACTICES

PROJECT FILE

CLASS 12TH (2024-25)


INDEX
CERTIFICATE

THIS IS TO CERTIFIY THAT “STUDENT


MANAGEMENT ” INFOMATICS
PRACTICES PROJECT IS DEVELOPED BY
HIMANSHU SHARMA AND ISSHANT
KHATWA UNDER MY SUPERVISION IN
COMPUTER LAB OF “SBIOA PUBLIC
SCHOOL, JAIPUR” IN SESSION 2024-2025

INTERNAL EXTERNAL
SIGNATURE SIGNATURE
ACKNOWLEDGEMENT
INTRODUCTION
IN TODAY'S FAST-PACED WORLD, EFFICIENT
MANAGEMENT OF EDUCATIONAL INSTITUTIONS
IS ESSENTIAL FOR DELIVERING QUALITY
EDUCATION AND ENSURING SEAMLESS
ADMINISTRATIVE OPERATIONS. A STUDENT
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 STUDENT
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.
SOURCE CODE IN PYTHON
import mysql.connector as a

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


def main():
print("========== SCHOOL 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
print("") choice. Please select a valid option.")

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

You might also like