0% found this document useful (0 votes)
23 views18 pages

pratical file (1)

Uploaded by

Krish Choudhary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views18 pages

pratical file (1)

Uploaded by

Krish Choudhary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Greenway

modern
school-2

Project file
on
School
management
Teacher name- Name-Khushi
Vivek malik kumri singh
Teacher sign Class-12
Section-A
Acknowledgement
I 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 Mr vivek malike
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 Mrs seema mam for his
constant motivation during the
course of this investigation.

Name: Khushi kumari singh


Class: XII A
Roll no.:16
Certificate
This is to certify that Khushi
kumari singh of class XII A
of greenway modern
school-2,puhana. Khushi
has completed her project
file under the supervision of
Mr vivek malik. 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
Internal External
Signature .
CBSESignature
INDEX
 Introduction
 Software & Hardware
requirements
 Advantages of this
project
 Source Code in
Python
 Output Screen
 MySQL tables
 Future Scopes
Introduction
This project work automates school
management system. School
Management System consist of
tasks such registering students,
attendanes record keeping control
to absentees, details of teacher, fre
structure etc. Data file hunalling has
been effectively used in the
program. Datalase is a collection of
interrelated data to serve multiple
applications Le database programs
create files of information So we see
that files are worked with mast
inside the program itself. DBMS The
software required for management
of data is called 178MS. It has three
models. Relation model It stores
information in form of rown
(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 recced
and relationships is separated by
asociations.
Characteristics of DBMS It reduces
the redundancy. Data sharing Data
standardization
•Reduction of data incomirtency
Types of filer based on acces
• Sequential file
•Serial file Raandam file Text file
• Binary file
Software and Hardware
requirement
Software Specifications:-
• Operating system: Windows 10/8/7
• Python IDLE Platform: Python
Idle 3.7
• Database : MySQL
• Languages: python
Hardware Specifications
Processor: Dual core or above
Hard Disk: 40 GB
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=‘ rema’)
def Addst():
n=input("Student name:")
Cl=input("Class:")
r=int (input("Roll no:"))
a= ("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:"))
datas =(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 in d:
print(“name:”,i=[0])
print(“class:”,i=[1])
print(“roll no:”,i=[2])
print(“address:”,i=[3])
print(“phone:”,i=[4])
Print(“”)
Main()
def ADDT():
t=int(input(“T:”))
n=input("Teacher:")tcode=int(input("Tcode:")
data=(n, tcode)
Sql=‘delete from teacher where name =%s and tcode=%s’
con=.cursor()
c.execute(sql, data)
con.commit()
print("Data Updated")
print("")
Main()

def UpdateSal()
n=input("Teacher:")
t=int(input("T:"))
salary=int(input("Salary:"))
data (n, tcode)
sql='update teacher set salary =%s where name=%s and tcode=
%s
=con.cursor()
c.execute(sql, data)
con.commit()
print("Data Update")
print("“)
def DisplayT():
sql='select* from teacher’
c=con.cursor()
c.execute (sql)
d=c.fetchall ()
for i in d:
print("T:",i[0])
print("Name:",i[1])
print("Salary:",i[2])
print("Address:",1[3])
print("Phone:",i[4])
print("")
main()
Def ClAttd():
d=input("Class:")
clt=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()
con.commit()
print("Data entered
successfully")
print("")
main()
Def displayclattd():
sql='select* from
ClAttendance’
c=con.cursor()
c.execute (sql, data)
d=c.fetchall()
for i in d:
print("Class:",i[0])
print("Class teacher:",i[1])
print("Total St:",i[2])
print("Date:",1[3])
print("Absentees:",i[4])
print("")
main ()
def TAttd():
n=input("Name:")
d=input("Date:")
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])
print("Date:",i[1])
print("Attendance:", 1 [2])
print("")
main ()
defUpdateFees():
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=%,
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.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("") main()
def AddBook():
bid=int(input("Book id:"))
t=input("Title:")
a=input("Author:")
g=input("Genre:")
p=input("Publisher:")
data=(bid, t,a.p.g)
c=con.cursor()
sql='insert into library values(%s,%s,%s,%s,%s)
print("Total:",i[5])
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("")
main()
def RemoveB():
t=input("Title:")
bid=int(input("Book id:"))
data=(t, bid)
sql='delete from library where tis 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("")
main()
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:
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:
Display():
else:
print("Enter Valid Choice!!")
op=input ("Continue in this table (y/n):")
elif table==3:
op='y’
while op in ['y', 'Y’]:
print("1.Class Attendance")
print("2.Display ClAttd details")
task=int(input("enter task no:"))
if task==1:
TlAttd()
elif task==2:
DisplayTlAttd ()
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("2.Display TAttd details")
task=int(input("enter task no:"))
if task==1:
TAttd()
elif task==2:
Display TAttd ()
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.Teacher attendance")
print("2.Display TAttd details")
task=int(input("enter task no:"))
if task==1:
TAttd()
elif task=2:
Display TAttd()
else:
print("Enter Valid Choice!!")
op=input("Continue in this
table(y/n):")
elif table==5:
op='y’
while op in ['y', 'Y’]:
print("1. Update Fees")
print("2.Display Fees details")
if task==1:
task=int(input("enter task no:"))
UpdateFees()
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==1:
print("2.Remove Book")
print("3.Display Book")
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):")

You might also like