PROJECT ON STUDENT
MANAGEMENTSYSTEM
PROJECT
REPORT IN
COMPUTER SCIENCE FOR CLASS
XII(2022-2023)
Submitted in partial fulfillment of the requirement of CBSE,
Delhi
BY R.RAAMVIYHASH
Enrollment No:
UNDER THE GUIDANCE OF
Mrs. C.KALAIMANI
(P.G.T COMPUTER SCIENCE)
AKSHAYA ACADEMY CBSE SENIOR
SECONDARY SCHOOL,
ODDANCHATRAM.
AKSHAYA ACADEMY CBSE SENIOR SECONDARY SCHOOL
ODDANCHATRAM
COMPUTER SCIENCE
2022-2023
BONAFIDE CERTIFICATE
This is to certify that this project entitles “SCHOOL
MANAGEMENT SYSTEM” is a record bonafide work
carried out by R.RAAMVIYHASH in COMPUTER
SCIENCE prescribed by AKSHAYA ACADEMY CBSE
SENIOR SECONDARY SCHOOL,ODDANCHATRAM.
ROLL NUMBER: DATE:
INTERNAL EXAMINER EXTERNAL EXAMINER PRINCIPAL
ii
ACKNOWLEDGEMENT
First I thank the Almighty for providing me everything
that I required in completing this project. I express my
Gratitude to my Principal MRS.SOWMYA,
My Headmistress Mrs.Muthu Souriammal and My
Computer Science teacher Mrs.C.Kalaimani who guided
me through the project and also gave valuable suggestion and
guidance for completing the project, also helped me to
understand the intricate involved in making the project. I
would like to extend my sincere thanks to all of them . I also
thank my parents and my friends who helped to complete the
project successfully.
iii
TABLE OF CONTENTS
TABLE OF CONTENTS
S.NO CONTENTS PAGE NO.
01 INTRODUCTION
1
02 SYSTEM REQUIREMENTS
2
03 FLOW CHART 3
04 OBJECTIVES OF THE PROJECT
13
05 SOURCE CODE
14
06 OUTPUT SCREENSHOTS 23
07 CONCLUSION 27
08 BIBLIOGRAPHY 28
iv
01. INTRODUCTION
This is my project on School Management System in python. This
project is all about software for School Management. It helps the School to
have a full-fledged control over his/her stall. It adds a new student; update
details of existing student data,view all current student datas. Besides it adds
Fee or a student, exam results for a student, It can also manage staffs working
in a school.
This is a simple console-based application and developed including python
script and a database (MYSQL database). Talking about the program,it is very
easy to understand and use.
It includes all of the fundamental features required in a school management
system. The person can use all those available capabilities without difficulty
and without any restrictions.
1
02. SYSTEM REQUIREMENTS
2.1 SOFTWARE REQUIREMENTS
PLATFORM : WINDOWS 7 & ABOVE
SOFTWARE : Python 3.7.0
2.2. HARDWARE REQUIREMENTS
PROCESSOR : PENTIUM (ANY) OR
AMD ATHALON (3800+ - 4200+DUALCORE)
MOTHERBOARD : 1.85 OR 915.995 FOR PENTIUM OR
MSI K9MM-V VIA K8M800+ 8237R PLUS
CHIPSET FOR AMD ATHALON
RAM : 512MB+
HARDDISK : SATA 40GB OR ABOVE
MONITOR,KEYBOARD AND MOUSE.
2
03. FLOWCHART
START
while True
print("1.STUDENT MANAGEMENT
2.EMPLOYEE MANAGEMENT
3. FEE MANAGEMENT
4. EXAM MANAGEMANT
5.EXIT")
choice=int(input("Enter your choice(1-5):"))
if choice>=1 and
choice<=5:
selection(choice) 3
else:
break
if choice==1
print('\nWELCOME TO STUDENT MANAGEMENT
SYSTEM\n')
print('a.NEW ADMISSION')
print('b.UPDATE STUDENT DETAILS')
print('c.ISSUE TC')
print('d.DISPLAY STUDENTS RECORD')
c=input("Enter ur
choice (a-d) : ")
if c=='a':
4
insert1()
insert1()
print('\nData saved successfully..\n')
elif
c=='b':
update1()
elif
c=='c':
delete1()
print('\nTC ISSUED\n')
display1()
elif
c=='d':
print("\nSTUDENT'S
RECORD\n")
display1() 5
else:
print('Enter correct choice...!!')
elif
ch==2:
print('\nWELCOME TO EMPLOYEE MANAGEMENT SYSTEM')
print('a.NEW EMPLOYEE')
print('b.UPDATE STAFF DETAILS')
print('c.DELETE EMPLOYEE')
print('d.DISPLAY EMPLOYES RECORD')
c=input("Enter ur choice : ")
if c=='a':
insert2()
print('\nData saved successfully\n')
elif
6
c=='b':
update2()
print('\nUPDATATION DONE. ...... \n')
display2()
elif
c=='c':
delete2()
print('\nDELETION DONE. ....\n')
display2()
elif
c=='d':
print("\nSHOWS
EMPLOYEE'S
RECORD\n")
display2()
7
else:
else:
print('Enter correct
choice...!!')
elif
ch==3:
print('WELCOME TO FEE MANAGEMENT SYSTEM')
print('a.NEW FEE')
print('b.UPDATE FEE')
print('c.EXEMPT FEE')
print('d.DISPLAY FEES RECORD')
c=input("Enter ur choice : ")
if c=='a':
insert3()
print('\nData saved successfully\n')
elif
c=='b':
elif
c=='b':
update3()
print('\nUPDATATION
DONE. .... \n')
elif
c=='c':
delete3()
print('\nDELETION
DONE......\n')
elif
c=='d':
print("\nSHOW FEES
RECORD\n")
display3()
else:
9
print('Enter correct choice. !!')
elif
ch==4:
print('\nWELCOME TO EXAM MANAGEMENT
SYSTEM')
print('a.EXAM DETAILS')
print('b.UPDATE DETAILS ')
print('c.DELETE DETAILS')
c=input("Enter ur choice : ")
if c=='a':
insert4()
elif
c=='b':
update4()
10
print('\nUPDATATION DONE. ...... \n')
elif
c=='c':
delete4()
print('\nDELETION
DONE. .... \n')
elif
c=='d':
print("\nSTUDENT'S RECORD\n")
display4()
else:
11
print('Enter correct choice...!!')
print('Enter correct choice...!!')
elif
ch==5:
print(" Exiting............. ")
exit(1)
else:
print('Enter correct choice..!!')
12
04. OBJECTIVES OF THE PROJECT
The objective of this project is to let the students apply the
programming knowledge into a real- world situation/problem and
exposed the students how programming skills helps in developing a
good software.
1. Write programs utilizing modern software tools.
2. Apply object oriented programming principles effectively when
developing small to medium sized projects.
3. Write effective procedural code to solve small to medium sized
problems.
4. Students will demonstrate a breadth of knowledge in computer
science, as exemplified in the areas of systems, theory and
software development.
5. Students will demonstrate ability to conduct a research or applied
Computer Science project, requiring writing and presentation
skills which exemplify scholarly style in computer science.
13
05. SOURCE CODE
import os
import platform
import mysql.connector
try:
db=mysql.connector.connect(host="localhost",user="root",passwd="root");
cursor=db.cursor()
cursor.execute("create database if not exists School_db ")
cursor.execute("use School_db")
except:
print("Database not Access")
print(" ")
#CREATING DATABASE AND TABLE
#print(" Creating Student table")
sql = "CREATE TABLE if not exists student (\
sname varchar(30) ,\
admno int,\
dob date,\
cls char(4) ,\
cty char(25));"
cursor.execute(sql)
#print(" Student Table created")
#print(" Creating Employee table")
sql = "CREATE TABLE if not exists emp (\
ename char(25) ,\
empno int Primary Key,\
job char(20) , \
hiredate Date);"
cursor.execute(sql)
#print(" Employee table created")
#print(" Creating Fees table")
sql = "CREATE TABLE if not exists fee (\
admno int,\
fee double,\
month char(15));"
cursor.execute(sql) 14
#print(" Fees Table created")
#print(" Creating Exam table")
sql = "CREATE TABLE if not exists exam (\
sname char(25) ,\
admno int,\
per double , \
res char(10));"
cursor.execute(sql)
#print(" Employee table created")
def selection(ch):
from time import sleep
if ch==1:
print('\nWELCOME TO STUDENT MANAGEMENT SYSTEM\n')
print('a.NEW ADMISSION')
print('b.UPDATE STUDENT DETAILS')
print('c.ISSUE TC')
print('d.DISPLAY STUDENTS RECORD')
c=input("Enter ur choice (a-d) : ")
if c=='a':
insert1()
print('\nData saved successfully..\n')
elif c=='b':
update1()
elif c=='c':
delete1()
print('\nTC ISSUED\n')
display1()
elif c=='d':
print("\nSTUDENT'S RECORD\n")
display1()
else:
print('Enter correct choice...!!')
elif ch==2:
print('\nWELCOME TO EMPLOYEE MANAGEMENT SYSTEM')
print('a.NEW EMPLOYEE')
print('b.UPDATE STAFF DETAILS')
print('c.DELETE EMPLOYEE')
print('d.DISPLAY EMPLOYES RECORD')
c=input("Enter ur choice : ")
if c=='a':
insert2()
print('\nData saved successfully\n')
elif c=='b':
update2()
print('\nUPDATATION DONE ..... \n') 15
display2()
elif c=='c':
delete2()
print('\nDELETION DONE ..... \n')
display2()
elif c=='d':
print("\nSHOWS EMPLOYEE'S RECORD\n")
display2()
else:
print('Enter correct choice. !!')
elif ch==3:
print('WELCOME TO FEE MANAGEMENT SYSTEM')
print('a.NEW FEE')
print('b.UPDATE FEE')
print('c.EXEMPT FEE')
print('d.DISPLAY FEES RECORD')
c=input("Enter ur choice : ")
if c=='a':
insert3()
print('\nData saved successfully\n')
elif c=='b':
update3()
print('\nUPDATATION DONE ..... \n')
elif c=='c':
delete3()
print('\nDELETION DONE ..... \n')
elif c=='d':
print("\nSHOW FEES RECORD\n")
display3()
else:
print('Enter correct choice. !!')
elif ch==4:
print('\nWELCOME TO EXAM MANAGEMENT SYSTEM')
print('a.EXAM DETAILS')
print('b.UPDATE DETAILS ')
print('c.DELETE DETAILS')
c=input("Enter ur choice : ")
if c=='a':
insert4()
elif c=='b':
update4()
print('\nUPDATATION DONE ..... \n')
elif c=='c':
delete4()
print('\nDELETION DONE ..... \n')
elif c=='d':
print("\nSTUDENT'S RECORD\n")
display4() 16
else:
print('Enter correct choice...!!')
elif ch==5:
print(" Exiting............ ")
sleep(1)
exit(1)
else:
print('Enter correct choice..!!')
def insert1():
sname=input("Enter Student Name : ")
admno=int(input("Enter Admission No : "))
dob=input("Enter Date of Birth(yyyy-mm-dd): ")
cls=input("Enter class for admission: ")
cty=input("Enter City : ")
sql="INSERT INTO student(sname,admno,dob,cls,cty) VALUES ( '%s'
,'%d','%s','%s','%s')"%(sname,admno,dob,cls,cty)
try:
cursor.execute(sql)
db.commit()
except:
db.rollback()
db.close()
print('\nData saved successfully\n')
input("Press any key to continue")
def display1():
try:
sql = "SELECT * FROM student"
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]
print ("(sname=%s,admno=%d,dob=%s,cls=%s,cty=%s)" %
(sname,admno,dob,cls,cty))
except:
print ("Error: unable to fetch data")
db.close()
input("Press any key to continue")
def update1():
tempst=input("Enter Admission No : ")
temp=input("Enter new class : ")
try:
sql="Update student set " + "cls "+"='" + temp + "' where admno='" + 17
tempst + "'"
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
print('\nData updated successfully..\n')
input("Press any key to continue")
def delete1():
temp=int(input("\nEnter adm no to be deleted : "))
try:
sql = "delete from student where admno='%d'" % (temp)
ans=input("Are you sure you want to delete the record(y/n) : ")
if ans=='y' or ans=='Y':
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
print('\nData deleted successfully..\n')
input("Press any key to continue")
def insert2():
ename=input("Enter Employee Name : ")
empno=int(input("Enter Employee No : "))
job=input("Enter Designation: ")
hiredate=input("Enter date of joining(YYYY-MM-DD): ")
sql="INSERT INTO emp(ename,empno,job,hiredate) VALUES ( '%s'
,'%d','%s','%s')"%(ename,empno,job,hiredate)
try:
cursor.execute(sql)
db.commit()
except:
db.rollback()
db.close()
print('\nData saved successfully..\n')
input("Press any key to continue")
def display2():
try:
sql = "SELECT * FROM emp"
cursor.execute(sql)
results = cursor.fetchall()
for c in results:
ename = c[0] 18
empno= c[1]
job=c[2]
hiredate=c[3]
print ("(empno=%d,ename=%s,job=%s,hiredate=%s)" %
(empno,ename,job,hiredate))
except:
print ("Error: unable to fetch data")
db.close()
input("Press any key to continue")
def update2():
tempst=input("Enter Employee No : ")
temp=input("Enter new designation : ")
try:
db = mysql.connector.connect(user='root', password='root',
host='localhost',database='School_db')
cursor = db.cursor()
sql="Update emp set " + "job "+"='" + temp + "' where empno='" +
tempst + "'"
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
print('\nData updated successfully..\n')
input("Press any key to continue")
def delete2():
temp=int(input("\nEnter emp no to be deleted : "))
try:
sql = "delete from emp where empno='%d'" % (temp)
ans=input("Are you sure you want to delete the record(y/n) : ")
if ans=='y' or ans=='Y':
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
print('\nData deleted successfully..\n')
input("Press any key to continue")
def insert3():
admno=int(input("Enter adm no: "))
fee=float(input("Enter fee amount : "))
month=input("Enter Month: ")
sql="INSERT INTO fee(admno,fee,month) VALUES (
'%d','%d','%s')"%(admno,fee,month)
try:
cursor.execute(sql) 19
db.commit()
except:
db.rollback()
db.close()
print('\nData saved successfully..\n')
input("Press any key to continue")
def display3():
try:
sql = "SELECT * FROM fee"
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:
print ("Error: unable to fetch data")
db.close()
input("Press any key to continue")
def update3():
tempst=input("Enter Admission No : ")
nfees=input("Enter new fees : ")
nmonth=input("Enter new month : ")
try:
sql="Update fee set " + "fee "+"='" + nfees + "' where admno='" + tempst
+ "'"
cursor.execute(sql)
sql="Update fee set " + "month "+"='" + nmonth + "' where admno='" +
tempst + "'"
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
print('\nData updated successfully..\n')
input("Press any key to continue")
def delete3():
temp=int(input("\nEnter adm no to be deleted : "))
try:
sql = "delete from fee where admno='%d'" % (temp)
ans=input("Are you sure you want to delete the record(y/n) : ") 20
if ans=='y' or ans=='Y':
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
print('\nData deleted successfully..\n')
input("Press any key to continue")
def insert4():
sname=input("Enter Student Name : ")
admno=int(input("Enter Admission No : "))
per=float(input("Enter percentage : "))
res=input("Enter result: ")
sql="INSERT INTO exam(sname,admno,per,res) VALUES ( '%s'
,'%d','%s','%s')"%(sname,admno,per,res)
try:
cursor.execute(sql)
db.commit()
except:
db.rollback()
db.close()
print('\nData saved successfully..\n')
input("Press any key to continue")
def display4():
try:
sql = "SELECT * FROM exam"
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]
print ("(sname,admno,per,res)"%(sname,admno,per,res) )
except:
print ("Error: unable to fetch data")
db.close()
input("Press any key to continue")
def update4():
tempst=input("Enter Admission No : ")
nper= input("Enter new percentage: ")
nres=input("Enter new result : ")
try: 21
sql="Update exam set " + "per "+"='" + nper + "' where admno='" +
tempst + "'"
cursor.execute(sql)
sql="Update fee set " + "month "+"='" + nres + "' where admno='" +
tempst + "'"
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
print('\nData updated successfully..\n')
input("Press any key to continue")
def delete4():
temp=int(input("\nEnter adm no to be deleted : "))
try:
sql = "delete from exam where admno='%d'" % (temp)
ans=input("Are you sure you want to delete the record(y/n) : ")
if ans=='y' or ans=='Y':
cursor.execute(sql)
db.commit()
except Exception as e:
print (e)
db.close()
print('\nData deleted successfully..\n')
input("Press any key to continue")
while True:
print(' ------------------------------------\nWELCOME TO SCHOOL
MANAGEMENT SYSTEM\n------------------------------------ ')
print("1.STUDENT MANAGEMENT")
print("2.EMPLOYEE MANAGEMENT")
print("3.FEE MANAGEMENT")
print("4.EXAM MANAGEMENT")
print("5.EXIT")
choice = int(input("Enter your choice(1-5): "))
if choice>=1 and choice <=5:
selection(choice)
else:
break 22
06. OUTPUT SCREENSHOTS
6.1 Adding new student data
6.2 Updating student data
23
6.3 Deleting a student data
6.4 Viewing all students data
24
6.5 Adding new staff details
6.6 Updating staff details
25
6.7 Display all staff details
6.8 Deleting a staff record
26
07. CONCLUSION
The SCHOOL MANAGEMENT SYSTEM is written in python
programming language. Python is very smooth to research the
syntax emphasizes readability and it is able to reduce time ingesting
in developing. I have successfully designed a program in python
with SQL for SCHOOL MANAGEMENT SYSTEM. As now
everything in the world is turning to online ,this would be an
initiative step for a normal school to run by an artificial intelligence
using this program.
I grant you all the permission to this program and later on, it can be
modified.
27
08. BIBILIOGRAPHY
❖ COMPUTER SCIENCE WITH PYTHON
BY:SUMITA ARORA
❖ https://cbse.nic.in/
❖ https://wikipedia.com/
❖ https://python.mykvs.in/
THANK YOU
28