Adobe Scan 28 Oct 2023
Adobe Scan 28 Oct 2023
C-ovnpvtter ScieV1ce
-Project
Submitted by:-
Name: Rema Deosi S
Class:XIIA
Class Roll no.: 4
Certificate
This is to certify that Rema Deosi Sundi of class
XII A of Oxford Public . School, Ranchi has
completed her project file under the supervision
of Mrs Rolley. She has taken care and shown
sincerity in completion of this project.
Internal External
Signature Signature
would like to express my greatest
gratitude to the people who helped and
supported me throughout my project. I
am thankful to my parents for helping me
in completion of this project. I am grateful
to Mrs. Rolley whose valuable guidance
has been the ones that helped me patch
this project and make it full proof success.
I would also like to express my gratitude to
the Principal Mr. Suraj Sharma for his
constant motivation during the course of
this investigation.
#1-/arlware Speci{icafions:-
• Processor : Dual core or above
• Hard Disk: 40 GB
• RAM : 1024 MB
AAanlajes of flrpjecf:-
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
9ntroluction
This pr5ect work automates schoofmanliljementSJStem.
,Schoof Manliljement .J3stem consist of task.; such re_Jisterfr!J students, affenlance
recordkeepiYJ_J controfto a6sentees, letaifs ofteacher, fee structure ,etc.
1Jata f fe hanlfiYJ_J has 6een ef{ecfive~ uselin the prOJram. 1Jata6ase is a coffecfion of
interrelate/lata to serve muffipfe appficafions i.e. lata6ase prD_Jrams create f fes of
informafion. So we see that f fes are workedwith most inside the prD_Jram ifse{f.
fJ'B'MS
The software re1uirelfor manliljement oflata is caffel1)1?, MS 9t has three molefs.
1<.§fafion mole[ 9t stores informafion in form of rows (carclinaff f:j) anl columns
(le_Jree).
1-fierarchicafmole[ 9n this f:jpe of mole(, we have muffipfe record;· inside a siYJ_Jfe
record.
Network mole[ 9n this, the lata is represented 63
coffecfions of record anl
63
refafionships is separate/ associafions.
Cfuracferimcs of fJ'B'MS
• 9t reduces the relunlanc_J,
• 1Jata sharin3
• 1Jata stanlarclizafion
• 1<.tlucfion oflata inconsisfenc_J
1jpes 0{6/es 6aselon acceJJ
• Se1uenfiaff fe
• Seriafffe
• 1<£,nlom ffe
• Testffe
• 1?,inary f fe
Source 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=inpu t ("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 . comrni t ()
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 roll=%s'
c=con.cursor()
c.execute(sql,data)
con . comrni t ()
print ( "Data Updated")
print("")
main ()
def DisplaySt():
cl=input("Class:")
data=(cl,)
sql='select * from student where class=%s'
c=con. cursor ()
INDEX
* 9ntroluction
* Software ~ 1-farlware reiuirements
* :l&fvanta_Jes ofthis f r1ect
* Source Cole in fl3thon
* Ouf(lut ,Screen
* M!)S{2,f. tahfes
* !.imitations
* <'future Scof!.es
* ~ihfiD_Jra/1,_y
c.execute(sql)
d=c . fetchall()
for i ind :
print("Attendance:" ,i[2])
print("")
main()
def UpdateFees():
cl=input("Class:")
tc=input("TechFee:")
t=input ("Total:")
data=(cl,)
c.execute(sql,data)
con. commit()
print("")
main()
def DisplayFees():
c=con.cursor()
c.execute(sql)
d=c. fetchall ()
for i ind :
for i ind :
print ("Name:", i [O])
print ("Class:", i [1])
print("")
print("")
main()
def AddT() :
a=input("Address : ")
c.execute(sql,data)
con . commit()
print("")
main()
def RemoveT():
c=con . cursor ()
c.execute(sql,data)
con . commit()
print("")
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 ind :
print ("Class:", i [O])
print("Class teacher:",i[l])
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=inpu t ("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 ()
print ( "Enter Valid Choice! ! ")
op=input("Continue in this table(y/n) :")
elif table=2:
op='y'
while op in [ 'y', 'Y']:
print ("l .Add teacher")
print("4.Display Tdetails")
AddT ()
elif task=2:
RemoveT ()
elif task==3:
Upda teSal ()
elif task=4:
DisplayT():
else:
print("Enter Valid Choice!!")
op='y'
if task=l:
ClAttd()
elif task=2:
DisplayClAttd ()
else:
elif table==4:
print("Total: ",i[S])
print("")
print("")
main()
def AddBook () :
bid=int(input("Book id : "))
t=input("Title : ")
a=input("Author: ")
p=input("Publisher: ")
c=con. cursor ()
c.execute(sql,data)
con . commit()
print("")
main()
def RemoveB () :
t=input("Title: ")
bid=int(input("Book id:"))
data=(t,bid)
c=con. cursor ()
c.execute(sql,data)
con. commit()
print ( "Data Updated")
print("")
main()
def DisplayB () :
c=con . cursor ()
c.execute(sql)
d=c . fetchall ()
for i ind :
print("Bid:",i[O])
print("Title: ",i[l])
print("")
main()
def main() :
ch='y'
print("")
if table==l :
op='y'
print("2.Remove student")
if task=l :
AddSt()
elif task==2 :
RemoveSt()
elif task=3 :
DisplaySt ()
else :
op='y'
while op in [ 'y', 'Y']:
print("l.Teacher attendance")
print("2.Display TAttd details")
TAttd()
elif task=2:
DisplayTAttd ()
else:
op='y'
while op in ['y' ,'Y']:
if task=l:
OpdateFees ()
elif task=2 :
DisplayFees ()
else:
elif table=6:
op='y'
if task=l:
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 Screen
Fiw Eat Sheil DdxJv Options W ~ tWp
Python 3.7.4 (tags/v3.7 . 4 : e09359112e,
,_ E. . """
phone : 8002742766
Debug Op6on, - Hdp •
32 Data entered successfull y
Type "help", "copyright", "credits" o:
>>> Continue in student table(y/n) : y
= RESTART: C:\Users\abc\AppData\Loca: 1.Add student
right", "credits" or "license()" for i 2 . Remove student
Pitts Modern School 3 . Display Stdetails
l . School enter task no : 2
2 . Teacher Class : 12A
3 . CLAttendance Roll no : 40
4 . TAttendence Data updated
5 . Feestructure
6 . Library continue i n student tabl e(y/n) : y
enter table no : 1 l .Add student
2 . Remove student
1.Add student 3 . Di spl ay Stdetails
2 . Remove student enter task no : 3
3 . Display Stdetails class : 12A
enter task no :1 Name :Rema
Student name :Rema Class : 12A
Class : 12A
Roll : 40
Roll no :40
Address : Siromtoli
Address : Siromtoli
Phone : 80027 42766
phone : 80027 42766
U!-~7A-
Fil, Edit Shetl Debug Opbons WWKlow Hdp
Fi.. Edit SW! 0-., Options Window Halp
-----+------+-----+---------+-------+
. ~qi>_des~ teacher;
I Field I Type I Null I Key I Default I Extra I
+---------+-------------+------+-----+---------+-------+
tcode varchar(30) NO PRI NULL
na111e varchar(30) YES NULL
salary varchar(30) YES NULL
address varchar(30) YES NULL
phone varchar(30) YES NULL
+---------+-------------+------+-----+---------+-------+
~ r!)WS in set (0.009 sec)
mysql> desc cattenpance;
I Field
cl teacher
totalst
date
I Type
varchar(40) YES
varchar(30) (-¥ES-
varchar(30) I YES
i
+-----------+-------------+------+----- ♦ ---------+-------+
I Null I Key I Default I Extra I
·-----------+-------------+------+-----+---------•-------+
class varchar(30) I YES NULL
NULL
NULL
NULL
I
absentees varchar(30) I YES NULL
+-----------+-------------+------+-----+---------·-------+
5 rows in set (0.012 sec)
roysql> desc: tattendance;
+------------+-------------+------+-----+---------+-------+
I Field I Type I Null I Key I Default I Extra I
I nane
date
attendance
I
varchar(30) YES
varchar(30)
varchar(30)
I NULL
YES
YES
I
·------------+-------------+------·-----·---------+-------+
NULL
NULL
3♦------------·-------------♦------♦-----♦
rows in set (0.016 sec) ---------·-------+
.
,
,
9
H-ANK
\