Professional Documents
Culture Documents
PROJECT FILE
OF
COMPUTER SCIENCE
ON
1 Certificate
2 Acknowledgement
3 Introduction
4 Programs Used
5 Source Code
6 Output
7 Bibliography
Certificate
This is to herby Certify that the genuine and
original work has been done to code and
execute the program. This is the genuine work
of preparation of School fees and management
and the program is original in all aspects.
…………………….
Teacher’s signature
Acknowledgement
It is used for-
Software development, web development (server-side),
system scripting, Mathematics.
Features of Python-
❖ Easy to use: Due to simple syntax rule.
❖ Interpreted language: Code execution &
interpretation line by line.
❖ Cross-platform language: It can run on windows,
Linux, Macintosh, etc. equally.
❖ Expressive language: Less code to be written as it
itself express the purpose of the code.
❖ Completeness: Support wide range of library.
❖ Free & Open Source: Can be downloaded freely and
source code can be modifying for improvement.
Shortcomings of Python-
❖ Lesser libraries : as compared to other
programming languages like c++ , java,.net
❖ Slow language: as it is interpreted languages, it
executes the program slowly.
❖ Weak on Type-binding: It not pin point on use of a
single variable for different data type.
About MySQL
Introduction:
MySQL is currently the most popular open source database
software. It is a multi-user, multithreaded database management
system. MySQL is especially popular on the web. It is one of the
parts of the very popular LAMP platform. Linux, Apache, MySQL and
PHP or WIMP platform Windows, Apache, MySQL and PHP. MySQL
AB was founded by Michael Widenius (Monty), David Axmark and
Allan Larsson in Sweden in year 1995.
Features of MySQL:
❖ Open Source & Free of Cost: It is Open Source and available at
free of cost.
❖ Portability: Small enough in size to install and run it on any
types of Hardware and OS like Linux,MS Windows or Mac etc.
❖ Security: Its Databases are secured & protected with password.
❖ Connectivity: Various APIs are developed to connect it with
many programming languages.
❖ Query Language: It supports SQL (Structured Query Language)
for handling database.
Programs Used
• MySQL
CODING
Fee table:
Python Code:
import os
import platform
import mysql.connector
import pandas as pd
mydb=mysql.connector.connect(host="localhost",\
user="root",\
passwd="root",\
database="School")
mycursor=mydb.cursor()
def stuInsert():
L=[]
L.append(roll)
L.append(name)
L.append(age)
L.append(city)
stud=(L)
mycursor.execute(sql,stud)
mydb.commit()
def stuView():
print("1. Roll")
print("2. Name")
print("3. Age")
print("4. City")
print("5. All")
if ch==1:
rl=(s,)
elif ch==2:
rl=(s,)
mycursor.execute(sql,rl)
elif ch==3:
rl=(s,)
mycursor.execute(sql,rl)
elif ch==4:
rl=(s,)
mycursor.execute(sql,rl)
elif ch==5:
mycursor.execute(sql)
res=mycursor.fetchall()
print("The Students details are as follows : ")
for x in res:
print(x)
def feeDeposit():
L=[]
L.append(roll)
L.append(feedeposit)
L.append(month)
fee=(L)
mycursor.execute(sql,fee)
mydb.commit()
def feeView():
rl=(roll,)
mycursor.execute(sql,rl)
res=mycursor.fetchall()
for x in res:
print(x)
def removeStu():
rl=(roll,)
mycursor.execute(sql,rl)
mycursor.execute(sql,rl)
mydb.commit()
def MenuSet(): #Function For The Student Management System
except ValueError:
else:
if(userInput == 1):
stuInsert()
elif (userInput==2):
stuView()
elif (userInput==3):
feeDeposit()
elif (userInput==4):
removeStu()
elif (userInput==5):
feeView()
else:
MenuSet()
def runAgain():
while(runAgn.lower() == 'y'):
if(platform.system() == "Windows"):
print(os.system('cls'))
else:
print(os.system('clear'))
MenuSet()
runAgain()
Bibliography
• Computer science with Python Class XI
& XII by Preeti Arora.
• Internet.