SOURCE CODE
#PROJECT DONE FOR THE SUBMISSION OF AISSCE BOARD EXAMINATION
#PROJECT ON SCHOOL MANGEMENT SYSTEM
#INCLUDING HEADER FILES
import [Link]
import [Link] as plt
import numpy as np
#definition for HOMEPAGE
def Homepage():
print("\n\n\n")
print("**************************")
print("WELCOME TO MGM SCHOOL")
print("1. ADMISSION")
print("2. SEARCH")
print("3. ISSUE OF TC")
print("4. FEE DEATILS")
print("5. REPORT")
print("\n")
print("************************")
op=int(input("Enter yuor option"))
if op==1:
admission()
elif op==2:
searchstud()
elif op==3:
tcissue()
elif op==4:
feesection()
elif op==5:
report()
else:
print("Invalid option")
#Definition for Login Page
def login():
print("\n\n\n\n")
print("******************************")
print("WELCOME TO MGM SCHOOL")
print("**********************")
user=input("Enter user id:")
pas=input("Enter password:")
if user=="Admin" and pas=="mgm":
print("SUCCESSFULLY LOGGED!!!!")
print("*************************")
Homepage()
else:
print("INVALID CREDENTIALS!!!")
login()
#Definition for Admission Section
def admission():
print("\n\n\n")
print("***********************************")
print("WELCOME TO MGM CPS")
print("WELCOME YOU AS A STUDENT OF THIS SCHOOL")
print("***************************************")
print("\n\n")
s_adno=input("Enter Admission NUmber:")
s_name=input("Enter student name:")
s_classdiv=input("Enter classs and division:")
s_dob=input("Enter your date of birth:")
s_gender=input("Enter your gender:")
s_pname=input("Enter parent name:")
s_phoneno=input("Enter phone number:")
s_fee=int(input("Enter total Fee for the whole year"))
con=[Link](host="localhost",user="root",password="mgm",database="ip1
2")
mycursor=[Link]()
string1="insert into student
values('{}','{}','{}','{}','{}','{}','{}',{})".format(s_adno,s_name,s_classdiv,s_dob,s_gender,s_p
name,s_phoneno,s_fee)
[Link](string1)
[Link]()
[Link]()
print("SUCESSFULLY COMPLETED YOUR ADMISSION PROCESS!!!!!!")
print("*****************************************************")
#Definition for Student Search
def searchstud():
print("\n\n\n")
print("WELCOME TO MGM SCHOOL")
print("1. STUDENT SEARCH")
print("2. FEE PAYEMNT DETAILS")
print("3. GO TO HOME PAGE")
print("*********************************")
print("\n\n")
op=int(input("Enter your option"))
if op==1:
c_adno=input("Enter the admission number of the student w want to search:")
con=[Link](host="localhost",user="root",password="mgm",database="ip1
2")
mycursor=[Link]()
query="select adno,sname,classdiv,gender,dob,phoneno from student where
adno='{}'".format(c_adno)
[Link](query)
myrecord=[Link]()
for x in myrecord:
print(x)
[Link]()
[Link]()
elif op==2:
c_adno=input("Enter the admission number of the student w want to search:")
con=[Link](host="localhost",user="root",password="mgm",database="ip1
2")
mycursor=[Link]()
query="select adno,sname,classdiv,totalfee,phoneno from student where
adno='{}'".format(c_adno)
[Link](query)
myrecord=[Link]()
print("Adno\t\tName\t\t classdiv\t\ttotalfee\t\tphoneno")
for x in myrecord:
print(x[0],"\t\t",x[1],"\t\t",x[2],"\t\t",x[3],"\t\t",x[4])
[Link]()
[Link]()
#Definition for Issuing TC
def tcissue():
print("\n\n\n")
print("WELCOME TO MGM SCHOOL")
c_adno=input("Enter the admission number of the student w want to take TC :")
con=[Link](host="localhost",user="root",password="mgm",database="ip1
2")
mycursor=[Link]()
query="delete from student where adno='{}'".format(c_adno)
[Link](query)
[Link]()
[Link]()
print("SUCCESSFULLY REMOVED STUDENT DETAILS FROM DATABSE!!!!!")
#Definition for FeeSection Module.
def feesection():
print("\n\n\n\n")
print("WELCOME TO MGM SCHOOL FEE SECTION")
print("**********************************************")
print("1. FEE CHECK")
print("2. FEE PAYMENT")
print("3. FEE DUE SEARCh")
print("4. GO TO HOME")
op=int(input("Enter your option:"))
if op==1:
print("\n\n\n")
print("WELCOME TO MGM SCHOOL FEE SECTION")
c_adno=input("Enter the admission number of the student you want check fee balance")
con=[Link](host="localhost",user="root",password="mgm",database="ip1
2")
mycursor=[Link]()
query="select totalfee from student where adno='{}'".format(c_adno)
[Link](query)
myrecord=[Link]()
for x in myrecord:
print(x[0],"is the balance amount you need to pay")
[Link]()
print("SUCCESSFULLY SEARCHED FEE DUE!!!!!")
elif op==2:
print("\n\n\n")
print("WELCOME TO MGM SCHOOL FEE SECTION")
c_adno=input("Enter the admission number of the student for fee payment:")
c_amount=int(input("Enter amount paying:"))
con=[Link](host="localhost",user="root",password="mgm",database="ip1
2")
mycursor=[Link]()
query="update student set totalfee=totalfee-{} where
adno='{}'".format(c_amount,c_adno)
[Link](query)
[Link]()
[Link]()
print("FEE PAYEMNET DONE SUCCESSFULLY !!!!!")
elif op==3:
print("\n\n\n")
print("WELCOME TO MGM SCHOOL FEE SECTION")
con=[Link](host="localhost",user="root",password="mgm",database="ip1
2")
mycursor=[Link]()
query="select adno,sname,classdiv,totalfee,pname,phoneno from student order by
totalfee desc"
[Link](query)
myrecord=[Link]()
print("\n\n\n")
print("****************************************************************")
print("ADNO\t\tNAME\t\tCLASSDIV\t\tTOTALFEE\t\tPNAME\t\tPNO")
for x in myrecord:
print("\n",x[0],"\t\t",x[1],"\t\t",x[2],"\t\t",x[3],"\t\t",x[4],"\t\t",x[5])
[Link]()
print("SUCCESSFULLY PRINTED FEE DUE LIST!!!!!")
elif op==4:
Homepage()
else:
print("invalid option")
#Definition for report() function.
def report():
print("\n\n\n\n")
print("WELCOME TO MGM SCHOOL - REPORT SECTION")
print("***************************************")
print(" 1. REPORT BASED ON STUDENT STRENGTH")
print("2. REPORT BASED ON PENDING AMOUNT")
print("3. REPORT BASED ON FEE DUE SECTION WISE")
print("4. GO HOME")
op=int(input("Enter your option:"))
if op==1:
print("\n\n\n\n")
print("*********************************")
print("WELCOME TO MGM SCHOOL, REPORT SECTION")
print("***************************************")
con=[Link](host="localhost",user="root",password="mgm",database="ip1
2")
mycursor1=[Link]()
query1="select count(*) from student where classdiv like '1%' or classdiv like '2%' or
classdiv like '3%' or classdiv like '4%'"
[Link](query1)
myrecord1=[Link]()
mycursor2=[Link]()
query2="select count(*) from student where classdiv like '5%' or classdiv like '6%' or
classdiv like '7%' "
[Link](query2)
myrecord2=[Link]()
mycursor3=[Link]()
query3="select count(*) from student where classdiv like '8%' or classdiv like '9%' or
classdiv like '10%' "
[Link](query3)
myrecord3=[Link]()
mycursor4=[Link]()
query4="select count(*) from student where classdiv like '11%' or classdiv like '12%' "
[Link](query4)
myrecord4=[Link]()
xvalues=[Link](1,5)
y=[]
for x in myrecord1:
[Link](x[0])
for x in myrecord2:
[Link](x[0])
for x in myrecord3:
[Link](x[0])
for x in myrecord4:
[Link](x[0])
[Link](xvalues,y,width=0.5,color=["red","green","blue","yellow"])
[Link]("BAR GRAPH BASED ON STRENGTH")
[Link]("SECTION WISE")
[Link]("NUMBER WISE")
xnames=["LP","UP","HIGH SCHHOL","HIGHER SECONDARY"]
[Link](xvalues,xnames,rotation=30)
elif op==2:
print("\n\n\n\n")
print("*********************************")
print("WELCOME TO MGM SCHOOL, REPORT SECTION")
print("***************************************")
con=[Link](host="localhost",user="root",password="mgm",database="ip1
2")
mycursor1=[Link]()
query1="select count(*) from student where totalfee=0"
[Link](query1)
myrecord1=[Link]()
mycursor2=[Link]()
query2="select count(*) from student where totalfee<=5000"
[Link](query2)
myrecord2=[Link]()
mycursor3=[Link]()
query3="select count(*) from student where totalfee> 5000 and totalfee<=10000"
[Link](query3)
myrecord3=[Link]()
mycursor4=[Link]()
query4="select count(*) from student where totalfee>10000"
[Link](query4)
myrecord4=[Link]()
xvalues=[Link](1,5)
y=[]
for x in myrecord1:
[Link](x[0])
for x in myrecord2:
[Link](x[0])
for x in myrecord3:
[Link](x[0])
for x in myrecord4:
[Link](x[0])
[Link](xvalues,y,width=0.5,color=["red","green","blue","yellow"])
[Link]("BAR GRAPH BASED ON FEE DUE")
[Link]("AMOUNT RANGE")
[Link]("NUMBER WISE")
xnames=["No Fee","<5000",">5000 and <10000",">10000"]
[Link](xvalues,xnames,rotation=30)
elif op==3:
print("\n\n\n\n")
print("*********************************")
print("WELCOME TO MGM SCHOOL, REPORT SECTION")
print("***************************************")
con=[Link](host="localhost",user="root",password="mgm",database="ip1
2")
mycursor1=[Link]()
query1="select sum(totalfee) from student where classdiv like '1%' or classdiv like '2%'
or classdiv like '3%' or classdiv like '4%'"
[Link](query1)
myrecord1=[Link]()
mycursor2=[Link]()
query2="select sum(totalfee) from student where classdiv like '5%' or classdiv like '6%'
or classdiv like '7%' "
[Link](query2)
myrecord2=[Link]()
mycursor3=[Link]()
query3="select sum(totalfee) from student where classdiv like '8%' or classdiv like '9%'
or classdiv like '10%' "
[Link](query3)
myrecord3=[Link]()
mycursor4=[Link]()
query4="select sum(totalfee) from student where classdiv like '11%' or classdiv like
'12%' "
[Link](query4)
myrecord4=[Link]()
xvalues=[Link](1,5)
y=[]
for x in myrecord1:
[Link](x[0])
for x in myrecord2:
[Link](x[0])
for x in myrecord3:
[Link](x[0])
for x in myrecord4:
[Link](x[0])
xnames=["LP","UP","HIGH SCHHOL","HIGHER SECONDARY"]
[Link](y,colors=["red","green","blue","yellow"],labels=xnames)
[Link]("PIE GRAPH BASED ON FEE DUE SECTION WISE")
elif op==4:
Homepage()
else:
print("Invalid option")
##CALLING LOGIN SECTION - STARTNG OF THE PROGRAM
login()
OUTPUT
Login Section
New Admission
Student Search:
Fee search
Issue of TC
Fee check
Fee Payment
Fee Due List
Report Based On Strength:
Report Based on Fee Payment
Report Based on Fee Due Section wise.
CONCLUSION
This project was completed on time and is found working effectively under all
circumstances that may arise in real environment. The program objective specifies on
the requirement is believed to be met. Using the facilities and functionalities of python
and mysql , the program has been developed in neat manner.
This program is simple and user friendly. The speed and accuracy are maintained in
proper way. Testing of the program has given good result.
The program is done with an insight into necessary modifications that is required in the
future.
BIBLIOGRAPHY
1. Text Book for class 12 Informatics Practices – Preethi Arora
2. Text Book for class 11 Informatics Practices – Preethi Arora
3. [Link]
4. [Link]
5. [Link]
6. [Link]