You are on page 1of 32

BUXI JAGABANDHU ENGLISH MEDIUM SCHOOL-II

SATYABHAMAPUR

COMPUTER SCIENCE PROJECT


ON

“SCHOOL MANAGEMENT SYSTEM”

FOR

ALL INDIA SENIOR SCHOOL CERTIFICATE

EXAMINATION 2023-2024

BY

ANKIT BHARATIYA

ROLL NO:-

CLASS:-XII

UNDER THE GUIDANCE OF

MR. ANSUMAN SWAIN

P.G.T COMPUTER SCIENCE

2
BIODATA

NAME : Ankit Bharatiya

DATE OF BIRTH : 31/12/2006

CLASS : XII

ROLL NO :

SUBJECT : Computer Science

TEACHER : Mr. Ansuman Swain

SCHOOL : Buxi Jagabandhu English Medium


School-II

NAME OF THE EXAMINATION : All India Senior


School Certificate Examination

ACADEMIC YEAR : 2023-2024

PROJECT TOPIC : School Management System

3
ACKNOWLEDGEMENT
Being a student of class XII , I undertook a computer
science project for the fulfillment of examination of
computer practical. I choose “SCHOOL
MANAGEMENT
SYSTEM”

In spite of time constraints and other hindrances, I


was and thanks able to complete the project on time.
I express my deep gratitude and thanks to my teacher
of computer science, Mr. Ansuman Swain and my
parents for their inspiration, guidance and keen
interest in this piece of work.

ANKIT BHARATIYA

CLASS-XII

4
DECLARATION

I “Ankit Bharatiya” of class –XII, bearing roll no.


of Buxi Jagabandhu English Medium School-II ,
Satyabhamapur . I am submitting this copy of
computer science project as evidence of my work in
computer laboratory.

ANKIT BHARATIYA

CLASS-XII

ROLL NO –

SCHOOL – BUXI JAGABANDHU ENGLISH MEDIUM


SCHOOL -II

5
BONAFIDE CERTIFICATE
THIS IS TO CERTIFY THAT “Ankit Bharatiya” OF

CLASS – XII HAS SUCCESSFULLY PREPARED

THE PROJECT ON “SCHOOL MANAGEMENT


SYSTEM”

FOR AISSCE UNDER THE GUIDANCE MR.


ANSUMAN

SWAIN’S IN THE COMPUTER SCIENCE


DEPARTMENT

OF BUXI JAGABANDHU ENGLISH MEDIUM SCHOOL-


II ,

SATYABHAMAPUR FOR THE ACADEMIC SESSION

2023-24.

Mr. ANSUMAN
SWAIN
6
SIGN OF EXAMINER
P.G.T COMPUTER
SCIENCE

BJEM-II
SATYABHAMAPUR

INDEX
SL NO. TOPIC Pg NO.

1 INTRODUCTION 7

2 SOURCE CODE IN 10
PYTHON

3 OUTPUT SCREEN 26

4 MySQL TABLE 32

7
5 BIBLIOGRAPHY 33

INTRODUCTION

This project work automates school management system.


School Management system consist of tasks such as
registering students, attendance record keeping control to
absentees , details of teacher , fee structure , etc. Data file
handling has been effectively used in the program .
Database is a collection of interrelated data to serve
multiple applications i.e. database programs create files of
information . so we see that files are worked with most
inside the program itself .

8
DBMS:-

The software required for management of data is called


DBMS. I t has three models. Relation model: It stores
information in form of rows [cardinality] and columns
[degree].

Hierarchical 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 Record and relationships is separated by
associations.

Characteristics of DBMS:-

• It reduces the redundancy.


• Data sharing
• Data standardization
• Reduction of data inconsistency

9
Types of files based on access:-
• Sequential file
• Serial file
• Random file
• Test file
• Binary file

Software and Hardware requirement


#Software Specification:-
• Operating system: Windows 10/8/7
• Platform: Python IDLE 3.7
• Database: MySQL
• Language: Python

#Hardware Specification:-

• Processor : Dual core or above


• Hard Disk : 40 GB
10
• RAM : 1024 MB

Advantages of Project :-
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

Source Code in Python


import mysql . connector as a
con=a.connect(host=’localhost’,user=’root’,database=’test’,passwd=’reema’) def
AddSt ( ) :
n = input (“Student name:”)

cl = input (“Class : ”)

11
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’
c = con . cursor ( )
c . execute (sql, data)
con . commit ( )
print (“Data updated”)
print (‘ ’)
main ( )
def DisplaySt ( ) :

cl = input (“Class:”)

12
data = (cl,r )
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)

13
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”)

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

cl=input(“Class:”)

15
clt = input
(“Class teacher :
”)
t = int
(input (“class
strength : ”))
d = input (“Date : ”)

ab = int (input (“No of absentees : ”))


data = (cl , clt , t , d , ab)
sql = ‘ insert into ClAttendance values (%s ,%s, %s , %s , %S)’
c = con . cursor ( )
c . execute (sql , data)
co . 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] )

16
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 (“Data : ”)
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] )

17
print (“Data : ” , 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’

18
c = con . cursor ( )
c . execute (sql)
d = c . fetchall ( )
for i in d :
print (“Class : ” , i [0] )
print (“Monthly : ” , i [1] )
print (“BusFee : ” , 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 (“ ”)
19
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 ( )
20
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 == 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 :

21
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 ’ ] :
22
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 (“ . 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 ’

23
while op in [‘ y ’ , ‘ Y ’ ] :
print (“1. Update Fees”)

print (“2 . Display Fees details”)

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

24
25
26
27
28
29
30
MySQL Tables

31
BIBLIOGRAPHY
1. Python.org
2.www.wikipedia.org
3.www.w3resource.com
4.www.tutorialspoint.com
5.www.youtube.com
6.www.learnpython.org

You might also like