0% found this document useful (0 votes)
26 views25 pages

Cs Project Akshit

Uploaded by

aarushgoel025
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)
26 views25 pages

Cs Project Akshit

Uploaded by

aarushgoel025
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/ 25

Session: 2020-2021

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. .

I hereby certify that this project is upto my


expectations and guidance issued by CBSE.

Internal External

Signature . Signature

-~-----ii-ii iiiiiiliiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii iiiiiiiiiiiiiiiii....,,~


0 led
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.

Name: Rema Deosi Sundi


Class: XII A
Board roll no.:
Project Work On:
School

£~
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 (" 1 . Add teacher")


print ( "2 . Remove teacher")

print ( "3. Update Salary")

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:

print ( "Enter Valid Choice! ! ")


op=input("Continue in this table(y/n) :")

elif table==3:

op='y'
while op in ['y' ,'Y']:

print("l.Class Attendance")
print("2.Display ClAttd details")

task=int(input("enter task no:"))

if task==l:
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("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!!!")

ch=input("Do you want to continue(y/n) :")


Output Screen
G[~3.7ASllol
file Edit Shell ~ 0plions WC,...,., Hap
Python 3.7.4 (tags/v3.7.4:e09359112e,
32
Type "help", "copyright", "credits" o:
- [.- Pytta, 3.7A Sllol
file Edit Shell
phone:8QQ2742766
A
Debug Oplions_Win_-_H<lp~---------

Data entered successfully

>>> Continue in student table(y/n) :y


== RESTART: C:\Users\abc\AppData\Loca: 1.Add student
right", "credits" or "license()" for 1 2.Remove student
Pitts Modern School 3.Display Stdetails
1.School enter task no:2
2.Teacher Class:12A
3.CLAttendance Roll no:40
4.TAttendence Data updated
5.FeeStructure
6.Library continue in student table(y/n) :y
enter table no:1 1.Add student
2.Remove student
1.Add student 3.Display 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:8002742766
phone:8002742766

[j Pytta, 3.7A Sllol A Ut Pytta, 3.7A Sllol • A


file Edit Sholl Debug 0plions Win®w Hap file Edit Shell Debug <>,,lions w..- Hap

Class:12A enter task no:1


Name:Raj Tcode:101
class:12A Teacher name:Ajay
Roll:41 Salary:64000
Address:Bariatu Address:Hinoo
Phone:6204881532 Phone:9430182766
Continue in teacher table(yn) :y
1.Add teacher
Continue in student table(y/n) :n 2.Remove teacher
Do you want to continue(y/n) :y 3.Update Salary
Pitts Modern School 4.Display Tdetails
1.Student enter task no:2
2.Teacher Teacher:Ajay
3.CLAttendance Tcode:101
4.TAttendance Data Updated
5.FeeStructure
6.Library Continue in teacher table(y/n) :y
enter table no:2 1. Add teacher
2.Remove teacher
1. Add teacher 3.Update salary
2.Remove teacher 4.Display Tdetails
3.Update Salary enter task no:3
4.Display Tdetails Teacher:Ajay
enter task no:1 Tcode:101
[p Pytt,on 3.7A Shel ls. Pytt,on 3.7A Shel
file Edit Shell ~ Op1ions Win®W Help file Edit Shell ~ ~ Win®W ~ ~ - - - - - - - -
Tcode:101 Continue in teacher table(y/n) :n
Salary:68000 Do you want to continue(y/n:y
pata Updated Pitts Modern School
l.Student
Continue in teacher table(y/n) :y 2.Teacher
l.Add teacher 3.CLAttendance
2.Remove teacher 4.TAttendance
3.Update Salary 5.FeeStructure
4.Display Tdetails 6.Library
enter task no:4 enter table no:3
Tcode:101
Name:Ajay 1.Class Attendance
Salary:68000 2.Display CLAttd details
Address:Hinoo enter task no:1
Phonr:9430182766 Class:12A
Class teacher:A Singh
Tcode:102 Class strength:60
Name:Seema Date:2021-02-13
Salary:51000 No of absentees:15
Addres:Kokar Data entered successfully
Phone:8340484603
continue in CI.Attendance table(y/n) :y
l.Class Attendance
Continue in teacher table(y/n) :n 2.Display CLAttd details

[p Pytl,on 3.7A Shel Gt Pytt,on 3.7A Shel


file Edit Shell Debug Options w.- Help
File Edit Shell Oo1>ug Oplion,c_;
..;;;....;Wi.;,;in®W=_;,;;l:!_elp:z_
• _ _ _ _ _ _ _ __

2.Display CLAttd details 6.Library


enter task no:2 enter table no:4
Claa:12A
Class teacher:A Singh 1.Teacher Attendance
Total St:60 2.Display TAttd details
Date:2021-02-13 enter task no:1
Absentees:15 Name:Ajay
Date:2021-03-13
Class:12B Attendance:Present
Class teacher:RK Sinha Data entered successfully
Total St:67
Date:2021-0-13 Continue in TAttendance table(y/n):y
Absentees:12 1.Teacher Attendance
2.Display TAttd details
enter task no:2
Continue in CI.Attendance table(y/n) :n Name:Ajay
Do you want to cntinue(y/n) :y Date:2021-02-13
Pitts Modern School Attendance:Present
1.Student
2.Teacher Name:Seema
3.CLAttendance Date2021-02-13
4.TAttendance Attendance:Absent
5.FeeStructure
6.Library
G[Pylhon 3.7A Sllel --
Filo Edit Shell Dtbug Options W - ~ Filo Edit Shell Debu9 Options W - Hdp
- ""'
Continue in TAttendance table(y/n) :n 1. Update Fees
Do you want to continue(y/n) :y 2.Display Fees
Pitts Modern School enter task no:2
l.Student Class:12
2.Teacher Monthly:3700
3.CLAttendance BuaFee:500
4.TAttendance ScFee:200
5.FeeStructure TechFee:200
6.Library Total:4600
enter table no:5
Class:11
l.Updat Fees Monthly:3700
2.Display Fees BusFee:500
enter task no:1 ScFee:200
Class:12A TechFee:200
Monthly:3700 Total:4600
BusFee:500
ScFee:200
TechFee:200 Continue in FeeStructure table(y/n) :n
Total:4600 Do you want to continue(y/n) :y
Data Update Pitts Modern School
l.Student
Continue in Feestructure table(y/n) :y 2.Teacher
l.Update Fees 3.CLAttendance

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

3.CLAttendance Continue in Library table(y/n) :y


4.TAttendance enter task no:2
5.Feestructure Title:Da Vinci Code
6.Library Book id:11091
enter table no:6 Data Updated

l.Add Book Continue in Library table(y/n) :y


2.Remove Book enter task no:3
3.Display Book Book id:11091
enter task no:1 Title:Da Vinci Code
Book id:11091 Author:Dan Brown
Title:Da Vinci Code Publisher:Transworld
Author:Dan Brown Genre:Thriller
Publisher:Transworld
Genre:Thriller Book id:11092
Data entered successfully Title:Twilight
Author:Stephenie Meyer
Continue in Library table(y/n) :y Publisher:Little Brown Book
enter task no:2 Genre:Fiction
Title:Da Vinci Code
Book id:11091
Data Updated Continue in library table(y/n) :n
Do you want to continue(y/n) :n
Continue in Library table(y/n) :y >>>
MySQL Tables

mysql> desc::: ~udent;


+---------+---·----------+------+-----+---------+-------+
[ Field I Type t Null) Key I Default I Extra I
+---------·-------------+------ ♦ -----+--------- ♦ -------+
name varchar(30) VES NULL
I class
roll
[ address
l phone
varchar(30)
varchar(30)
varchar(30)
varchar(30)
YES
YES
YES
VES
I
I
NULL
NULL
NULL
NULL
+---------+-------------+------+-----+---------+-------+
S rows in set (0.145 sec)

_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

class varchar(30) IYES I


♦ -----------+-------------+------+-----+--------- ♦ -------+
NULL
II cl teacher
totalst
date
absentees
varchar(40) YES
varchar( 30) I -¥ES--r
varchar(30) I YES
varchar(30) I YES
NULL
NULL
NULL
NULL
+----------- ♦ -------------+------+----- ♦---------♦-------♦
S rows ~n set (O.012 sec)

[ Field J 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

You might also like