Cs Project Exam Management
Cs Project Exam Management
Cs Project Exam Management
AHMEDABAD CANTT
❖
❖
❖
❖
❖
❖
❖
❖
This is to certify that HITESH PAREEK of class XII A of PM
SHRI KENDRIYA VIDYALAY AHMEDABAD CANTT NO.2
has done his project on EXAMINATION MANAGEMENT
under my supervision. He has taken interest and has shown
at most sincerity in completion of this project.
Principal
It is with pleasure that I acknowledge my sincere gratitude
to our teacher, MRS. SONIA CHOUDHARY who taught and
undertook the responsibility of teaching the subject computer
science. I have been greatly benefited from his classes.
I am especially indebted to our Principal MR. SACHIN
KUMAR SINGH RATHORE who has always been a source
of encouragement and support and without whose inspiration
this project would not have been a successful I would like to
place on record heartfelt thanks to him.
Finally, I would like to express my sincere appreciation for all
the other students for my batch their friendship & the fine
times that we all shared together.
INTRODUCTION TO PYTHON
Python is a versatile and powerful programming language
that has become increasingly popular due to its emphasis on
code readability and simplicity. Created by Guido van Rossum
and released in 1991, Python allows developers to express
ideas in fewer lines of code compared to languages like C++
or Java, promoting efficiency and reducing complexity.
➢ Windows 7 or higher
➢ My-SQL server 5.5 or higher (as backend)
➢ Python idle 3.6 or higher or spyder (as frontend).
➢ Microsoft Word 2010 or higher for documentation.
import sys
import mysql.connector
mycon=mysql.connector.connect(host='localhost',user='root',
password='123456',database='exam')
mycur=mycon.cursor()
def Student_Profile():
value=(ad,nm,cls,sec)
try:
mycur.execute(sql,value)
mycon.commit()
except:
print('UNABLE TO INSERT!!!!!')
def Edit_Profile():
sql="Update student set section=%s where adm_no=%s";
value=(nm,ph)
try:
mycur.execute(sql,value)
mycon.commit()
except:
def Remove_Profile():
value=(ph,)
try:
mycur.execute(sql,value)
mycon.commit()
except:
mycon.rollback()
def Record_Entry():
sql="Insert into
result(adm_no,exam_name,sub1,sub2,sub3,sub4,sub5,total,percentage,attendance,grade,remarks)values(%
s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)"
total=sub1+sub2+sub3+sub4+sub5
per=total//5
att=present/wrkday*100
att=int(att)
if(per>=90):
g='A'
rem='EXCELLENT PERFORMANCE!!'
g='B'
g='C'
rem='SATISFACTORY PERFORMANCE!!'
g='D'
rem='AVERAGE PERFORMANCE!!'
else:
g='E'
value=(ad,nm,sub1,sub2,sub3,sub4,sub5,total,per,att,g,rem)
try:
mycur.execute(sql,value)
mycon.commit()
except:
print('UNABLE TO INSERT!!!!!')
def Report_Card():
value=(ad,)
mycur.execute(sql1,value)
rec1=mycur.fetchone()
if(rec1!=None):
adm=rec1[0]
name=rec1[1]
cls=rec1[2]
sec=rec1[3]
value=(ad,)
mycur.execute(sql2,value)
rec2=mycur.fetchone()
if(rec2!=None):
adm=rec2[0]
exname=rec2[1]
sub1=rec2[2]
sub2=rec2[3]
sub3=rec2[4]
sub4=rec2[5]
sub5=rec2[6]
total=rec2[7]
per=rec2[8]
att=rec2[9]
g=rec2[10]
rem=rec2[11]
else:
print('\nCLASS-',cls,'SECTION-',sec,'\n')
print('\n------------------------------\n')
print('\nRESULT OF',exname,'\n')
print('\n------------------------------\n')
if(sec=='A'):
elif(sec=='B'):
elif(sec=='C'):
elif(sec=='D'):
def Remove_Record():
value=(ph,)
try:
mycur.execute(sql,value)
mycon.commit()
except:
mycon.rollback()
def Graph():
value=(ad,)
mycur.execute(sql1,value)
T=mycur.fetchone()
sql2='Select section from student where adm_no=%s';
mycur.execute(sql2,value)
s=mycur.fetchone()
L=[T[2],T[3],T[4],T[5],T[6]]
sec=s[0]
if(sec=='A'):
sub1,sub2,sub3,sub4,sub5='English','History','Pol.Sc','Economics','Geography'
elif(sec=='B'):
sub1,sub2,sub3,sub4,sub5='English','Accountancy','B.Studies','Economics','Info.Practices'
elif(sec=='C'):
sub1,sub2,sub3,sub4,sub5='English','Physics','Computer Sc.','Chemistry','Mathematics'
elif(sec=='D'):
sub1,sub2,sub3,sub4,sub5='English','Physics','Biology','Chemistry','Mathematics'
sub=[sub1,sub2,sub3,sub4,sub5]
clr=('red','green','blue','orange','brown')
plt.bar(sub,L,color=clr)
plt.xlabel('Subjects')
plt.ylabel('Marks')
plt.title('Marks Analysis')
plt.show()
def Close():
sys.exit()
print('-----------WELCOME TO EXAMINATION MODULE SYSTEM FOR CLASS-XI & XII-------------\n\n')
while(True):
if(choice==1):
Student_Profile()
elif(choice==2):
Edit_Profile()
elif(choice==3):
Remove_Profile()
elif(choice==4):
Record_Entry()
elif(choice==5):
Report_Card()
elif(choice==6):
Remove_Record()
elif(choice==7):
Graph()
elif(choice==8):
Close()
BIBLIOGRAPHY
BOOKS:
WEBSITES:
✓ www.geeksforgeeks.org
✓ https://docs.python.org/3/
✓ https://www.w3schools.com/python/