You are on page 1of 21

KENDRIYA VIDYALAYA

ARUVANKADU

COMPUTER SCIENCE
PROJECT REPORT
ON
SCHOOL MANAGEMENT SYSTEM!!!
FOR
CBSE 2023-24 EXAMINATION

SUBMITTED BY:

MAHESH
NAVEEN

UNDER THE GUIDANCE OF:


ANITHA
PGT (COMP.SC)
CERTIFICATE

This is to certify that ___________ of class


XII-A has successfully completed their
Computer Science project on “SCHOOL
MANAGEMENT SYSTEM” under the guidance of
Mrs. ANITHA MUTHUPANDI (PGT Comp. Sc.).
This is certified to be the bonafide work of the
student in the Informatics Computer Science
laboratory during the academic year 2023-24.

TEACHER IN CHARGE EXAMINER PRINCIPAL


ACKNOWLEDGEMENT
I have tried to apply best of knowledge and

experience, gained during the study and class

work experience.

I would like to extend my sincere thanks and


gratitude to my teacher MRS ANITHA (PGT
Comp.Sc), who gave me an opportunity to make
this project and supported me throughout.

I am very much thankful to our Principal

SANJAY KUMAR JHA for giving his valuable


time and moral support.

I would like to take the opportunity to extend

my sincere thanks and gratitude to our parents

for being a source of inspiration and providing

time and freedom to develop this software

project.
INDEX

1. CERTIFICATE

2. ACKNOWLEDGEMENT

3. INTRODUCTION

4.THEORITICAL APPROACH

5. CODING

6. OUTPUT

7. BIBLOGRAPHY
INTRODUCTION

This project provides the information about


‘SCHOOL MANAGEMENT SYSTEM’

This allows storage and management of details


of all users. User’s details like Roll No,Student
Name, Fees Details, Teacher Name, Bill status,
are stored in ‘Mysql’ database.

Details can be added, updated or deleted based


on user’s requirement. Displaying all the selected
records is also possible if required.
THEORITICAL
APPROACH
What is Python?

Python is an interpreted, object-oriented, high-level


programming language with dynamic semantics. Its high-level
built in data structures, combined with dynamic typing and
dynamic binding, make it very attractive for Rapid Application
Development, as well as for use as a scripting or glue language to
connect existing components together. Python's simple, easy to
learn syntax emphasizes readability and therefore reduces the
cost of program maintenance. Python supports modules and
packages, which encourages program modularity and code reuse.
The Python interpreter and the extensive standard library are
available in source or binary form without charge for all major
platforms, and can be freely distributed.

Often, programmers fall in love with Python because of the


increased productivity it provides. Since there is no compilation
step, the edit-test-debug cycle is incredibly fast. Debugging
Python programs is easy: a bug or bad input will never cause a
segmentation fault. Instead, when the interpreter discovers an
error, it raises an exception. When the program doesn't catch
the exception, the interpreter prints a stack trace. A source
level debugger allows inspection of local and global variables,
evaluation of arbitrary expressions, setting breakpoints, stepping
through the code a line at a time, and so on. The debugger is
written in Python itself, testifying to Python's introspective
power. On the other hand, often the quickest way to debug a
program is to add a few print statements to the code
Features of Python:

Python provides lots of features that are listed below.

1) Easy to Learn and Use

Python is easy to learn and use. It is developer-friendly and high-


level programming language.

2) Expressive Language

Python language is more expressive means that it is more


understandable and readable.

3) Interpreted Language

Python is an interpreted language i.e. interpreter executes the


code line by line at a time. This makes debugging easy and thus
suitable for beginners.

4) Cross-platform Language
Python can run equally on different platforms such as Windows,
Linux, Unix and Macintosh etc. So, we can say that Python is a
portable language.

5) Free and Open Source

Python language is freely available at official web address. The


source-code is also available. Therefore, it is open source.

6) Object-Oriented Language

Python supports object-oriented language and concepts of


classes and objects come into existence.
SYSTEM REQUIREMENTS

 RAM : 8GB
 PROCESSOR : INTEL CORE i5
 OPERATING SYSTEM : MS Windows 10

SOFTWARES USED

 Python : 3.7.4 (64 bit)


 MySQL : version 5.7
 MySQL-Python connector
CODING
#CONNECT DATABASE

import mysql.connector as a

passwd=str(input("DATABASE PASSWORD;"))

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

#SELECT DATA BASE IF EXIST

c=con.cursor()

c.execute("show databases")

dl=c.fetchall()

dl2=[]

for i in dl:

dl2.append(i[0])

if'mysch'in dl2:

sql="use mysch"

c.execute(sql)

else: #CREATE DATABASE IF DOES


NOT EXIST

sql1="create database mysch"

c.execute(sql1)

sql2 = "use mysch"


c.execute(sql2)

sql3="""create table Students (Name varchar(50), Registration


varchar(50), Class varchar(10), RollNumber int(2),

Date varchar(20))"""

c.execute(sql3)

sql4="""create table Fees (Name varchar(20), Registration


varchar(25), Fee varchar(8), Date varchar(20),Phone
varchar(20))"""

c.execute(sql4)

sql5="""create table Bills (Detail varchar(20), Cost Integer,


Date varchar(20))"""

c.execute(sql5)

sql6="""create table Teacher (Name varchar(100), Work


varchar(20),Salary varchar(20))"""

c.execute(sql6)

con.commit()

#SYSTEM PASSWORD LOGIN

def signin():

print("\n")

print(" ~~~~~~~>>>>>>>>>>>>>> Welcome to KENDRIYA


VIDYALAYA ARUVANKADU<<<<<<<<<<<<<<~~~~~~~")

print("\n")

p=input("System Password:")

if p=="dis111":
options()

else:

signin()

#PROJECT WORKING OPTIONS

def options():

print("""

~~KENDRIYA VIDYALAYA ARUVANKADU~~

---------------------------------------------

1.Add Student 5.Display Students

2.Pay Fees 6.Display Fees

3.Add Bill 7.Display Bills

4.Add Teacher 8.Display Teachers

---------------------------------------------

""")

choice=input("select option:")

while True:

if(choice=='1'):

AddStudent()

elif(choice=='2'):

PayFees()

elif(choice=='3'):

AddBill()

elif(choice=='4'):
AddTeacher()

elif(choice=='5'):

dStudents()

elif(choice=='6'):

dFees()

elif(choice=='7'):

dBills()

elif(choice=='8'):

dTeacher()

else:

print("enter again....")

options()

def AddStudent():

n=input("Name:")

r=input("Registration:")

c=input("Class:")

rn=int(input("Roll Number:"))

d=input("Date:")

data=(n,r,c,rn,d)

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

c=con.cursor()

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

print("Data inserted succesfully")

options()

def PayFees():

n=input("Name:")

r=input("Registration:")

f=input("Fee:")

d=input("Date:")

p=input("phone:")

data=(n,r,f,d,p)

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

c=con.cursor()

c.execute(sql,data)

con.commit()

print("Data inserted succesfully")

options()

def AddBill():

dt=input("Detail:")

c=input("Cost:")

d=input("Date:")

data=(dt,c,d)
sql='insert into Bills values(%s,%s,%s)'

c=con.cursor()

c.execute(sql,data)

con.commit()

print("Data inserted succesfully...")

options()

def AddTeacher():

n=input("Name:")

w=input("Work:")

s=input("Salary:")

data=(n,w,s)

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

c=con.cursor()

c.execute(sql,data)

con.commit()

print("Data inserted succesfully...")

options()

def dStudent():

cl=input("class:")

sql='select * from Students'

c=con.cursor()
c.execute (sql)

d=c.fetchwall()

for i in d:

if i[2]==cl:

print("Name:",i[0],"Registration:",i[1],"Class:",i[2],"RollNumber:",i
[3],"Date:",i[4])

print(".................................................")

options()

def dFees():

sd=input("Date:")

sql='select * from Fees'

c=con.cursor()

c.execute (sql)

d=c.fetchwall()

for i in d:

if i[3]==sd:

print("Name:",i[0],"Registration:",i[1],"Fee:",i[2],"Date:",i[3],"Pho
ne:",i[4])

print(".................................................")

options()
def dBills():

#sd=input("Date:")

sql='select * from Bills'

c=con.cursor()

c.execute(sql)

d=c.fetchall()

for i in d:

print("Detail:",i[0],"Cost:",i[1],"Date;",i[2])

print("...........................................................")

options()

def dTeacher():

sql='select * from Teacher'

c=con.cursor()

c.execute(sql)

d=c.fetchall()

for i in d:

print("Name:",i[0],"Work:",i[1],"salary:",i[2])

print("........................................................")

options()

signin()

OUTPUT
BIBLOGRAPHY

1. Informatics Practices by Sumita Arora

2. The Complete Reference MySQL by Vikram V

3. https://stackoverflow.com

4.https://www.python.org/
5.Online Help of python

6.https://matplotlib.org/2.0.2/users/

7.https://www.tutorialspoint.com/numpy/

You might also like