AMRITA PUBLIC SCHOOL
PUBLIC
E1987
ACADEMIC YEAR: 2023-24
COMPUTER SCIENCE PROJECT
STUDENT MANAGEMENT
SYSTEM
Student Managemer System
NAME:- MOHD. ANAS
SiDDIQUI
CLASS:-XIl- A
ROLL NO.:- 14714654
of ance
student Principal
signature
year
theguid
Certificate
on
theduring
arch
under
rese teacher)
Stldqui
the
completed
(subject
System
Anaus schoo,
KS 2a , .
Mehd. ment
successfully
magt
that Me
Jyet
Raghav
signature
Teacher's
Studert
certify
has 2023-2_o2
(
to
is X project
Thisciass
of
ACKNOWLEDGEMENT
Iwould like to express my special thanks of
gratitude to my Computer Teacher "Mr./Mrs
Jyot Raghav(Teacher Name)" for his able
guidance and support in completing this project.
fwould also like to extend my gratitude to our
Principal Mr./Mrs. Sfmmt (Principal Name) for
providing me with all the required facilities.
Secondly, i would also like to thank my parents
and friends who helped me a lot in finishing this
project within the timited time. Just because of
them Iwas able to create my project and make it
good and enjoyable experience.
Thanks againgto allwho helped me duing the
project.
PROJECT TITLE- "SCHOOL MANAGEMENT"
DBMS: MySQL
Host: localhost
User: root
Password: tiger
DataBase: mysql
Table Structure: As per the Screenshot given below:
Table:Student
CPrgrenm Files\A, SQLI11,SQ. Serve Sl binmyialeve
Comm¡nd end with
Rou MuSO MSQLmonito Connecti Community Server (GPLD
Serveruersion: S 3 O m m u n i t y MusoL the buffera
to Clear
Cype he lp:! or h? for help T y p e c
Suse mysql
base chang student date.
nysa1 admnd nt primary key,dob
Char(3O2 DH20
-SCharc2ctyVan rowS affected
mysql>desc studdentB
Pield Iype
NO NULL
SnaMe PRÌ
do dat9.
ls
Cty
har2)
Va rSha202
rows in SetSO-02 sec
Table: Emp
C1Piaram Files NSotMSOL Senver [Link]
EableempSempPQ Lnte9ePrmary key-ename arGhar(2
date
Quey
mysal>
ok, RrcHar29A1ec
0
des C e Mpi
roS aFFe Gted
Type
Nuli Key DefaultC Rxtra
6 Piel
PRÊ
jolb
1aieedate
CO-01: sec)
mysgl>
Table:Fee
3eade s\NSCIC en |\b.n\ee
Null
atmno
month U8tho15
mys1>
Table:Exam
CProgram Files SQLIMysQL Server [Link]
integeropen decmal42)
Create t a b l k n CSname 205admng
mySq1
nysql2 desc exms
Nul R Koy DDefault Bxtra
B Fie ld Type,
ame
UachanG2DD NULI
otC112
dec1
Python Code:
import os
import platform
import [Link]
#import pandas as pd
#from pandas import DataFrame
def selection():
db = [Link](user='root', password='tiger', host='localhost', database='mysql")
cursor =[Link])
print('. -\nWELCOME TO SCHOOL MANAGEMENT SYSTEM\n
print("[Link] MANAGEMENT")
print("[Link] MANAGEMENT")
print("[Link] MANAGEMENT")
print("[Link] MANAGEMENT")
ch=int(input("|nEnter ur choice (1-4):"))
if ch==1:f
print(\nWELCOME TO STUDENT MANAGEMENT SYSTEM\n')
print('[Link] ADMISSION')
print('[Link] STUDENT DETAILS')
print('[Link] TC)
c=input("Enter ur choice (a-c):")
print('\nlnitially the details are.\n')
display1()
if c=='a':
insert1()
print(\nModified details are.. n')
display1()
elif c=='b':
update1()
print(\nModified details are..\n')
display1()
elif c==c':
delete1()
print(\nModified details are..\n')
display1()
else:
print('Enter correct choice...!!")
elif ch==2:
print('WELCOME TO EMPLOYEE MANAGEMENT SYSTEM')
print('[Link] EMPLOYEE')
print('[Link] STAFF DETAILS')
print('c. DELETE EMPLOYEE')
c=input("Enter ur choice:")
if c=='a':
insert2()
print('\nModified details are..\n')
display2()
elif ce='b':
update2()
print(\nModified details are.\n')
display2()
elif c=='¢':
delete2()
print('\nModified details are.\n')
display2()
else:
print('Enter correct choice...!!")
elif ch==3:
print('WELCOME TO FEE MANAGEMENT SYSTEM")
print('[Link] FEE')
print('[Link] FEE')
print('[Link] FEE')
c=input("Enter ur choice :")
if c=='a':
insert3()
elif c=='b':
update3()
elif c=='c':
delete3()
else:
print('Enter correct choice...!")
elif ch==4:
print(WELCOME TO EXAM MANAGEMENT SYSTEM")
print('[Link] DETAILS')
print('[Link] DETAILS ")
print('[Link] DETAILS')
c=input("Enter ur choice:")
if c=='a':
insert4()
elif c=='b':
update4()
elif c=='c':
delete4()
else:
print('Enter correct choice...!!")
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:")
password='tiger', host='localhost', database='mysgl')
db =[Link](user='root',
cursor = [Link]()
sql="INSERT INTO student([Link],dob,cls,cty) VALUES( "%s','%d','%s',"%s,%s')"%(sname,admno,dob,cls, cty)
try:
[Link](sql)
[Link]()
except:
[Link]()
[Link])
#insert()
def display1():
try:
db = [Link](user='root', password='tiger',
host='localhost',database='mysql')
cursor = [Link]()
sql ="SELECT FROM student"
[Link](sq|)
results = [Link]()
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)" %
except:
(sname,admno,dob,cls,cty))
print ("Error: unable to fetch data")
[Link]()
def update1():
try:
db = [Link](user='root', password='tiger', host='localhost',database='mysql')
cursor = [Link]()
sql="SELECT FROM student"
[Link](sql)
results = [Link]()
for c in results:
sname = c[o)
admno= c[1]
dob=c[2]
cls=c[3]
cty-c[4)
except:
print ("Error: unable to fetch data")
print()
tempst=int(input("Enter Admission No:")
temp=input("Enter new class :")
try:
sql ="Update student set cls=%s where admno='%d'" % (temp, tempst)
[Link](sgl)
[Link]()
except Exception as e:
print (e)
[Link]()
def delete1):
try:
db= [Link](user='root', password='tiger', host=localhost', database='mysql")
cursor =[Link]()
sgl = "SELECT FROM student"
[Link](sql)
results = [Link]()
for c in results:
sname = c[0
admno= c[1]
dob=c(2)
cis=c[3)
cty=c[4)
except:
print ("Error: unable to fetch data")
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:
[Link](sql)
[Link]()
except Exception as e:
print (e)
[Link]()
def insert2():
ename=input("Enter Employee Name:")
empno=int(input("Enter Employee No: ")
job=input("Enter Designation: ")
hiredate=input("Enter date of joining: ")
db =[Link](user='root', password='tiger, host='localhost', database=mysal)
cursor = [Link]()
sql="INSERT INTO emplename,empno,job, hiredate) VALUES('%s',%d''%s'%s')"%(ename,empno,job, hiredate)
try:
[Link](sql)
[Link]()
except:
[Link]()
[Link]()
def display2():
try:
db = [Link](user='root',password='tiger, host='localhost',database='mysal')
cursor =[Link]()
sql = "SELECT FROM emp"
[Link](sql)
results = [Link]()
for cin 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:
print ("Error: unable to fetch data")
[Link]()
def update2():
try:
db e [Link](user='root', password='tiger', host='localhost',database='mysql)
cursor = [Link]()
sql = "SELECT FROM emp"
[Link](sql)
results = [Link]()
for c in results:
ename= c[0]
empno= c[1]
job=c[2]
hiredate=c[3]
except:
print ("Error: unable to fetch data")
print()
tempst=int(input("Enter Employee No:")
temp=input("Enter new designation :")
try:
sql ="Update emp set job=%s where empno='%d"" %(temp,tempst)
[Link](sql)
[Link]()
except Exception as e:
print (e)
[Link]()
def delete2():
try:
db = [Link](user='root', password='tiger', host=localhost',database='mysal")
cursor = [Link]()
sql = "SELECT* FROM emp"
[Link](sql)
results = [Link]()
for c in results:
ename = c[0]
empno= c[1)
job=c[2)
hiredate=c[3]
except:
print ("Error: unable to fetch data")
temp=int(input("\nEnter emp no to be deleted:"))
try:
sal ="delete from emp where empno=%d" %(temp)
ans=input("Are yousure you want to delete the record(y/n):")
if ans=='y' or ans=='y':
[Link](sql)
[Link]()
except Exception as e
print (e)
[Link]()
def insert3():
admno=int(input("Enter adm no: "))
fee=float(input("Enter fee amount:"))
month=input("Enter Month:")
db = [Link](user='root', password='tiger', host='localhost',database=mysq")
cursor =[Link])
sql="INSERT INTO fee(admno,fee, month) VALUES( "%d,'%d''%s')"%(admno,fee,month)
try:
[Link](sql)
[Link]()
except:
[Link]()
[Link]()
def display3():
try:
db =[Link](user='root', password='tiger, host='localhost, database='mysql")
cursor = [Link]()
sql = "SELECT FROM fee"
[Link](sgl)
results = [Link]()
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")
[Link]()
def update3():
try:
db = [Link](user='root', password='tiger', host='localhost',database='mysal')
cursor = [Link]()
sal ="SELECT FROM fee"
[Link](sql)
results = [Link]()
for c in results:
admno= c[o)
fee=c[1]
month=c[2)
except:
print ("Error: unable to fetch data")
print()
tempst=int(input("Enter Admission No:"))
temp=input("Enter new class:")
try:
sal ="Update fee set month=%s where admno='%d" %(temp,tempst)
[Link](sql)
[Link]()
except Exception as e:
print (e)
[Link]()
def delete3():
try:
db=[Link](user='root', password='tiger!. host='localhost', database='mysql')
cursor = [Link]()
sql = "SELECT * FROM fee"
[Link](sql)
results = [Link]()
for c in results:
admno= c[0)
fee=c[1]
month=c[2)
except:
print ("Error: unable to fetch data")
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':
[Link](sql)
[Link]()
except Exception as e:
print (e)
[Link]()
def insert4):
sname=input("Enter Student Name: ")
admno=int(input("Enter Admission No:"))
per-float(input("Enter percentage:"))
res=input("Enter result: ")
db =[Link](user='root', password='tiger', host='localhost', database='mysq|)
Cursor = [Link]()
sal="INSERT INTO exam(sname,admno,per, res) VALUES ( "%s','%d', %s %s"(sname,admno,per,res)
try:
[Link](sql)
[Link]()
except:
[Link]()
[Link]()
def display4():
try:
db = [Link](user='root',password='tiger', host='localhost', database='mysql')
cursor = [Link]()
sql ="SELECT FROM exam"
[Link](sql)
results = [Link]()
for c in results:
sname = c[0]
admno cl1)
dob=c(2)
clsec|3)
cty=c|4)
print
except: ("(sname,admno,per,res)"%(sname,admno,per, res))
print ("Error: unable to fetch data")
[Link])
def update4():
try:
db= [Link](user='root', password='tiger',
cursor =[Link]()
host='localhost',database='mysql')
sql = "SELECT FROM exam"
[Link](sq)
results =[Link]()
for c in results:
sname = c[0]
admno= c(1]
dob=c[2]
cls=c[3]
cty=c[4]
except:
print ("Error: unable to fetch data")
print()
tempst=int(input("Enter Admission No:"))
temp=input("Enter new result :")
try:
sql="Update student set res=%s where admno='%d" %(temp,tempst)
[Link](sql)
[Link]()
except Exception as e:
print (e)
[Link]()
def delete4):
try:
db =[Link](user='root', password='tiger, host='localhost',database='mysal')
Cursor [Link]()
sql ="SELECT * FROM exam"
[Link](sgl)
results = [Link]()
for c in results:
sname = c[0]
admno= c[1]
dob=c[2]
cls=c[3]
cty=c[4]
except:
print ("rror: unable to fetch data")
temp=int(input("\nEnter adm noto be deleted:")
try:
sql ="delete from exam where admno"%d" %
(temp)
ans=input("Are yousure you want to delete the record(y/n):")
22222222279NRR2eeIM
if ans==y' or ans==Y':
[Link](sql)
[Link]()
except Exception as e:
print (e)
[Link]()
selection()
OUTPUT:
INSERT DETAILS
e Python 3.6.5 Shell
Edit Shel ebua
32 ti (Ire
Eython S.6.5 (v5.6.5:f59c0952bt, Har 28 2015, [Link] (H3C v, 199?
1) on win32
Type "cogyrickt", ncxed:ta" "1cerse ()" for rore ::fcmat20. .
==**==*==z:=*= R237AI: D:\ortaonENED3conectiitF
EICOHE 70 5C200 ANACEME:T SY3T2:!
2.3TJDENT ANAGENENI
[Link] ANACEMENI
[Link] MANACE:HENT
4.2XA ANAGEMENT
[Link] u che:ce (1-} :
WELCOME 0 5TUDENI AAEMENI 5Y3IEN
a.E ADHI35ON
[Link] 57DENI DETAIIS
D:ter r cho2ce (a-c)
In1tially h e detail: &xe..
[Link]-Reema, adrc=20E9,dcb=1211-11-12, clg=5,cty=Delh:)
([Link]=71ti, aira=234,dob=2012-01-01,c23=2,Ct=5ehore)
[Link]=qwert,adrr.o=3456, dob=3333-35-33, cl9=3, cty=fg'.j)
E1er 3tide:t ia.e : Deepak rar
E10er AdmiB31cr. io : 2114
E1ter Date of 311th(:-mIt-dd): 2022-21-07
[Link] class for &dmi3310.: 1
ter City : Indoxe
iodified details are..
i91ame=Reema, adrro=2029, dot=1:: 21,clg=5,ct;=De:)
{8rame=Deegak .-7,c2g=-, Ct=.dore)
raI, ¿drr.O=2:, dc=2
[Link]-72t2,a ar.=2:,de=2:12-1-3, cl=2, Cty=Seore)
(3name=ierty,adrr.=356, dob=3333-33-33,clg=3, cty=fg:)
Ln: 39 Col: 4
UPDATE DETAILS
ython 3.6.5 Shell
tatShel! ebug Options Window Help
(v3.6.5:f59c0932b4. tax 29 2018. [Link]) M5C v. 2900 32 bit I:te
E:thon 3.6.5
cn win32
"creditg" or "license () " fo more irfoatiOn.
pe "copYiCh",
=:=
RESTART: D: 'pythc:EXE/DBconrecti
EOME TO 5CHO NNAENENT 5Y37EM
:.5IUDENT ANACEMENI
2.3MEL0YEE ANACENEN?
[Link] MANAGEMENT
.EXAH MANACEMENI
iEer chcice (1-: :
WELCOME TO STUDENI NANACEMENT 3Y3TEM
[Link] ADMIS5ION
[Link] 3TUDENI DETAIIS
o.IS3UE TC
[Link] r chc-ce i¿-c}:
11ita1l"the detail3 &re..
dob=1212-21-12,cig=3, ct=Del::;
[Link]=Reema,air=2022, =fç::
adm.o=i45E,a-b=3332-53-33, cg=3,
(31ame=gwert,
E:te necass :3
Modified details &xe..
cis=5, cty=Del:2)
i31ame=Reera, adrc=23,dc=11:-21-12, lg=3,cy=fgh:
adro=3456,doz=3333-33-33,
i3name=gwery,
Ln: 34 Col: 4
DELETE DETAILS
Python 3.6.5 Shell
Ede EditShell Debug OptionsWindow Heip
(4SC .2900 32 bit (Inte
Fythen S.6.5 (v3.6.5:f59c0932b4, Max 28 2018, [Link])
2)) on wins2
VDe"copyght", "credits" ox n1icerse ( for more informatior.
= RESIART: D:/pythonEXE/ DBconnectiví[Link]
WELCONE TO SCHOOL NANACEMENT SYSTEM
:.37UDENI NANAGEENT
2.2MELOYEE NANAGENENT
E3 ANAGENENT
:.EXN MANAGEMENI
ELCOE TO STUDENT NACEHENI SISTEN
[Link] ADAISSION
.JEDATE SIUDENT DETA:3
.I3SUE IC
I:tially the details axe..
[Link]*ad, adr:=i,dc=11:-1-12,o23-12,Oy=ei
(3Lame=Ree.a, adr=20:9, dot1121-22-22,3-3,cD=Del:i
i3name-gwerty, adrrc=3456, doc=3333-33-33,o2g=3, cty=fgh:i
Ence adm no te be deieted : 11
Are vou suYe yeu want te delete t e reccrd(y:
oified det1l: a2..
3name-Reema, ¿crr.o=22,dob=1121-11-11,c23=3, ct"=Delhi)
i3name=gerty, adr.c=3456, dcb=3333-35-33, cls=3, c=fghii
Ln: 35 Col: 4
By:
ShivkamalSingh (PGT CS)
KV Sehore
BIBLIOGRAPHY
[Link]
*[Link]
*computer science
teacher
*[Link]