Professional Documents
Culture Documents
SATYABHAMAPUR
FOR
EXAMINATION 2023-2024
BY
ANKIT BHARATIYA
ROLL NO:-
CLASS:-XII
2
BIODATA
CLASS : XII
ROLL NO :
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”
ANKIT BHARATIYA
CLASS-XII
4
DECLARATION
ANKIT BHARATIYA
CLASS-XII
ROLL NO –
5
BONAFIDE CERTIFICATE
THIS IS TO CERTIFY THAT “Ankit Bharatiya” OF
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
8
DBMS:-
Characteristics of DBMS:-
9
Types of files based on access:-
• Sequential file
• Serial file
• Random file
• Test file
• Binary file
#Hardware Specification:-
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
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:”))
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 (“ ”)
print (“ ”)
main ( )
def ClAttd ():
cl=input(“Class:”)
15
clt = input
(“Class teacher :
”)
t = int
(input (“class
strength : ”))
d = input (“Date : ”)
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] )
if task == 1 :
Addst ( )
elif task == 2 :
RemoveSt ( )
elif task == 3 :
21
DisplaySt ( )
else :
print (“Enter Valid Choice !!”)
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 :
op = ‘ y ’
while op in [‘ y ’ , ‘ Y ’ ] :
elif task == 2 :
DisplayTAttd ( )
else :
print (“Enter valid choice !!”)
23
while op in [‘ y ’ , ‘ Y ’ ] :
print (“1. Update Fees”)
AddBook ( )
elif task == 2 :
RemoveB ( )
elif task == 3 :
DisplayB ( )
else :
print (“Enter valid choice !!”)
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