School Management: A Project Report On
School Management: A Project Report On
DELHI CANTT-110010
A
Project Report
On
SCHOOL MANAGEMENT
Submitted By
Deepanshu Shukla
Class: - XII C
CERTIFICATE
CERTIFICATE
SIGNATURE OF EXAMINER
DECLARATION
DEEPANSHU SHUKLA
Class: XII C
ACKNOWLEDGEMENT
I would like to express a deep sense of thanks & gratitude to my
project guide Mr. KAPIL SEHGAL Sir for guiding me
immensely through the course of the project. He always evinced
keen interest in my work. His constructive advice & constant
motivation have been responsible for the successful completion of
this project.
My sincere thanks goes to Mrs. Bharthi Kukkal, Our principal
Mam, for her co-ordination in extending every possible support
for the completion of this project.
I also thanks to my parents for their motivation & support. I must
thanks to my classmates for their timely help & support for
compilation of this project.
Last but not the least, I would like to thank all those who had
helped directly or indirectly towards the completion of this
project.
DEEPANSHU SHUKLA
Class: XIIC
CONTENTS
1. About Project
2. Hardware and Software Used
3. Libraries and Functions Used
4. Database and Table (Relation)
5. Working Description
6. Coding
7. Output Screen
8. Bibliography
ABOUT PROJECT
Tables Used:
Table’s Description:
WORKING DESCRIPTION
#Function Part
if mydb.is_connected():
print("===============================================================================")
print("============== ********WELCOME TO SCHOOL MANAGEMENT SYSTEM ********==========")
print("===============================================================================")
print()
cursor=mydb.cursor()
if up==1:
update_name()
break
if up==2:
update_phone()
break
if up==3:
update_address()
break
if up==4:
update_class()
break
if up==5:
break
def search_phoneno():
a=input("Enter Phone NO:")
qr="select * from ADMISSION_DETAILS where Phone_No='{}' ".format(a)
cursor.execute(qr)
for i in cursor:
print("----------------SEARCH RESULT--------------")
print("Admission ID:",i[0])
print("Name of Student:",i[1])
print("Phone NO:",i[2])
print("Address:",i[3])
print("Class:",i[4])
print("-------------------------------------------------------")
def search_class():
a=input("Enter Class:")
qr="select * from ADMISSION_DETAILS where Class='{}' ".format(a)
cursor.execute(qr)
for i in cursor:
print("----------------SEARCH RESULT--------------")
print("Admission ID:",i[0])
print("Name of Student:",i[1])
print("Phone NO:",i[2])
print("Address:",i[3])
print("Class:",i[4])
print("-------------------------------------------------------")
def search():
while True:
print("1.Search By Admission ID")
print("2.Search By Name")
print("3.Search By Phone No")
print("4.search By Class")
print("5.EXIT")
stu=int(input("Enter your option/choice(1-5): "))
if stu==1:
search_admissionid()
break
if stu==2:
search_name()
break
if stu==3:
search_phoneno()
break
if stu==4:
search_class()
break
if stu==5:
break
def stud_admissionid():
a=input("Enter STUDENT ADMISSION ID:")
qr="select * from stud_details where admission_id='{}'".format(a)
cursor.execute(qr)
for i in cursor:
print("--------------STUDENT DETAILS--------------")
print("ADMISSION ID:",i[0])
print("STUDENT NAME:",i[1])
print("STUDENT AGE:",i[2])
print("STUDENT PHONE NO:",i[3])
print("STUDENT ADDRESS:",i[4])
print("STUDENT EMAIL:",i[5])
print("--------------------------------------------------------")
def stud_name():
a=input("Enter STUDENT NAME:")
qr="select * from stud_details where stud_name='{}'".format(a)
cursor.execute(qr)
for i in cursor:
print("--------------STUDENT DETAILS--------------")
print("ADMISSION ID:",i[0])
print("STUDENT NAME:",i[1])
print("STUDENT AGE:",i[2])
print("STUDENT PHONE NO:",i[3])
print("STUDENT ADDRESS:",i[4])
print("STUDENT EMAIL:",i[5])
print("--------------------------------------------------------")
def stud_age():
a=input("Enter STUDENT AGE:")
qr="select * from stud_details where age={}".format(a)
cursor.execute(qr)
for i in cursor:
print("--------------STUDENT DETAILS--------------")
print("ADMISSION ID:",i[0])
print("STUDENT NAME:",i[1])
print("STUDENT AGE:",i[2])
print("STUDENT PHONE NO:",i[3])
print("STUDENT ADDRESS:",i[4])
print("STUDENT EMAIL:",i[5])
print("--------------------------------------------------------")
def stud_phoneno():
a=input("Enter Student Phone No: ")
qr="select * from stud_details where phone_no='{}'".format(a)
cursor.execute(qr)
for i in cursor:
print("--------------STUDENT DETAILS--------------")
print("ADMISSION ID:",i[0])
print("STUDENT NAME:",i[1])
print("STUDENT AGE:",i[2])
print("STUDENT PHONE NO:",i[3])
print("STUDENT ADDRESS:",i[4])
print("STUDENT EMAIL:",i[5])
print("--------------------------------------------------------")
def stud_details():
while True:
print("1.search for Student By ADMISSION ID")
print("2.Search for Student By Name")
print("3.Search for Student By Age")
print("4.Search for Student By Phone No")
print("5.EXIT")
a=int(input("Enter your option/choice(1-5):"))
if a==1:
stud_admissionid()
break
if a==2:
stud_name()
break
if a==3:
stud_age()
break
if a==4:
stud_phoneno()
break
if a==5:
break
def insert_stud():
admission_id=input("Enter Admission ID:")
stud_name=input("Enter Student Name:")
age=int(input("Enter Student Age:"))
phone_no=int(input("Enter Student Phone No:"))
address=input("Enter Student Address:")
email=input("Enter Student Email:")
qr="insert into stud_details
values('{}','{}',{},{},'{}','{}')".format(admission_id,stud_name,age,phone_no,address,email)
print("Data has been saved....")
cursor.execute(qr)
mydb.commit()
def delete_stud():
a=input("Enter Admission ID of Student:")
qr="delete from stud_details where admission_id='{}'".format(a)
print("Data has been deleted....")
cursor.execute(qr)
mydb.commit()
def show_stud_details():
qr="select * from stud_details"
cursor.execute(qr)
for i in cursor:
print("--------------STUDENT DETAILS--------------")
print("ADMISSION ID:",i[0])
print("STUDENT NAME:",i[1])
print("STUDENT AGE:",i[2])
print("STUDENT PHONE NO:",i[3])
print("STUDENT ADDRESS:",i[4])
print("STUDENT EMAIL:",i[5])
print("--------------------------------------------------------")
#OPTIONS
while True:
print()
print("***************************************************")
print("* KV NO 02-MAIN MENU *")
print("***************************************************")
print("* *")
print("* 1:Admission Details *")
print("* 2:Student Details *")
print("* 3:Exit *")
print("* *")
print("***************************************************")
opt=int(input("enter your option/choice(1-3):"))
if opt==1:
while True:
print(".........................................................................")
print(". ADMISSION MENU .")
print(".........................................................................")
print(". .")
print(". 1:Insert Admission Details .")
print(". 2:Show Admission Details .")
print(". 3:Update Admission Details .")
print(". 4:Search of Admission Details .")
print(". 5.Deletion of Admission Details .")
print(". 6.Return to MAIN MENU .")
print(". .")
print("..........................................................................")
opt1=int(input("Enter your option/choice(1-6):"))
if opt1==1:
insert()
elif opt1==2:
show_admissions()
elif opt1==3:
update()
elif opt1==4:
search()
elif opt1==5:
delete()
elif opt1==6:
break
else:
print("Please choose one from above menu...")
elif opt==2:
while True:
print("...............................................................................")
print(". STUDENT DATA MENU .")
print("...............................................................................")
print(". .")
print(". 1.Insert Student Details .")
print(". 2.Show Student Details .")
print(". 3.Search for Student Details .")
print(". 4.Delete Student Details .")
print(". 5.Exit .")
print(". .")
print("...............................................................................")
opt2=int(input("Enter your option/choice(1-5):"))
if opt2==1:
insert_stud()
elif opt2==2:
show_stud_details()
elif opt2==3:
stud_details()
elif opt2==4:
delete_stud()
elif opt2==5:
break
else:
print("Please choose one from above menu...")
elif opt==3:
break
else:
print("Please choose one from above menu...")
mydb.close()
OUTPUT SCREENS
BIBLIOGRAPHY
1 http://www.google.com/
2 http://en.wikipedia.org
3 Computer Science with Python by Sumita
Arora
4. Mr. Kapil Sehgal