A PROJECT REPORT
on
Student Management System
for
AISSCE 2021 -22 EXAMINATION
As a part of the Informatics Practices Courses (065)
Submitted by:
Name of the student:
Hall Ticket Number
1. Shriya Gomes
2. Anoushka Patnaik
3. Prajin Jain
Under the guidance of
Mr.SivaPrasad G
PGT in Informatics Practices
Department of Informatics Practices
SRI CHAITANYA TECHNO SCHOOL
Kothanur Dinne Main Road, Near Bus Stop 8th Phase, JP Nagar, Jumbo Sawari,
Dinne, Bengaluru, Karnataka 560078
1
CERTIFICATE
This is to certify that the Project / Dissertation entitled STUDENT MANAGEMENT
SYSTEM is a bonafide work done by Ms. Shriya Gomes of class XII in partial
fulfillment of CBSE’s AISSCE Examination 2020-21 and has been carried out under my
direct supervision and guidance. This report or a similar report on the topic has not been
submitted for any other examination and does not form a part of any other course
undergone by the candidate.
Signature of Student Signature of Teacher/Guide
Name: …………………… Name: SivaPrasad
Roll No.: ……………… Designation: PGT in IP
Signature of Principal
Name:
Place: JP Nagar
Date:……………..
2
ACKNOWLEDGEMENT
I would like to thank the institution for giving the
opportunity to showcase and display our talent through this
project.
I would like to thank my Informatics Practices teacher
Mr.SivaPrasad G for having the patience to guide me at
every step in the project
I am also grateful to the CBSE BOARD for challenging
and giving us this project in which we all were so
engrossed.
I would also like to thank my parents and friends who
helped me in getting the right information for this project.
3
Table Of Contents
Sl.No Topic Name Page No.
1. Abstract
2. System Requirements
3. Database Design
4. Coding
5. Output Screens
6. Bibliography
4
ABSTRACT
The project file contains a python script (student.py). This is a simple
console based system which is very easy to understand and use. Talking
about the system, it contains basic functions which include student’s roll
number, marks, email-id, e.t.c. In this Simple Student Management, the
user can also search for student’s name in order to know whether the
student’s record exists in the system or not. This simple console based
Student Management system provides the simplest management of
student’s list.
In order to run the project, you must have installed Python, on your PC.
This project gives us a better insight on how to maintain the records of
the student with the help of an organized database and making necessary
changes in the coding.
5
SYSTEM REQUIREMENTS
Hardware Components:
1. 15.6 inches screen size
2. 8GB DDR4 RAM
3. Core i7 intel processor
4. MX330 NVIDIA Graphics
Software Components:
1. Windows 10
2. Python 3.7 with suitable modules
3. MySQL Command Client
6
DATABASE DESIGN
In the following “admins”, we will store the credentials of
database admins.
In the following “students”, we will store the details of all
students.
7
CODING
def admin():
print('1. Existing Admin')
print('2. NewAdmin')
ch=int(input('Enter your choice'))
if(ch==1):
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='manager',database='
project')
a=conn.cursor()
user=input('Enter User name')
pwd=input('Enter password')
s='select *from admins where un="'+user+'"'
a.execute(s)
r=a.rowcount
if(r==0):
print('Invalid username')
8
else:
s='select *from admins where pwrd="'+pwd+'"'
a.execute(s)
r=a.rowcount
if(r==0):
print('Invalid Password')
else:
while(True):
print('1. Insert')
print('2.Search')
print('3. Update')
print('4.Delete')
print('5. Generate Bar graph')
print('6. Complete table')
print('7.exit')
ch=int(input('Enter your choice'))
if(ch==1):
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='manager',database='
project')
a=conn.cursor()
rno=int(input('Enter student roll number'))
9
name=input('Enter student name')
mail=input('Enter student mail id')
marks=float(input('Enter student marks'))
s1='insert into students values('+str(rno)
+',"'+name+'","'+mail+'",'+str(marks)+')'
a.execute(s1)
print('one studnt details inserted successfully::')
conn.commit()
elif(ch==2):
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='manager',database='
project')
a=conn.cursor()
r=int(input('Enter student roll number to be search'))
s2='select *from students WHERE rno='+str(r)
a.execute(s2)
row=a.rowcount
if(row>0):
data=a.fetchmany(1)
for i in data:
print('rno=',i[0])
print('name=',i[1])
print('mail id=',i[2])
10
print('marks=',i[3])
else:
print('Roll number',r,'details not found')
conn.commit()
elif(ch==3):
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='manager',database='
project')
a=conn.cursor()
r=int(input('Enter student roll number to be update'))
s2='select *from students WHERE rno='+str(r)
a.execute(s2)
row=a.rowcount
if(row>0):
data=a.fetchmany(1)
print('::::Existing details::::')
for i in data:
print('rno=',i[0])
print('name=',i[1])
print('mail id=',i[2])
print('marks=',i[3])
nn=input('ENTER NEW NAME')
11
nmi=input('ENTER NEW mail id')
nm=float(input('ENTER NEW marks'))
s3='update students set
name="'+nn+'",mailid="'+nmi+'",marks='+str(nm)
a.execute(s3)
print('Roll number',r,'details updated')
else:
print('Roll number',r,'details not found')
conn.commit()
elif(ch==4):
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='manager',database='
project')
a=conn.cursor()
r=int(input('Enter student roll number todelete'))
s2='select *from students WHERE rno='+str(r)
a.execute(s2)
row=a.rowcount
if(row>0):
data=a.fetchmany(1)
print('::::Existing details::::')
for i in data:
print('rno=',i[0])
12
print('name=',i[1])
print('mail id=',i[2])
print('marks=',i[3])
y=int(input('Are sure to delete..press 1 to confirm'))
if(y==1):
s4='delete from students where rno='+str(r)
a.execute(s4)
print('Roll number',r,'details deleted')
conn.commit()
else:
print('Roll number',r,'details not found')
elif(ch==5):
import pymysql
import matplotlib.pyplot as plt
conn=pymysql.connect(host='localhost',user='root',password='manager',database='
project')
a=conn.cursor()
s2='select *from students'
a.execute(s2)
data=a.fetchall()
L=[]
M=[]
13
for i in data:
L.append(i[3])
plt.hist(L,bins=[40,60,80,100])
plt.show()
conn.commit()
elif(ch==6):
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='manager',database='
project')
a=conn.cursor()
s2='select *from students'
a.execute(s2)
data=a.fetchall()
for i in data:
for j in i:
print(j,end='\t')
print()
conn.commit()
elif(ch==7):
break
14
else:
print('Invalid input')
conn.commit()
elif(ch==2):
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='manager',database='
project')
a=conn.cursor()
user=input('Enter User name')
pwd=input('Enter password')
s='insert into admins values("'+user+'","'+pwd+'")'
a.execute(s)
print(':::::::admin created successfully:::::::')
conn.commit()
else:
print('Inavalid input..')
while(True):
print('1.Admin')
print('2.Exit')
ch=int(input('Enter your choice'))
if(ch==1):
15
admin()
elif(ch==2):
break
else:
print('Inavalid input..')
OUTPUT SCREEN
Screen-1: WELCOME SCREEN
Screen-2: Admins
Screen-3: New admin
16
Screen-4: Existing admin(Valid credentials)
Screen-5: Existing admin(Invalid username)
17
Screen-6: Existing admin(Invalid password)
Bibliography:
www.google.com
www.python.org.
18
www.geeksforgeeks.org
19