Cs Project Akshit
Cs Project Akshit
eovnpvtter Scievice
1'roject
Suhilli te
Name: Rema Deosi S
Class: XII A
Class Roll no.: 40
Board Roll no.:
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
£~
INDEX
* 9nfrocluction
* ,Software q: 1-farclware reiuiremen6-
* 1llvanfa_Jes ofthis f r9ect
* ,Source Cole in fl3thon
* Ouf(luf ..S'creen
* M:J,SQt. ta6fes
* f.imifafions
* ~ufure ,Scofes
* 13i6HD_Jrafh!J
9nfroluction
7his (1r?}ect work automates schoofmana_JementJ_JStem,
j"choof Mana_Jement j)stem consist of tash· such re_JisteriYJ_J students, attendance
recorlkee(1iYJ_J controfto absentees, detaiG ofteacher, fee structure ,etc,
1Jata fife hanlf;YJ_J has been ef/ecfive& uselin the (1r0Jram, 1Jatabase is a coffecfion of
interrefatecfdata to serve mu(ti(lfe a(1(1fications i.e. database (1r0Jrams create fifes of
informafion, j"o we see that fifes are workecfwith most inside the (1rD_Jram ifse{f,
1J'81vfS
7he software re1uirelfor mana_Jement ofdata is caffecf1)13, )v(j~ 9t has three modeG.
1<.§fafion modef: 9t stores informafion in form of rows (carJnafif_J) anl cofumns
(IB_Jree},
1-fierarchicafmodef: 9n this l_Jf1e of mode( we have muffi(1fe recorJ inside a siYJ_Jfe
record
Network modef: 9n this, the data is re(1resentecf 63
coffecfions of recorl anl
63
refafionshifs is sefaratecf associafions.
Characterimcs of1J'81vfS
• 9t reduces the relundanc_J,
• 1Jata shariYJ_J
• 1Jata standarJzafion
• 1<_tluction ofdata inconsistenc_J
1j_pes o{{ifes basedon access
• j"e1uenfiaffife
• j"eriaffife
• ~nlomfife
• 7estfife
• 13inary fife
Software anl1-farlware reifuiremenf
#Software Speci{icatiom:-
• Operating system: Windows 10/8/7
• Platform : Python IDLE 3. 7
• Database : MySQL
• Languages : Python
#1farlware Specifications:-
• Processor : Dual core or above
• Hard Disk: 40 GB
• RAM : 1024 MB
Nvanfa!Jes of'Prpjecf:-
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='rema')
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 roll=%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 ind:
print("Name:",i[O])
print("Class:",i[l])
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)
con . commit ()
print ( "Data entered successfully")
print (" ")
main()
def RemoveT():
n=inpu t ("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=inpu t ("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")
print (" ")
main()
def DisplayT():
sql='select * from teacher'
c=con.cursor()
c. execute (sql)
d=c. f etchall ()
for i ind:
print("Tcode:",i[O])
print("Name:",i[l])
print("Salary:",i[2])
print("Address:",i[3])
print("Phone:",i[4])
print("")
print("")
main()
def ClAttd():
d=input ("Class:")
cl t=input ( "Class teacher:")
t=int(input("Class strenght:"))
d=input ("Date:")
ab=int(input("No of absentees:"))
data=(d,clt,t,d,ab)
sql='insert into ClAttendance values(%s,%s,%s,%s,%s)'
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. f etchall ()
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 ()
c. execute (sql)
d=c. fetchall ()
for i ind:
print("Name:",i[O])
print ( "Date : " , 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'
c=con. cursor ()
c. execute (sql)
d=c. f etchall ()
for i ind:
print("Class:",i[O])
print("Monthly:",i[l])
print("BusFee:",i[2])
print("ScFee:",i[3])
print ( "TechFee: ", i [4])
print("Total:",i[S])
print("")
print (" ")
main()
def AddBook():
bid=int (input ( "Book id:"))
t=input ("Title:")
a=input ("Author:")
p=input("Publisher:")
g=inpu t ("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("")
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 ind:
print("Bid:",i[O])
print("Title: ",i[l])
print ("Author:", i [2])
print("Publisher:",i[3])
print ( "Genre : " , i [ 4 ] )
print("")
print (" ")
main()
def main():
ch='y'
while ch in ['y' ,'Y']:
print("Pitts Modern School")
print ( "l. Student")
print("2.Teacher")
print("3.C1Attendance")
print ( "4. TAttendance")
print("S.FeeStructure")
print ( "6. Library")
table=int(input("enter table no:"))
print("")
if table==l:
op='y'
while op in ['y' ,'Y']:
print("l .Add student")
print ( "2. Remove student")
print("3.Display St detail")
task=int(input("enter task no:"))
if task==l:
AddSt()
elif task==2:
RemoveSt()
elif task==3:
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("4.Display Tdetails")
task=int(input("enter task no:"))
if task==l:
AddT ()
elif task==2:
RemoveT ()
elif task==3:
Upda teSal ()
elif task==4:
DisplayT():
else:
elif table==3:
op='y'
while op in ['y' ,'Y']:
print("l.Class Attendance")
print("2.Display ClAttd details")
if task==l:
ClAttd()
elif task==2:
DisplayClAttd ()
else:
elif table==4:
op='y'
while op in ['y' ,'Y']:
print("l.Teacher attendance")
print("2.Display TAttd details")
task=int(input("enter task no:"))
if task==l:
TAttd()
elif task==2:
DisplayTAttd ()
else:
print ( "Enter Valid Choice! ! ")
op=input("Continue in this table{y/n) :")
elif table==S:
op='y'
while op in ['y' ,'Y']:
print ( "1. Update Fees")
print("2.Display Fees details")
task=int(input("enter task no:"))
if task==l:
Upda teFees ()
elif task==2:
DisplayFees()
else:
print ( "Enter Valid Choice! ! ")
op=input("Continue in this table(y/n) :")
elif table==6:
op='y'
while op in ['y' ,'Y']:
print ( "1. Add Book")
print("2 .Remove Book")
print ( "3. Display Book")
task=int(input("enter task no:"))
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!!!")
Ii Pylhon 3.7
A Sllel
[iPy11,on 3.7A Shll Filo Edit Shell Debu9 Options W- Hdp
File Edit Shell Debu9 Options W - Hdp
_r5ql>_des~teacher, -----+------+-----+---------+-------+
[ Field t Type I Null I Key I Default I Extra I
+---------+-------------+------+-----+---------+-------+
tcode varchar(30) NO PRI NULL
name 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::: catte npance;
+-----------+-------------+------+-----+--------- ♦ -------+
[ Field I Type I Null I Key I Default I Extra I
I na1ne
date
attendance
I
varchar(30) YES
varchar(30)
varchar(30)
I
+------------+-------------+------+-----+---------+-------+
NULL
YES
YES
I NULL
I NULL
♦------------♦-------------♦------♦-----♦---------♦-------+
3 rows in set (0.016 sec)
mysql> desc;. feestructure;
+---------+-------------+------+-----+---------+-------+
( Field I Type I Null 1 Key I Default I Extra I
+--------- ♦ -------------+------+-----+---------+-------+
class varchar(30) YES NULL
l monthly varchar(30) YES NULL
busfee varchar(30) YES NULL
I scfee varchar(30) VES NULL
I techfee
total
varchar(30)
varchar(30)
VES
YES
+---------+-------------+------+-----+---------+-------+
NULL
NULL
6 rows in set (0.005 sec)
mysq!> ·desc library;
•-----------+-------------♦------♦ -----+---------+-------+
I Field I Type I Null I Key I Default I Extra I
+----------- ♦ -------------+------ ♦----- ♦ ---------+-------+
I bid varchar(30) YES I NULL
l author I varchar(30) I YES I NULL
I publisher
genre
I
varchar(30) I YES
varchar(30) I YES
I NULL
NULL
+-----------+-------------+------+-----+---------+-------+
4 rCMS in set (0.018 sec)
Limitations
• The limitation of the application is more
improvement in online examinations.
Limited questions had been stored and
need more updation and maintenance of
the application.
• Storage capacity is too small so that it
cannot be stored large amount of data so
that backup is necessary for the future
improvement.
Future Scope
• In future our system can include accounting
system, good bacl<up, and restore facility.
• System is so much flexible so in future it can
increase easily and new modules can be added
easily.
• You can add student admission as well as pay
online fees.
• Mal<e online exams more effective, efficient and
more dynamic so that it helps to get good
support from the student.
Bibliography
• Computer Science with Sumita Arora
• Computer Science with Preeti Arora
• www.wil<ipedia.org
• www.w3resource.com
• Under the guidance of subject teacher
~ANJG