Delhi Public School, Bhilai: Project Work On "School Management System" Year-2020-2021
Delhi Public School, Bhilai: Project Work On "School Management System" Year-2020-2021
Bhilai
Project work o
“School Management System”
Year- 2020-202
Shreyansh P.
Monesh G
(CLASS-XII / ‘G’
1 | Page
i
)
Acknowledgement
2 | Page
Certificate
SIGNATUR SIGNATUR
(EXTERNAL) (INTERNAL)
3 | Page
fi
E
.
Preface
This concise and comprehensive
project presents a detailed description
of A School Database Management
System along with the coding required
to produce it
The matter is self-explanatory all
regards to the subject, theory and
coding and provides a detailed coding
in an appropriate manner. The matter
has been unfolded in a lucid and
understandable way. Although every
care has been taken to emit error and
omission but still if there is any, it is
regretted.
4 | Page
Index
Sr.no TOPIC page
1. Brief overview of the 6
project
2. Need for 7
computerization
3. Software and 8
hardware
requirement
4. Advantages of 9
project
5. Source code of 10
project
6. Python code of 15
project
7. Output screens 44
8. Future enhancement 47
of project
9. Bibliography 48
5 | Page
6 | Page
ff
tf
ti
ti
ti
tt
ti
ti
tt
ti
ti
ti
ti
tf
7 | Page
ffi
ffi
1.Software Requirements:
C. Opera ng systems:
• Windows XP or higher version
• MacOS X or higher (for apple users)
8 | Page
ti
ti
ti
2.Hardware Requirements:
A. Processor: Intel Pen um 4 or more
B. RAM: 1 GB or more
C.Hard disk: 40 GB hard disk recommended for
the primary par on.
*****
9 | Page
ti
ti
ti
ti
ti
Source of the Code
DBMS: MySQL
Host : localhost
User: root
Password: ger
DataBase: mysql
10 | Page
ti
Table: Student
11 | Page
Table: Emp
12 | Page
Table: Fee
13 | Page
Table: Exam
******
14 | Page
Python code
import os
import mysql.connect
import pandas as pd
host='localhost',database='mysql')
cursor = db.cursor()
print("1.STUDENT MANAGEMENT")
print("2.EMPLOYEE MANAGEMENT")
print("3.FEE MANAGEMENT")
print("4.EXAM MANAGEMENT")
15 | Page
ti
tf
ti
if ch==1:
print('a.NEW ADMISSION')
print('c.ISSUE TC')
display1()
if c=='a':
insert1()
display1()
elif c=='b':
update1()
display1()
elif c=='c':
delete1()
display1()
16 | Page
fi
fi
fi
else:
elif ch==2:
print('a.NEW EMPLOYEE')
print('c.DELETE EMPLOYEE')
if c=='a':
insert2()
display2()
elif c=='b':
update2()
display2()
elif c=='c':
delete2()
display2()
17 | Page
fi
fi
fi
else:
elif ch==3:
print('a.NEW FEE')
print('b.UPDATE FEE')
print('c.EXEMPT FEE')
if c=='a':
insert3()
display3()
elif c=='b':
update3()
display3()
elif c=='c':
delete3()
else:
18 | Page
fi
fi
elif ch==4:
print('a.EXAM DETAILS')
print('c.DELETE DETAILS')
if c==‘a':
insert4()
elif c=='b':
update4()
elif c=='c':
delete4()
else:
19 | Page
#Func on De ni on of Insert1 (First choice)
def insert1():
cursor = db.cursor()
try:
cursor.execute (sql)
db.commit()
except:
db.rollback()
db.close()
#insert1() ends.
20 | Page
ti
fi
ti
ti
#Func on De ni on of Display1 (First choice)
def display1():
try:
db = mysql.connector.connect(user='root',
password=' ger', host='localhost',database='mysql')
results = cursor.fetchall()
for c in results:
sname = c[0]
admno= c[1]
dob=c[2]
cls=c[3]
cty=c[4]
except:
db.close()
#display1() ends.
21 | Page
ti
fi
ti
ti
try:
db = mysql.connector.connect(user='root',
password=' ger', host='localhost',database='mysql')
cursor = db.cursor()
cursor.execute(sql)
for c in results:
results = cursor.fetchall()
sname = c[0]
admno= c[1]
dob=c[2]
cls=c[3]
cty=c[4]
print()
try:
admno='%d'" % (temp,tempst)
22 | Page
ti
fi
ti
ti
db.commit()
cursor.execute(sql)
Excep on as e:
print (e)
except:
#update1() ends.
23 | Page
ti
try:
db = mysql.connector.connect(user='root',
password=' ger', host='localhost',database='mysql')
cursor = db.cursor()
cursor.execute(sql)
results = cursor.fetchall()
for c in results:
sname = c[0]
admno= c[1]
dob=c[2]
cls=c[3]
cty=c[4]
try:
fi
ti
ti
if ans=='y' or ans=='Y':
cursor.execute(sql)
db.commit()
Excep on as e:
print(e)
except:
db.close()
#delete1() ends.
25 | Page
ti
cursor = db.cursor()
try:
cursor.execute(sql)
db.commit()
except:
db.rollback()
db.close()
#insert2() ends.
26 | Page
ti
fi
ti
ti
ti
#Func on De ni on of Display2 (Second choice)
def display2():
try:
db = mysql.connector.connect(user='root',
password=' ger', host='localhost',database='mysql')
cursor = db.cursor()
cursor.execute(sql)
results = cursor.fetchall()
for c in results:
ename = c[0]
empno= c[1]
job=c[2]
hiredate=c[3]
print ("(empno=%d,ename=%s,job=%s,hiredate=%s)" %
(empno,ename,job,hiredate))
except:
db.close()
#Display2() ends.
27 | Page
ti
fi
ti
ti
try:
db = mysql.connector.connect(user='root',
password=' ger',
host='localhost',database='mysql')
cursor = db.cursor()
cursor.execute(sql)
results = cursor.fetchall()
for c in results:
ename = c[0]
empno= c[1]
job=c[2]
hiredate=c[3]
print()
try:
28 | Page
ti
fi
ti
ti
ti
db.commit()
cursor.execute(sql)
Excep on as e:
print (e)
except:
db.close()
#upadte2() ends.
29 | Page
ti
try:
db = mysql.connector.connect(user=‘root’,
password=' ger', host='localhost',database='mysql')
cursor = db.cursor()
cursor.execute(sql)
results = cursor.fetchall()
for c in results:
ename = c[0]
empno= c[1]
job=c[2]
hiredate=c[3]
try:
empno='%d'" % (temp)
30 | Page
ti
fi
ti
ti
if ans=='y' or ans=='Y':
cursor.execute(sql)
db.commit()
Excep on as e:
print (e)
except:
db.close()
#delete2() ends.
31 | Page
ti
db=mysql.connector.connect(user=‘root’,password=' ger',
host='localhost',database='mysql')
cursor = db.cursor()
try:
cursor.execute(sql)
db.commit()
except:
db.rollback ()
db.close()
#insert3() ends.
32 | Page
ti
fl
fi
ti
ti
#Func on De ni on of Display3 (Third choice)
def display3():
try:
db = mysql.connector.connect(user='root',
password=‘ ger', host=‘localhost',database='mysql')
cursor = db.cursor()
cursor.execute(sql)
results = cursor.fetchall()
for c in results:
admno= c[0]
fee=c[1]
month=c[2]
print ("(admno=%d,fee=%s,month=%s)" %
(admno,fee,month))
except:
db.close()
#display3() ends.
33 | Page
ti
fi
ti
ti
try:
db = mysql.connector.connect(user=‘root',
password=' ger', host=‘localhost',database='mysql')
cursor = db.cursor()
cursor.execute(sql)
for c in results:
results = cursor.fetchall()
admno= c[0]
fee=c[1]
month=c[2]
print()
try:
cursor.execute(sql)
db.commit()
34 | Page
ti
fi
ti
ti
Excep on as e:
print (e)
except:
db.close()
#update3() ends.
35 | Page
ti
try:
db = mysql.connector.connect(user='root',
password=' ger',host='localhost',database='mysql')
cursor = db.cursor()
sql=“SELECT*FROM fee”
cursor.execute(sql)
results = cursor.fetchall()
for c in results:
admno= c[0]
fee=c[1]
month=c[2]
try:
36 | Page
ti
fi
ti
ti
if ans==‘y’ or ans==‘Y’:
db.commit()
cursor.execute(sql)
Excep on as e:
print(e)
except:
db.close()
#delete3() ends.
37 | Page
ti
cursor = db.cursor()
try:
cursor.execute(sql)
db.commit()
except:
db.rollback()
db.close()
#insert4() ends.
38 | Page
ti
fl
fi
ti
ti
#Func on De ni on of Display4 (Fourth choice)
def display4():
try:
db = mysql.connector.connect(user='root',
password=' ger', host='localhost',database='mysql')
cursor = db.cursor()
cursor.execute(sql)
results = cursor.fetchall()
for c in results:
sname = c[0]
admno= c[1]
dob=c[2]
cls=c[3]
cty=c[4]
except:
db.close()
#display4() ends.
39 | Page
ti
fi
ti
ti
try:
db = mysql.connector.connect(user='root',
password=' ger', host=‘localhost',database='mysql')
cursor = db.cursor()
cursor.execute(sql)
for c in results:
results = cursor.fetchall()
sname = c[0]
admno=c[1]
dob=c[2]
cls=c[3]
cty=c[4]
print()
try:
40 | Page
ti
fi
ti
ti
db.commit()
cursor.execute(sql)
Excep on as e:
print(e)
except:
db.close()
#update4() ends.
41 | Page
ti
try:
db = mysql.connector.connect(user='root',
password=' ger', host='localhost',database='mysql')
cursor = db.cursor()
cursor.execute(sql)
results = cursor.fetchall()
for c in results:
sname = c[0]
admno= c[1]
dob=c[2]
cls=c[3]
cty=c[4]
try:
42 | Page
ti
ti
fi
ti
if ans=='y' or ans==‘Y’:
cursor.execute(sql)
db.commit()
Excep on as e:
print (e)
except:
db.close()
#delete4() ends.
*****
43 | Page
ti
OUTPUT SCREEN
● Insert Details
44 | Page
● Update Details
45 | Page
● Delete Details
*****
46 | Page
Future enhancements
1 The solu ons are given as a proposal. The
sugges on is revised on user request and op mal
changes are made. This loop terminates as soon
as the user is gra ed with the proposal.
2 So on the whole, system analysis is done to
improve the system performance by monitoring it
and obtaining the best throughput possible from
it.
3.The intended audience for this School
Management System document is the internal
guides of the organisa on where the team has
developed the project. Further modi ca ons and
reviewing will be done by the organisa on and
deliver a nal version. The nal version of this
document is reviewed by the Internal Guides and
Head of the Department of the ins tute.
*****
47 | Page
.
.
ti
fi
ti
ti
fi
ti
fi
ti
fi
ti
ti
ti
BIBLIOGRAPHY
1 h p://www.google.com/
2 h p://en.wikipedia.org
3 Informa cs Prac ces with python by Sumita
Arora
4.h ps://www.W3SCHOOLS.com
5.h ps://www.geeksforgeeks.org
6.h ps://www.youtube.com/
******
48 | Page
.
.
.
tt
tt
tt
tt
tt
ti
ti