0% found this document useful (0 votes)
21 views28 pages

Purva CS 2024-25

Uploaded by

pradhumankamble6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views28 pages

Purva CS 2024-25

Uploaded by

pradhumankamble6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 28

PM SHRI Kendriya Vidyalaya

No.2, AFS, PUNE

C.S. PROJECT
SCHOOL MANAGEMENT
SYSTEM
Subject: - COMPUTER SCIENCE (083)
Submitted By: - GUIDED BY: -
NAME: - PURVA MAHADIK HARI SHANKAR RAI
CLASS: - 12 A
ROLL NO: -

ACADEMIC YEAR: - 2024-25


ACKNOWLEDGEMENT
I would like to express my special thanks of gratitude
to our principal MR. BHARAT BHUSHAN and to my
CS teacher Hari Shankar Rai who gave me the
golden opportunity to do this wonderful project and
provided all necessary support to do the project on
the topic SCHOOL MANAGEMENT SYSTEM which
also allowed me to do a lot of research and I came to
know about so many new things, I am really thankful
to them.
Secondly, I would also like to thank my parents
and friends who helped me a lot in completing this
project within the limited time frame

PURVA MAHADIK
CERTIFICATE

This to certify that PURVA MAHADIK of class


12A has successfully completed her python
project on the topic ‘SCHOOL MANAGEMENT
SYSTEM’ for the subject COMPUTER SCIENCE
(083) as prescribed by CBSE, under the guidance
of Hari Shankar Rai, PGT CS during the academic
year 2024-2025.

Teacher signature Principal signature

Examiner signature
CONTENTS: - FLOW OF
CHART
CODE: -
import mysql.connector as a

con= a.connect(host="localhost",user="root",passwd="system",database="Purva")

def ast():
n=input("ENTER THE NAME OF STUDENT")

c=input("ENTER THE CLASS OF STUDENT")

r=input("ENTER THE ROLL NUMBER")

a=input("ENTER THE ADDRESS")

p=input("ENTER THE PHONE NUMBER")

data=(n,c,r,a,p)

sql='insert into Students values(%s,%s,%s,%s,%s)'

c=con.cursor()

c.execute(sql,data)

con.commit()

print("Data entered successfully")

print(">-------------------------------------------------------------------------------------------------
---------")

main()
def rst():
c=input("class name:")

r=input("Roll number:")

data=(c,r)

sql='delete from Students where class =%s and roll_no=%s'

c = con.cursor()

c.execute(sql,data)

con.commit()

print("Data Updated")

print(">-----------------------------------------------------------------")

main()

def addt():
n=input("Teacher:")

p=input("post:")

s=input("salary:")

ph=input("phone:")

ac=input("account:")

data=(n,p,s,ph,ac)

sql='insert into Teacher values(%s,%s,%s,%s,%s)'

c= con.cursor()

c.execute(sql,data)
con.commit()

print("Data Entered Successfully")

print(">------------------------------------------------------------------")

main()

def remt():
n=input("Teacher name :")

ac=input("Account No:")

data=(n,ac)

sql='delete from Teacher where name = %s and account =%s'

c= con.cursor()

c.execute(sql,data)

con.commit()

print(" Data Updated")

print(">--------------------------------------------------------------")

main()

def abclass():
d=input("date:")

cl=input("Class:")

ab=input("Name Of Absent Student")

data=(d,cl,ab)

sql='insert into cattendance values(%s,%s,%s)'


c=con.cursor()

c.execute(sql,data)

con.commit()

print("Data Updated")

print(">--------------------------------------------------------------------")

main()

def abteacher():
d=input("data:")

ab=input("Names Of Absent Teacher")

data=(d,ab)

sql='insert into tattendance values(%s,%s)'

c=con.cursor()

c.execute(sql,data)

con.commit()

print("Data Updated")

print(">--------------------------------------------------------------------")

main()

def submitf():
n=input("student name:")

c=input("class name :")

r=input("roll no.")
m=input("months and year")

f=input("fess:")

d=input("date:")

data=(n,c,r,m,f,d)

sql='insert into Fees values(%s,%s,%s,%s,%s,%s)'

c=con.cursor()

c.execute(sql,data)

con.commit()

print("Data Entered Successfully")

print(">-----------------------------------------------------------------")

main()

def pays():
n=input("Teacher name:")

m=input("months:")

p=input("Yes/No:")

data=(n,m,p)

sql='insert into salary values(%s,%s,%s)'

c=con.cursor()

c.execute(sql,data)
con.commit()

print("Data Entered Successfully")

print(">-----------------------------------------------------------------")

main()

def dclass():
cl=input("class:")

data=(cl,)

sql="select * from Students where class=%s"

c=con.cursor()

c.execute(sql,data)

d=c.fetchall()

print(d)

for i in c:

print("NAME:",i[0])

print("CLASS:",i[1])

print("ROLL:",i[2])

print("ADDRESS:",i[3])

print("PHONE:",i[4])

print(">--------------------------------<")

print(">--------------------------------------------------------------")

main()
def dteacher():
sql="select*from Teacher"

c=con.cursor()

c.execute(sql)

d=c.fetchall()

for i in d:

print("NMAE:",i[0])

print("POST:",i[1])

print("SALARY:",i[2])

print("ADDRESS:",i[3])

print("ACNO:",i[4])

print(">---------------------------------<")

print(">--------------------------------------------------------------------")

def main():
print(""" K V 2 AFS PUNE
1.ADD STUDENT 2.REMOVE
STUDENT

3.ADD TEACHER 4.REMOVE


TEACHER

5.CLASS ATTENDANCE 6.TEACHER


ATTENDANCE

7.SUBMIT FEES 8.PAY SALARY

9.DISPLAY CLASS 10.TEACHER LIST

""")

choice=input("Enter The NO. :")

print(">-----------------------------------<")

if(choice=='1'):

ast()
elif(choice=='2'):

rst()

elif(choice=='3'):

addt()

elif(choice=='4'):

remt()

elif(choice=='5'):

abclass()

elif(choice=='6'):

abteacher()

elif(choice=='7'):

submitf()
elif(choice=='8'):

pays()

elif(choice=='9'):

dclass()

elif(choice=='10'):

dteacher()

else:

print("Wrong choice................")

main()
def pswd():
p=input("Password:")

if p=="12345":

main()

else:

print("Wrong Password:")

pswd()

pswd()

SQL Queries:-

create database Purva;

use Purva;

 create table Teacher (name varchar (20), post varchar (20), salary
int,
phone int, account varchar (20));
 create table Students ( name varchar (50) , post varchar (50),
roll_no int, address varchar (50) , phone_no int);

 create table Fees (students varchar (50), class int , roll_no int ,
monts_and_years varchar (50), fees int ,date date );

 create table salary (name varchar (50), months int , yes_or_no


varchar (20));
 create table cattendance (date date , class varchar (50),
name_of_absent_students varchar (50));

 create table tattendance (data varchar (50), name varchar (50));


import mysql.connector as a

con=
a.connect(host="localhost",user="root",passwd="system",database="Pu
rva")

def ast():

n=input("ENTER THE NAME OF STUDENT")

c=input("ENTER THE CLASS OF STUDENT")

r=input("ENTER THE ROLL NUMBER")

a=input("ENTER THE ADDRESS")

p=input("ENTER THE PHONE NUMBER")

data=(n,c,r,a,p)

sql='insert into Students values(%s,%s,%s,%s,%s)'

c=con.cursor()

c.execute(sql,data)

con.commit()

print("Data entered successfully")


print(">--------------------------------------------------------------------------------------
--------------------")

main()

def rst():

c=input("class name:")

r=input("Roll number:")

data=(c,r)

sql='delete from Students where class =%s and roll_no=%s'

c = con.cursor()

c.execute(sql,data)

con.commit()

print("Data Updated")

print(">-----------------------------------------------------------------")

main()

def addt():

n=input("Teacher:")

p=input("post:")

s=input("salary:")

ph=input("phone:")
ac=input("account:")

data=(n,p,s,ph,ac)

sql='insert into Teacher values(%s,%s,%s,%s,%s);'

c= con.cursor()

c.execute(sql,data)

con.commit()

print("Data Entered Successfully")

print(">------------------------------------------------------------------")

main()

def remt():

n=input("Teacher name :")

ac=input("Account No:")

data=(n,ac)

sql='delete from Teacher where name = %s and account =%s'

c= con.cursor()

c.execute(sql,data)

con.commit()

print(" Data Updated")

print(">--------------------------------------------------------------")

main()
def abclass():

d=input("date:")

cl=input("Class:")

ab=input("Name Of Absent Student")

data=(d,cl,ab)

sql='insert into cattendance values(%s,%s,%s)'

c=con.cursor()

c.execute(sql,data)

con.commit()

print("Data Updated")

print(">--------------------------------------------------------------------")

main()

def abteacher():

d=input("data:")

ab=input("Names Of Absent Teacher")

data=(d,ab)

sql='insert into tattendance values(%s,%s)'

c=con.cursor()

c.execute(sql,data)
con.commit()

print("Data Updated")

print(">--------------------------------------------------------------------")

main()

def submitf():

n=input("student name:")

c=input("class name :")

r=input("roll no.")

m=input("months and year")

f=input("fess:")

d=input("date:")

data=(n,c,r,m,f,d)

sql='insert into Fees values(%s,%s,%s,%s,%s,%s)'

c=con.cursor()

c.execute(sql,data)

con.commit()

print("Data Entered Successfully")

print(">-----------------------------------------------------------------")

main()
def pays():

n=input("Teacher name:")

m=input("months:")

p=input("Yes/No:")

data=(n,m,p)

sql='insert into salary values(%s,%s,%s)'

c=con.cursor()

c.execute(sql,data)

con.commit()

print("Data Entered Successfully")

print(">-----------------------------------------------------------------")

main()

def dclass():

cl=input("class:")

data = (cl,)

sql="select * from Students ;"


c=con.cursor()

c.execute(sql)

d=c.fetchall()

print(d)

for i in d:

print("NAME:",i[0])

print("CLASS:",i[1])

print("ROLL:",i[2])

print("ADDRESS:",i[3])

print("PHONE:",i[4])

print(">--------------------------------<")

print(">--------------------------------------------------------------")

main()

def dteacher():

sql="select*from Teacher;"
c=con.cursor()

c.execute(sql)

d=c.fetchall()

print(d)

for i in d:

print("NMAE:",i[0])

print("POST:",i[1])

print("SALARY:",i[2])

print("ADDRESS:",i[3])

print("ACNO:",i[4])

print(">---------------------------------<")

print(">--------------------------------------------------------------------")

def main():

print(""" K V 2 AFS PUNE


1.ADD STUDENT
2.REMOVE STUDENT

3.ADD TEACHER
4.REMOVE TEACHER

5.CLASS ATTENDANCE
6.TEACHER ATTENDANCE

7.SUBMIT FEES 8.PAY


SALARY

9.DISPLAY CLASS
10.TEACHER LIST

""")

choice=input("Enter The NO. :")

print(">-----------------------------------<")

if(choice=='1'):

ast()

elif(choice=='2'):

rst()

elif(choice=='3'):

addt()

elif(choice=='4'):

remt()

elif(choice=='5'):
abclass()

elif(choice=='6'):

abteacher()

elif(choice=='7'):

submitf()

elif(choice=='8'):

pays()

elif(choice=='9'):

dclass()

elif(choice=='10'):

dteacher()

else:

print("Wrong choice................")

main()

def pswd():

p=input("Password:")

if p=="12345":

main()
else:

print("Wrong Password:")

pswd()

pswd()

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy