Project On School Management System
Project On School Management System
Principal Signature
ACKNOWLED
GEMENT
In the accomplishment of this project successfully, many people have best
owned upon us their blessings and the heart pledge support, this time we
are utilizing to thank all the people who have been concerned with this
project.
Primarily we would like thank god for being able to complete this project
with success. Then we would like to thank my principal Mr. Sanjay Kumar
and our Computer science teacher Mr Vinod Kumar singh whose valuable
guidance has been the ones that helped us patch this project and make it
full proof success, his suggestions and instruction has served as the major
contribution towards the completion of this project.
Then we would like to thank our parents who have helped us with their
valuable suggestions and guidance has been very helpful in various phases
PRATICULARS
1. Preface
2. Aim and Objective
3. System biscription at a Glance
4. System Requirements
Specifications
5. Hardware and Software
Requirements
6. Structure of the Table used
7. Forms and data environment used
8. Future Extensions
9. Python Programs
10. Conclusion
11. Limitations
PREFACE
The Central Board Of Secondary
Education has included in its course, a
full-fledged computer course covering the
Page 5
Page 9
STRUCTURE OF
TABLE
CREATE DATABASE MPS CREATE TABLE ADMISSION
1 Type |
MPS
| adno | varchar(IO) |
| rno | varchar(IO)
| sname | varchar(50)
| address | varchar(IOO) \
| phon | varchar(20)
| clas | varchar(IO)
1.Student Data
Page 12
1. Fees details
Deposit fees
2.
Student
MYSQL TABLES:
A.Admission: This table records all
admission details.
B.Student: This table is used to record
student details.
Fees: This table is used to store fees
C.
details.
FUTURE
EXTENSIONS
• There can be a provtsion for incClding
Examination management
Page 13
Admission.pv:
import main_menu
import admission
import mysql.connector as co
def adm_menu():
while True:
print("\t\t...................”)
print("\t\t ....*********School Management
.......... ...............",
print("\n**Admission**\n")
print("*l. Add New Admission Details*") print("*2. Show Admission
Details*")
print("*3. Search Admission record*") print("*4. Deletion of Record")
print("*5. Update Admission Details*")
Page 15
print("*6. Return*")
print("\t\t-------------------")
choice=int(input("Enter your choice:"))
if choice==l:
admission.admin_cletails()
elif choice==2:
admission.show_admin_details()
elif choice==3:
admission.search_admin_cletails()
elif choice==4:
admission.delete_admin_details()
elif choice==5:
admission.edit_admin_details()
elif choice==6:
return
else:
print("Error: Invalid Choice try again..") conti=input("press any key
ti continue..")
def admin_details():
try:
mycon=co.connect(host="localhost"/ user="root",
passwd="root"/database="MPS")
cursor=mycon.cursor()
adno=input("Enter Admission No.:")
rno=input("Enter Role No.:")
sname=input("Enter Student name No.:")
address=input("Enter Address:")
phon=input("Enter Mobile No.:")
clas=input("Enter Class:")
query="insert into Admission(adno,rno,sname,address,
phon/clas)value(,{}7{}7{}7{}7{}7{},)".format(adno/rno/
sname,address,phon,clas)
cursor.execute(query)
mycon.commit() Page 16
mycon.closeO
cursor.close()
print('Record has been saved in admission table') except:
printCerror')
def show_admin_details():
mycon=co.connect(host="localhost", user="root",
passwd="root",database="MPS")
cursor=mycon.cursor()
cursor.execute("Select * from Admission") data = cursor.fetchall()
for row in data:
print(row)
def search_admin_details():
mycon=co.connect(host="localhost"/ user="root", passwd="root",
database="MPS")
cursor=mycon.cursor()
adn=input("Enter Admission Number:") st="select * from Admission
where adno='%s,"%(adn) cursor.execute(st)
data = cursor.fetchall()
print(data)
def delete_admin_details(): mycon=co.connect(host="localhost" /
user="root", passwd=,,root,,/database=,,MPS")
cursor=mycon.cursor()
adn=input("Enter Admission Number:") st="delete from admission
where adno=,%s,"%(adn) cursor.execute(st)
mycon.commit()
print("Record has been deleted") def edit_admin_details():
mycon=co.connect(host="localhost", user="root", passwd="root",
database="MPS")
cursor=mycon.cursor()
print("l: Edit Name:")
print("2: Edit Address:")
print("3: Phone number:")
print("4: Return:") Page 17
print("\t\t---------------------”)
choice = int(input("Enter your choise:"))
if choice == 1:
admission.edit_name()
elif choice == 2:
admission.edit_adclress()
elif choice == 3:
admission.edit_phno()
elif choice == 4:
return
else:
print("Error: Invalid Choise try again•••••")
conti=" Press any key to return to "
def edit_name():
mycon =co.connect(host="localhost"/user="root"/ passwd="root",
database="MPS")
cursor=mycon.cursor()
ac=input("Enter Admission no:")
nm=input("Enter correct name:")
st = "update Admission set sname='%s' where adno = ,%s'"%(nm/ac)
cursor.execute(st)
mycon.commit()
print('Data updated successfully') def edit_address():
mycon =co.connect(host="localhost"/user="root"/ passwd="root",
database="MPS")
cursor=mycon.cursor()
ac=input("Enter Admission no:")
nm=input("Enter correct address:")
st = "update Admission set address='%s' where adno = ,%s,,,%(nm/ac)
cursor.execute(st)
mycon.commit()
print('Data updated successfully') def edit_phno():
mycon =co.connect(host="localhost",user="root"/
Page 18
passwd="root",database="MPS")
cursor=mycon.cursor()
ac=input("Enter Admission no:")
nm=input("Enter correct Phone:")
st = "update Admission set phon='%s' where adno = '%s'"%(nm /ac)
cursor.execute(st)
mycon.commit()
print('Data updated successfully')
student data.pv: import main_menu import student_data import
mysql.connector as co def stu_menu():
while True:
print("\t\t..................")
print("\t\t"...*********SCHOOL MANAGEMENT SYSTE M
***********"j
print("\t\t..................")
print("\n\t\t*******************STUDENT
DATA *******************"j
print("*l. Add Student Record*")
print("*2. Show Student Records*")
print("*3. Search Student record*")
print("*4. Deletion of Record")
print("*5. Update Student Record*")
print("*6. Return*")
print("\t\t-------------- ")
else:
print("Error: Invalid Choice try again..") conti=input("press any key
ti continue..")
def add_record():
try:
mycon=co.connect(host="localhost"/ user="root", passwd="root",
database="MPS") cursor=mycon.cursor()
session=input("Enter Session:")
stname=input("Enter Student Name:")
stclass=input("Enter Class:")
stsec=input("Enter Section:")
stroll=input("Enter Roll No.:")
sub =[]
for i in range(3):
sb = input(f"Enter subject {i+1}:")
query='1nsert(into Student() value(,{},,,{},,,{},,,{},,,{},/,
'{}')".format(session,stname,stclass,stsec,stroll,sub[0],sub[l], sub[2])
cursor.execute(query)
mycon.commit()
mycon.close()
cursor.close()
print('Recorcl has been saved in admission table')
except:
print('error')
def show_stu_details():
mycon=co.connect(host="localhost", user="root",
passwd="root",database="MPS")
cursor=mycon.cursor()
cursor.execute("Select * from Student") data = cursor.fetchall()
for row in data:
print(row)
def search_stu_details():
mycon=co.connect(host="localhost"/ user="root", passwd="root",
Page 20
database="MPS")
cursor=mycon.cursor()
adn=input("Enter Admission Number:") st="select * from Student
where stroll=,%s",%(adn) cursor.execute(st)
data = cursor.fetchall()
print(data)
def delete_stu_details():
mycon=co.connect(host="localhost"/ user="root",
passwd=,,root,,/database=,,MPS")
cursor=mycon.cursor()
adn=input("Enter Admission Number:") st="delete from Student
where stroll=,%s",%(acln) cursor.execute(st)
mycon.commit()
print("Record has been deleted")
def edit_stu_details():
mycon=co.connect(host="localhost", user="root",
passwd="root",database="MPS")
cursor=mycon.cursor()
print("*l: Edit Name*")
print("*l: Edit First Subject* ")
print("*3: Edit Second Subject* ")
print("*4: Edit Third Subject* ")
print("*5: Return*")
print("\t\t---------------------”)
choice = int(input("Enter your choise:"))
if choice == 1: student_data.edit_name()
elif choice == 2:
student_data.edit_subl()
elif choice == 3:
student_data.edit_sub2()
elif choice == 4:
student_data.edit_sub3()
elif choice == 5: Page 21
return
else:
print("Error: Invalid Choise try again•••••")
conti=" Press any key to return to "
def edit_name():
mycon =co.connect(host="localhost"/user="root"/
passwd="root"/database="MPS")
cursor=mycon.cursor()
ac=input("Enter Roll no:")
nm=input("Enter Correct name:")
st = "update Student set stname='%s' where stroll = ,%s,,,%(nm/ac)
cursor.execute(st)
mycon.commit()
print('Data updated successfully')
def edit_subl():
mycon =co.connect(host="localhost"/user="root"/
passwd=,,root,,/database=,,MPS")
cursor=mycon.cursor()
ac=input("Enter Roll no:")
nm=input("Enter Correct Subject:")
st = "update Student set subl='%s' where stroll = ,%s'"%(nm/ ac)
cursor.execute(st)
mycon.commit()
print('Data updated successfully')
def edit_sub2():
mycon =co.connect(host="localhost",user="root"/
passwd="root",database="MPS")
cursor=mycon.cursor()
ac=input("Enter Roll no:")
nm=input("Enter Correct Subject:")
st = "update Student set sub2='%s' where stroll = '%s'"%(nm / ac)
cursor.execute(st)
mycon.commit()
print('Data updated successfully') def edit_sub3():
Page 22
mycon =co.connect(host="localhost"/user="root"/
passwd="root",database="MPS")
cursor=mycon.cursor()
ac=input("Enter Roll no:")
nm=input("Enter Correct Subject:")
st = "update Student set sub3='%s' where stroll = ,%s,,,%(nm/ ac)
cursor.execute(st)
mycon.commit()
print('Data updated successfully')
fee details.pv:
import main_menu
import fee_details
import mysql.connector
def fee_menu():
while True:
print("\t\t.................")
print("\t\t ....*********SCHOOL MANAGEMENT
CVQTFM ******** ***'4
p«rw..........................-i
print("\n **FEE DETAILS**\n")
print("*l: Deposit Fee*")
print("*2 : View Fee of All Students*")
print("*3 : View Fee of a Particular Student*") print("*4:
Return*")
try:
Page 23
mycursor=mydb.cursor()
admno=int(input("Enter the Admission number of the Student:"))
sql="Select Admission.adno, Admission.sname, Admission.clas,
sum(Fees.FeeDeposit), count(Fees.month) from Admission INNER JOIN
Fees ON Admission.adno=Fees. adno and Fees.adno = %s"
adm=(admno,)
mycursor.execute(sql,adm)
res=mycursor.fetchall()
month = ['April','May','June','July','August','September',
'October','November','December','January', 'February','March'] for x in
res:
x = list(x)
a = x.pop()
x.append(month[a-l])
print('\n',x,'\n')
print (f"Fee left from {month[a]}") print('\n','\n')
Page 26
BIBLIOGRAPHY
1.Computer science with Python- Class XI And XII By:Sumita arora
2.Website: http://www.w3resource.com
3.http://en.wikipedia.org/wiki/E_(mathematical constant)
Page 27