Professional Documents
Culture Documents
PROJECT REPORT ON
ROLL NO :
NAME : JAGADEESHWARAN. S
CLASS : XII
PGT(CS)
#78,NAGADEVANAHALLI,BENGALURU -56
VSS INTERNATIONAL PUBLIC SCHOOL
NAGADEVANAHALLI
CERTIFICATE
(083) laid down in the regulations of CBSE for the purpose of Practical Examination
(Mrs ASHA )
PGT Comp Sci
Master IC
Name: _______________________
Examiner Number:_______________
TABLE OF CONTENTS [ T O C ]
01 ACKNOWLEDGEMENT 04
02 INTRODUCTION 05
04 PROPOSED SYSTEM 06
07 FLOW CHART 15
08 SOURCE CODE 16
09 OUTPUT 19
10 INSTALLATION FILE
10 TESTING 25
12 BIBLIOGRAPHY 29
ACKNOWLEDGEMENT
INTRODUCTION
This project is all about College Database management system. It helps to have
arranged data of each and every students and add or modify the data . The project is
divided into 2 sections to make the programme easy to understand i.e, logging in of
user and the function the user can get access to.
It receives user name and password to log in. It keeps the record student
details, subject chosen, performance in test. It adds a new student, his/her choose of
subjects, co-curricular etc, updates student details, student marks in the previous test
and finally report of the whole college for easy analysis of the student’s data
The objective of this project is to let the students apply the programming
knowledge into a real- world situation/problem and exposed the students how
programming skills helps in developing a error free digital platform for storing our data
Today one cannot afford to rely on the fallible human beings of be really wants
to stand against today’s merciless competition where not to wise saying “to err is
human” no longer valid, it’s outdated to rationalize your mistake. So, to keep pace
with time, to bring about the best result without malfunctioning and greater efficiency
so to replace the unending heaps of flies with a much sophisticated hard disk of the
computer.
One has to use the data management software. Software has been an ascent
markets, which have helped in making the organizations work easier and efficiently.
Data management initially had to maintain a lot of ledgers and a lot of paper work has
to be done but now software product on this organization has made their work faster
and easier. Now only this software has to be loaded on the computer and work can be
done.
This prevents a lot of time and money. The work becomes fully automated and
any information regarding the organization can be obtained by clicking the button.
Moreover, now it’s an age of computers of and automating such an organization gives
INITIATION PHASE
The System Concept Development Phase begins after a business need or opportunity
is validated by the Agency/Organization Program Leadership and the
Agency/Organization CIO.
PLANNING PHASE
This phase formally defines the detailed functional user requirements using
high-level requirements identified in the Initiation, System Concept, and Planning
phases. It also delineates the requirements in terms of data, system performance,
security, and maintainability requirements for the system. The requirements are
defined in this phase to alevel of detail sufficient for systems design to proceed. They
need to be measurable, testable, and relate to the business need or opportunity
identified in the Initiation Phase. The requirements that will be used to determine
acceptance of the system are captured in the Test and Evaluation MasterPlan.
Further define and refine the functional and data requirements and document
them in the Requirements Document,
Complete business process reengineering of the functions to be supported
(i.e., verify what information drives the business process, what information is
generated, who generates it, where does the information go, and who
processes it),
Develop detailed data and process models (system inputs, outputs, and the
process.
Develop the test and evaluation requirements that will be used to determine
acceptable system performance.
DESIGN PHASE
DEVELOPMENT PHASE
The development phase involves converting design specifications into
executable programs. Effective development standards include requirements that
programmers and other project participants discuss design specifications before
programming begins. The procedures help ensure programmers clearly
understand program designs and functional requirements. Programmers use
various techniques to develop computer programs. The large transaction oriented
programs associated with financial institutions have traditionally been developed
using procedural programming techniques. Procedural programming involves the
line-by-line scripting of logical instructions that are combined to form a
program.Effective completion of the previous stages is a key factor in the success
of the Development phase. The Development phase consists of:
Testing as a deployed system with end users working together with contract
personnel
Operational testing by the end user alone performing all functions.
Requirements are traced throughout testing,a final Independent Verification &
Validation evaluation is performed and all documentation is reviewedand
accepted prior to acceptance of the system.
IMPLEMENTATION PHASE
This phase is initiated after the system has been tested and accepted by the
user. In this phase, the system is installed to support the intended business functions.
System performance is compared to performance objectives established during the
planning phase. Implementation includes user notification, user training, installation of
hardware, installation of software onto production computers, and integration of the
system into daily work processes. This phase continues until the system is operating
in production in accordance with the defined userrequirements.
conn=sql.connect(host='Localhost',user='root',passwd='Vssips@2022',database='vss_c
ollege')
if conn.is_connected():
print('SUCCESSFULLY CONNECTED!!')
def Add_student():
c1=conn.cursor()
print()
while Admission_No.isdigit()==False:
print()
continue
print()
while First_name.isalpha()==False:
print()
continue
print()
while Last_name.isalpha()==False:
print()
print()
print()
if Grade=="11":
elif Grade=="12":
else:
print()
while Grade.isdigit()==False:
print()
continue
continue
print()
print()
while Phone_No.isdigit()==False:
print()
while (len(str(Phone_No))!=10):
print()
continue
print()
def percent():
global SSLC_Percentage
while SSLC_Percentage.isdigit()==False:
print()
continue
d=int(SSLC_Percentage)
if d<0 or d>100:
percent()
else:
print()
percent()
print()
print()
if g=="1":
Stream="Science"
print("Stream is Science")
else:
while g!="1":
if g=="1":
Stream="Science"
print("Stream is Science")
continue
print()
print("1. MALE")
print("2. FEMALE")
print("3. OTHERS")
while g.isdigit()==False:
print()
continue
if g=="1":
Gender="Male"
elif g=="2":
Gender="Female"
elif g=="3":
Gender="Others"
else:
if g=="1":
Gender="Male"
elif g=="2":
Gender="Female"
elif g=="3":
Gender="Others"
continue
print()
try:
except ValueError:
sql="insert into
student_details(Admission_No,First_name,Last_name,Grade,Address,Phone_No,SSLC_Perc
entage,Stream,Gender,Date_of_birth)values(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)"
pas=(Admission_No,First_name,Last_name,Grade,Address,Phone_No,SSLC_Percentage,Stre
am,Gender,Date_of_birth)
c1.execute(sql,pas)
conn.commit()
print()
aa=input("DO YOU WANT TO ADD ANOTHER STUDENT? PRESS 1 TO ADD AND ANYTHING ELSE
TO GO BACK!: \n")
if aa=="1":
Add_student()
else:
menu()
def opt_competative():
c1=conn.cursor()
print()
while course_no.isdigit()==False:
print()
continue
print()
while Admission_No.isdigit()==False:
print()
continue
print()
sto=(Admission_No,)
c1.execute(sql3,sto)
r=c1.fetchall()
if r==[]:
e=c1.fetchall()
if e==[]:
axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE: ")
if axy=="1":
access()
else:
opt_competative()
else:
pas=(Admission_No,)
j=c1.execute(sql2,pas)
h=c1.fetchall()
for j in h :
yt=j
for bt in yt:
xx=bt
print(xx)
J = xx
pas=(Admission_No,)
j=c1.execute(sql3,pas)
h=c1.fetchall()
for j in h :
yt=j
for bt in yt:
xx=bt
print(xx)
I = xx
print()
print()
print("1. PCMB")
print("2. PCMC")
while g.isdigit()==False:
print()
continue
if g=="1":
Course_name="PCMB"
print(Course_name, "OPTED")
elif g=="2":
Course_name="PCMB"
print(Course_name, "OPTED")
else:
if g=="1":
Course_name="PCMB"
print(Course_name, "OPTED")
elif g=="2":
Course_name="PCMB"
print(Course_name, "OPTED")
continue
print()
print()
print("1. CET")
print("2. NEET")
print("3. JEE")
while d.isdigit()==False:
print()
continue
if d=='1':
Competative="CET"
print(Competative, "opted")
elif d=='2':
Competative="NEET"
print(Competative, "opted")
elif d=='3':
Competative="JEE"
print(Competative, "opted")
elif d=='4':
print(Competative, "opted")
elif d=='5':
print(Competative, "opted")
elif d=='6':
elif d=='7':
print(Competative, "opted")
else:
while d!="1" and d!="2" and d!="3" and d!="4" and d!="5" and d!="6"
and d!="7":
if d=='1':
Competative="CET"
print(Competative, "opted")
elif d=='2':
Competative="NEET"
print(Competative, "opted")
elif d=='3':
Competative="JEE"
print(Competative, "opted")
elif d=='4':
print(Competative, "opted")
elif d=='5':
print(Competative, "opted")
elif d=='6':
print(Competative, "opted")
elif d=='7':
print(Competative, "opted")
continue
print()
print()
if Grade=="11":
elif Grade=="12":
else:
print()
while Grade.isdigit()==False:
print()
continue
continue
print()
sql="insert into
vss_course(course_no,Admission_No,First_name,Last_name,Course_name,Competative,Gra
de)values(%s,%s,%s,%s,%s,%s,%s)"
pas=(course_no,Admission_No,First_name,Last_name,Course_name,Competative,Grade)
c1.execute(sql,pas)
conn.commit()
print()
print("THANK YOU")
if aa=="1":
opt_competative()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
continue
else:
print("STUDENT ALREADY HAS OPTED COMPETATIVE, DO YOU WANT TO ADD ANY OTHER
STUDENT TO COMPETATIVE?")
print()
if lol=="1":
print("THANK YOU")
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
continue
else:
print()
opt_competative()
def opt_co_cirrcular():
c1=conn.cursor()
print()
print()
while Admission_No.isdigit()==False:
print()
continue
print()
sto=(Admission_No,)
sql3="select * from co_curricular where Admission_No=%s"
c1.execute(sql3,sto)
r=c1.fetchall()
if r==[]:
c1.execute(sql_sql,sto)
e=c1.fetchall()
if e==[]:
if axy=="1":
access()
else:
opt_co_cirrcular()
else:
pas=(Admission_No,)
j=c1.execute(sql2,pas)
h=c1.fetchall()
for j in h :
yt=j
for bt in yt:
xx=bt
print(xx)
J = xx
print()
pas=(Admission_No,)
j=c1.execute(sql3,pas)
h=c1.fetchall()
for j in h :
yt=j
for bt in yt:
xx=bt
print(xx)
I = xx
print()
print()
print("1. PCMB")
print("2. PCMC")
if Course_name=="PCMC" or Course_name=="PCMB":
print(Course_name, "taken")
else:
continue
print()
print()
print("1. CRICKET")
print("2. FOOTBALL")
print("3. DANCE")
while d.isdigit()==False:
print()
continue
if d=='1':
Co_Curricular="CRICKET"
print(Co_Curricular, "opted")
elif d=='2':
Co_Curricular="FOOTBALL"
print(Co_Curricular, "opted")
elif d=='3':
Co_Curricular="DANCE"
print(Co_Curricular, "opted")
print()
sql="insert into
co_curricular(Co_no,Admission_No,First_name,Last_name,Course_name,Co_Curricular)va
lues(%s,%s,%s,%s,%s,%s)"
pas=(Co_no,Admission_No,J,I,Course_name,Co_Curricular)
c1.execute(sql,pas)
conn.commit()
print()
print("THANK YOU")
if aa=="1":
opt_co_cirrcular()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
continue
else:
print()
if lol=="1":
print("THANK YOU")
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
continue
else:
print()
opt_co_cirrcular()
def opt_transportation():
c1=conn.cursor()
print()
print()
while Admission_No.isdigit()==False:
print()
continue
print()
sto=(Admission_No,)
c1.execute(sql3,sto)
r=c1.fetchall()
if r==[]:
c1.execute(sql_sql,sto)
e=c1.fetchall()
if e==[]:
if axy=="1":
access()
else:
opt_transportation()
else:
pas=(Admission_No,)
j=c1.execute(sql2,pas)
h=c1.fetchall()
for j in h :
yt=j
for bt in yt:
xx=bt
print(xx)
J = xx
print()
pas=(Admission_No,)
j=c1.execute(sql3,pas)
h=c1.fetchall()
for j in h :
yt=j
for bt in yt:
xx=bt
print(xx)
I = xx
print()
if Distance<1:
q=1000
elif Distance>=5 and Distance<8:
q=2700
q=4500
q=6000
else:
print()
sql="insert into
transportation_fees(Bus_roll,Admission_No,First_name,Last_name,Distance,Fees)value
s(%s,%s,%s,%s,%s,%s)"
pas=(Bus_roll,Admission_No,J,I,Distance,q)
c1.execute(sql,pas)
conn.commit()
print()
print("THANK YOU")
if aa=="1":
opt_transportation()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
continue
else:
print()
if lol=="1":
print("THANK YOU")
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
continue
else:
print()
opt_transportation()
def upd_details():
def address():
c1=conn.cursor()
print()
while Admission_No.isdigit()==False:
print()
continue
print()
sto=(Admission_No,)
c1.execute(sql_sql,sto)
e=c1.fetchall()
if e==[]:
if axy=="1":
upd_details()
else:
address()
else:
pas=(z,Admission_No)
c1.execute(sql,pas)
conn.commit()
def ph_no():
c1=conn.cursor()
print()
while Admission_No.isdigit()==False:
print()
continue
print()
sto=(Admission_No,)
c1.execute(sql_sql,sto)
e=c1.fetchall()
if e==[]:
print("ADMISSION NUMBER NOT FOUND")
if axy=="1":
upd_details()
else:
ph_no()
else:
while Phone_no.isdigit()==False:
print()
continue
while (len(str(Phone_no))!=10):
continue
pas=(Phone_no,Admission_No)
c1.execute(sql,pas)
conn.commit()
def student_name():
c1=conn.cursor()
print()
while Admission_No.isdigit()==False:
continue
print()
sto=(Admission_No,)
c1.execute(sql_sql,sto)
e=c1.fetchall()
if e==[]:
axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE: \n")
if axy=="1":
upd_details()
else:
student_name()
else:
print()
while First_name.isalpha()==False:
continue
print()
while Last_name.isalpha()==False:
continue
pas=(First_name,Last_name,Admission_No)
sql="UPDATE student_details SET First_name=%s,Last_name=%s WHERE
Admission_No = %s"
cl.execute(sql,pas)
conn.commit()
def SSLC_percentage():
print()
c1=conn.cursor()
while Admission_No.isdigit()==False:
print()
continue
print()
sto=(Admission_No,)
c1.execute(sql_sql,sto)
e=c1.fetchall()
if e==[]:
if axy=="1":
upd_details()
else:
SSLC_percentage()
else:
z=int(input("ENTER NEW SSLC PERCENTAGE: \n"))
pas=(z,Admission_No)
cl.execute(sql,pas)
conn.commit()
def DOB():
c1=conn.cursor()
print()
while Admission_No.isdigit()==False:
print()
continue
sto=(Admission_No,)
c1.execute(sql_sql,sto)
e=c1.fetchall()
if e==[]:
if axy=="1":
upd_details()
else:
DOB()
else:
try:
except ValueError:
pas=(z,Admission_No)
c1.execute(sql,pas)
conn.commit()
def upd_distance_for_transport():
c1=conn.cursor()
print()
while Admission_No.isdigit()==False:
print()
continue
print()
sto=(Admission_No,)
c1.execute(sql_sql,sto)
e=c1.fetchall()
if e==[]:
if axy=="1":
upd_details()
else:
upd_distance_for_transport()
else:
while z.isdigit()==False:
print()
continue
pas=(z,Admission_No)
if int(z)<1:
c1.execute(sql,pas)
conn.commit()
c1.execute(sql,pas)
conn.commit()
c1.execute(sql,pas)
conn.commit()
c1.execute(sql,pas)
conn.commit()
else:
while opt.isdigit()==False:
print()
continue
if opt == '1':
address()
ph_no()
student_name()
elif opt == '4':
SSLC_percentage()
DOB()
upd_distance_for_transport()
print()
print("THANK YOU")
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
continue
else:
print("Invalid option")
if x=="1":
upd_details()
else:
access()
upd_details()
def change_competative():
c1=conn.cursor()
print()
while Admission_No.isdigit()==False:
print()
continue
print()
sto=(Admission_No,)
c1.execute(sql_sql,sto)
e=c1.fetchall()
if e==[]:
axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE: \n")
if axy=="1":
access()
else:
change_competative()
else:
pas=(Admission_No,)
print("1. CET")
print("2. NEET")
print("3. JEE")
while opt.isdigit()==False:
print()
continue
if opt == '1':
c1.execute(sql,pas)
conn.commit()
c1.execute(sql,pas)
conn.commit()
c1.execute(sql,pas)
conn.commit()
c1.execute(sql,pas)
conn.commit()
c1.execute(sql,pas)
conn.commit()
c1.execute(sql,pas)
conn.commit()
c1.execute(sql,pas)
conn.commit()
else:
print("Invalid opition")
if x=="1":
change_competative()
else:
access()
print()
print("THANK YOU")
if aa=="1":
change_competative()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
continue
def leaving_co_curricular():
c1=conn.cursor()
print()
while Admission_No.isdigit()==False:
continue
print()
sto=(Admission_No,)
c1.execute(sql_sql,sto)
e=c1.fetchall()
if e==[]:
if axy=="1":
access()
else:
leaving_co_curricular()
else:
pas=(Admission_No,)
c1.execute(sql,pas)
conn.commit()
print()
print("THANK YOU")
if aa=="1":
leaving_co_curricular()
else:
menu()
elif xyz=="vss_2":
menu1()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
continue
def Remove_student():
c1=conn.cursor()
print()
while Admission_No.isdigit()==False:
print()
continue
print()
pas=(Admission_No,)
c1.execute(sql,pas)
e=c1.fetchall()
if e==[]:
print("ADMISSION NUMBER NOT FOUND")
if axy=="1":
access()
else:
Remove_student()
else:
pas=(Admission_No,)
c1.execute(sql,pas)
c1.execute(sql1,pas)
c1.execute(sql2,pas)
conn.commit()
aa=input("DO YOU WANT TO REMOVE ANY OTHER STUDENT? PRESS 1 TO REMOVE AND
ANY OTHER TO GO BACK?: \n")
if aa=="1":
Remove_student()
else:
menu()
def add_test():
c1=conn.cursor()
conn.commit
print("THANK YOU")
xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING ADD TEST TABLE: \n")
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
elif xyz=="vss_3":
menu2()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
elif xyz=="vss_3":
menu2()
continue
def add_marks():
c1=conn.cursor()
while Admission_No.isdigit()==False:
print()
continue
print()
sto=(Admission_No,)
c1.execute(sql3,sto)
r=c1.fetchall()
if r==[]:
c1.execute(sql_sql,sto)
e=c1.fetchall()
if e==[]:
if axy=="1":
access()
else:
leaving_co_curricular()
else:
pas=(Admission_No,)
j=c1.execute(sql1,pas)
h=c1.fetchall()
for j in h :
yt=j
for bt in yt:
xx=bt
print(xx)
L = xx
pas=(Admission_No,)
j=c1.execute(sql2,pas)
h=c1.fetchall()
for j in h :
yt=j
for bt in yt:
xx=bt
print(xx)
J = xx
pas=(Admission_No,)
j=c1.execute(sql3,pas)
h=c1.fetchall()
for j in h :
yt=j
for bt in yt:
xx=bt
print(xx)
I = xx
if L == "PCMC":
while a.isdigit()==False:
print()
continue
if float(a)<=0 or float(a)>=100:
print("INVALID MARKS")
while b.isdigit()==False:
print()
continue
if float(b)<=0 or float(b)>=100:
print("INVALID MARKS")
continue
while c.isdigit()==False:
print()
continue
if float(c)<=0 or float(c)>=100:
print("INVALID MARKS")
continue
while d.isdigit()==False:
print()
if float(d)<=0 or float(d)>=100:
print("INVALID MARKS")
continue
while f.isdigit()==False:
print()
continue
if float(f)<=0 or float(f)>=100:
print("INVALID MARKS")
continue
pas=(Admission_No,J,I,L,a,b,c,d,f)
while a.isdigit()==False:
print()
continue
if float(a)<=0 or float(a)>=100:
print("INVALID MARKS")
continue
while b.isdigit()==False:
print()
continue
if float(b)<=0 or float(b)>=100:
print("INVALID MARKS")
continue
while c.isdigit()==False:
print()
continue
if float(c)<=0 or float(c)>=100:
print("INVALID MARKS")
continue
e=input("ENTER BIOLOGY MARKS( OUT OF 100 ): \n")
while e.isdigit()==False:
print()
continue
if float(e)<=0 or float(e)>=100:
print("INVALID MARKS")
continue
while f.isdigit()==False:
print()
continue
if float(f)<=0 or float(f)>=100:
print("INVALID MARKS")
continue
pas=(Admission_No,J,I,L,a,b,c,e,f)
else:
print("Invalid Course")
c1.execute(sql,pas)
conn.commit()
print()
print("THANK YOU")
if aa=="1":
add_marks()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
elif xyz=="vss_3":
menu2()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
elif xyz=="vss_3":
menu2()
continue
else:
print("STUDENT ALREADY HAS MARKS, DO YOU WANT TO ADD ANY OTHER STUDENT'S
MARKS?")
print()
if lol=="1":
print("THANK YOU")
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
elif xyz=="vss_3":
menu2()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
elif xyz=="vss_3":
menu2()
continue
else:
print()
add_marks()
def dispmarks():
c1=conn.cursor()
print()
while Admission_No.isdigit()==False:
print()
continue
print()
sto=(Admission_No,)
c1.execute(sql_sql,sto)
e=c1.fetchall()
if e==[]:
if axy=="1":
access()
else:
dispmarks()
else:
pas=(Admission_No,)
c1.execute(sql,pas)
myresult = c1.fetchall()
for i in myresult:
print("Admission_No: ",i[0])
print("First_name : ",i[1])
print("Last_name : ",i[2])
print("Course_name : ",i[3])
print("Phy_Marks : ",i[4])
print("Chem_Marks : ",i[5])
print("Maths_Marks : ",i[6])
print("Bio_Marks : ",i[7])
print("Comp_Marks : ",i[8])
print("Eng_Marks : ",i[9])
print("................")
conn.close()
print()
print("THANK YOU")
if aa=="1":
dispmarks()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
elif xyz=="vss_3":
menu2()
elif xyz=="vss_4":
menu3()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
elif xyz=="vss_3":
menu2()
elif xyz=="vss_4":
menu3()
continue
def dispfees():
while a.isdigit()==False:
print()
continue
print()
if a == '11':
myTable =
PrettyTable(["Grade","Course_name","Competative","Tution_fees","Book_fees"])
myTable.add_row(["11","PCMC","CET","100000","1800"])
myTable.add_row(["11","PCMC","JEE","110000","1800"])
myTable.add_row(["11","PCMB","CET","100000","2000"])
print(myTable)
elif a == '12':
myTable =
PrettyTable(["Grade","Course_name","Competative","Tution_fees","Book_fees"])
myTable.add_row(["12","PCMC","CET","100000","1800"])
myTable.add_row(["12","PCMC","JEE","110000","1800"])
myTable.add_row(["12","PCMB","CET","100000","2000"])
print(myTable)
else:
print("Invalid Option")
if x=="1":
dispfees()
else:
access()
print()
print("THANK YOU")
aa=input("DO YOU WANT TO DISPLAY THE FEES AGAIN? PRESS 1 TO DISPLAY FEES AND
ANY OTHER TO LEAVE!: \n")
if aa=="1":
dispfees()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_4":
menu3()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_4":
menu3()
continue
def add_teachers():
c1=conn.cursor()
print()
print()
while First_name.isalpha()==False:
continue
print()
while Last_name.isalpha()==False:
print("INVALID NAME, PLEASE ENTER CORRECT NAME.")
continue
print()
print("1. Physics")
print("2. Chemistry")
print("3. Maths")
print("5. Biology")
print("6. English")
while g.isdigit()==False:
print()
continue
if g=="1":
Subject="Physics"
print(Subject," OPTED")
elif g=="2":
Subject="Chemistry"
print(Subject," OPTED")
elif g=="3":
Subject="Maths"
print(Subject," OPTED")
elif g=="4":
Subject="Computer Science"
print(Subject," OPTED")
elif g=="5":
Subject="Biology"
print(Subject," OPTED")
elif g=="6":
Subject="English"
print(Subject," OPTED")
else:
while g!="1" and g!="2" and g!="3" and g!="4" and g!="5" and g!="6":
if g=="1":
Subject="Physics"
print(Subject," OPTED")
elif g=="2":
Subject="Chemistry"
print(Subject," OPTED")
elif g=="3":
Subject="Maths"
print(Subject," OPTED")
elif g=="4":
Subject="Computer Science"
print(Subject," OPTED")
elif g=="5":
Subject="Biology"
print(Subject," OPTED")
elif g=="6":
Subject="English"
print(Subject," OPTED")
continue
print()
print()
Age=input("ENTER AGE: \n")
while Age.isdigit()==False:
print()
continue
print()
print("1. MALE")
print("2. FEMALE")
print("3. OTHERS")
while g.isdigit()==False:
print()
continue
if g=="1":
Gender="Male"
elif g=="2":
Gender="Female"
elif g=="3":
Gender="Others"
else:
if g=="1":
Gender="Male"
elif g=="2":
Gender="Female"
elif g=="3":
Gender="Others"
continue
print()
try:
except ValueError:
print()
while Salary.isdigit()==False:
print()
continue
print()
while Experience.isdigit()==False:
print()
Experience=input("ENTER EXPERIENCE( IN YEARS ): \n")
continue
print()
while Phone_no.isdigit()==False:
print()
continue
print()
while (len(str(Phone_no))!=10):
continue
print()
sql="insert into
teacher_details(T_no,First_name,Last_name,Subject,Qualification,
Age,Gender,Date_of_birth,Salary,Experience,Phone_no)values(%s,%s,%s,%s,%s,%s,%s,%s
,%s,%s,%s)"
pas=(T_no,First_name,Last_name,Subject,Qualification,
Age,Gender,Date_of_birth,Salary,Experience,Phone_no)
c1.execute(sql,pas)
conn.commit()
print()
aa=input("DO YOU WANT TO ADD ANY OTHER TEACHER? PRESS 1 TO ADD AND ANY OTHER
TO GO BACK!: \n")
if aa=="1":
add_teachers()
else:
menu()
def remove_teachers():
c1=conn.cursor()
pas=(n,)
c1.execute(sql,pas)
e=c1.fetchall()
if e==[]:
if axy=="1":
access()
else:
Remove_student()
else:
pas=(n,)
c1.execute(sql,pas)
conn.commit()
aa=input("DO YOU WANT TO REMOVE ANY OTHER TEACHER? PRESS 1 TO REMOVE AND
ANY OTHER TO GO BACK!: \n")
if aa=="1":
remove_teachers()
else:
menu()
def report():
print()
print("#"*50)
def No_course():
print("1. PCMB")
print("2. PCMC")
while g.isdigit()==False:
print()
continue
if g == "1":
c1=conn.cursor()
c1.execute(sql1)
result=c1.fetchall()
c1.execute(sql)
myresult = c1.fetchall()
max_length_column = []
element_in_tuple = 1
for i in range(element_in_tuple):
max_length_column.append(max(len(e[i])+2 for e in myresult))
for e in myresult:
for i in range(element_in_tuple):
print(e[i].ljust(max_length_column[i]), end='')
print()
conn.commit()
elif g == "2":
c1=conn.cursor()
c1.execute(sql2)
result=c1.fetchall()
c1.execute(sql)
myresult=c1.fetchall()
max_length_column = []
element_in_tuple = 1
for i in range(element_in_tuple):
for e in myresult:
for i in range(element_in_tuple):
print(e[i].ljust(max_length_column[i]), end='')
print()
conn.commit()
else:
if x=="1":
No_course()
else:
report()
def No_Competative():
print("1. JEE")
print("2. NEET")
print("3. CET")
while g.isdigit()==False:
print()
continue
if g == "1":
c1=conn.cursor()
c1.execute(sql1)
result=c1.fetchall()
c1.execute(sql)
myresult=c1.fetchall()
max_length_column = []
element_in_tuple = 1
for i in range(element_in_tuple):
for e in myresult:
for i in range(element_in_tuple):
print(e[i].ljust(max_length_column[i]), end='')
print()
conn.commit()
elif g=="2":
c1=conn.cursor()
c1.execute(sql1)
result=c1.fetchall()
c1.execute(sql)
myresult=c1.fetchall()
max_length_column = []
element_in_tuple = 1
for i in range(element_in_tuple):
for e in myresult:
for i in range(element_in_tuple):
print(e[i].ljust(max_length_column[i]), end='')
print()
conn.commit()
elif g=="3":
c1=conn.cursor()
c1.execute(sql1)
result=c1.fetchall()
c1.execute(sql)
myresult=c1.fetchall()
max_length_column = []
element_in_tuple = 1
for i in range(element_in_tuple):
for e in myresult:
for i in range(element_in_tuple):
print(e[i].ljust(max_length_column[i]), end='')
print()
conn.commit()
else:
print("INVALID COMPETATIVE")
if x=="1":
No_Competative()
else:
report()
def No_trans():
c1=conn.cursor()
c1.execute(sql1)
result=c1.fetchall()
c1.execute(sql)
myresult=c1.fetchall()
max_length_column = []
element_in_tuple = 1
for i in range(element_in_tuple):
for e in myresult:
for i in range(element_in_tuple):
print(e[i].ljust(max_length_column[i]), end='')
print()
def No_Co_curr():
c1=conn.cursor()
c1.execute(sql1)
result=c1.fetchall()
c1.execute(sql)
myresult=c1.fetchall()
max_length_column = []
element_in_tuple = 1
for i in range(element_in_tuple):
for e in myresult:
for i in range(element_in_tuple):
print(e[i].ljust(max_length_column[i]), end='')
print()
def No_Grade():
while a.isdigit()==False:
print()
a=input("ENTER YOUR GRADE(11 or 12): \n")
continue
if a == '11':
c1=conn.cursor()
c1.execute(sql)
myresult=c1.fetchall()
max_length_column = []
element_in_tuple = 1
for i in range(element_in_tuple):
for e in myresult:
for i in range(element_in_tuple):
print(e[i].ljust(max_length_column[i]), end='')
print()
elif a == '12':
c1=conn.cursor()
c1.execute(sql)
myresult=c1.fetchall()
max_length_column = []
element_in_tuple = 1
for i in range(element_in_tuple):
for e in myresult:
for i in range(element_in_tuple):
print(e[i].ljust(max_length_column[i]), end='')
print()
else:
print("Invalid Grade")
print("DO YOU WISH TO CHECK ALL STUDENTS FROM GRADE 11 OR 12?")
if x=="1":
No_Grade()
else:
report()
def teacher():
print()
def each():
c1=conn.cursor()
print()
print("1. Physics")
print("2. Chemistry")
print("3. Maths")
print("5. Biology")
print("6. English")
print()
while g.isalpha()==False:
print()
pas=(g,)
c1.execute(sql,pas)
myresult=c1.fetchall()
max_length_column = []
element_in_tuple = 2
for i in range(element_in_tuple):
for e in myresult:
for i in range(element_in_tuple):
print(e[i].ljust(max_length_column[i]), end='')
print()
def total():
c1=conn.cursor()
c1.execute(sql)
myresult=c1.fetchall()
max_length_column = []
element_in_tuple = 1
for i in range(element_in_tuple):
for e in myresult:
for i in range(element_in_tuple):
print(e[i].ljust(max_length_column[i]), end='')
print()
def details():
c1=conn.cursor()
a=input("ENTER TEACHER NUMBER: \n")
pas=(a,)
c1.execute(sql,pas)
myresult = c1.fetchall()
for i in myresult:
print("T_no : ",i[0])
print("First_name : ",i[1])
print("Last_name : ",i[2])
print("Subject : ",i[3])
print("Qualification : ",i[4])
print("Age : ",i[5])
print("Gender : ",i[6])
print("Date_of_birth : ",i[7])
print("Salary : ",i[8])
print("Experience : ",i[9])
print("Phone_no : ",i[10])
print("................")
conn.close()
while opt.isdigit()==False:
print()
continue
if opt == '1':
each()
total()
elif opt =='3':
details()
report()
else:
print("Invalid Option")
if x=="1":
teacher()
else:
report()
while opt.isdigit()==False:
print()
continue
if opt == '1':
No_course()
No_Competative()
elif opt=='3':
No_trans()
elif opt=='4':
No_Co_curr()
elif opt=='5':
No_Grade()
elif opt == '6':
teacher()
print("THANK YOU")
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
else:
if xyz=="vss_1":
menu()
elif xyz=="vss_2":
menu1()
continue
else:
print("Invalid Option")
if x=="1":
report()
else:
access()
report()
##########################
def menu():
print()
print()
print("15. REPORT")
print()
print()
while opt.isdigit()==False:
print()
continue
if opt=="1":
Add_student()
elif opt=="2":
opt_competative()
elif opt=="3":
opt_co_cirrcular()
elif opt=="4":
opt_transportation()
elif opt=="5":
upd_details()
elif opt=="6":
change_competative()
elif opt=="7":
leaving_co_curricular()
elif opt=="8":
Remove_student()
elif opt=="9":
add_test()
elif opt=="10":
add_marks()
elif opt=="11":
dispmarks()
elif opt=="12":
dispfees()
add_teachers()
remove_teachers()
elif opt=="15":
report()
elif opt=='16':
access()
else:
print("Invaild Option")
print("DO YOU WISH TO CONTINUE AS PRINCIPAL? PRESS 1 TO CONTINUE AND ANY
OTHER TO GO BACK!")
if x=="1":
menu()
else:
access()
menu()
def menu1():
print()
print()
print("10. REPORT")
print()
print()
while opt.isdigit()==False:
print()
continue
if opt == '1':
opt_competative()
opt_co_cirrcular()
opt_transportation()
upd_details()
change_competative()
leaving_co_curricular()
elif opt=='7':
add_test()
add_marks()
dispmarks()
report()
elif opt=='11':
access()
else:
print("Invaild Option")
if x=="1":
menu1()
else:
access()
menu1()
def menu2():
print()
print()
print()
print()
while opt.isdigit()==False:
print()
continue
if opt == '1':
add_test()
add_marks()
dispmarks()
elif opt=='4':
access()
else:
print("Invalid option")
if x=="1":
menu2()
else:
access()
menu2()
def menu3():
print()
print()
print()
print()
while opt.isdigit()==False:
print()
continue
if opt == '1':
dispmarks()
dispfees()
access()
else:
print("Invalid Option")
if x=="1":
menu3()
else:
access()
menu3()
def access():
print()
print("*"*56)
print("1. PRINCIPAL")
print("2. CO-ORDINATOR")
print("3. TEACHER")
print("4. STUDENT")
print("*"*56)
print()
while opt.isdigit()==False:
print()
continue
if opt == "1":
if a == "vss_1":
menu()
else:
while a != "vss_1":
if a == "vss_1":
menu()
else:
continue
else:
print("THANK YOU")
access()
break
if a == "vss_2":
menu1()
else:
while a != "vss_2":
if a == "vss_2":
menu1()
else:
continue
else:
print("THANK YOU")
access()
break
menu2()
else:
while a != "vss_3":
if a == "vss_3":
menu2()
else:
continue
else:
print("THANK YOU")
access()
break
if a == "vss_4":
menu3()
else:
while a != "vss_4":
if a == "vss_4":
menu3()
else:
continue
else:
print("THANK YOU")
access()
break
else:
access()
access()
OUTPUT
Installation :-
A.) mysql.connector
B.)IMPORT time
TESTING METHODS
Software testing methods are traditionally divided into black box testing and
white box testing. These two approaches are used to describe the point of view that
a test engineer takes when designing test cases.
SPECIFICATION-BASED TESTING
The black box tester has no "bonds" with the code, and a tester's perception is
very simple: a code must have bugs. Using the principle, "Ask and you shall receive,"
black box testers find bugs where programmers don't. But, on the other hand, black
box testing has been said to be "like a walk in a dark labyrinth without a flashlight,"
because the tester doesn't know how the software being tested was actually
constructed.
That's why there are situations when (1) a black box tester writes many test
cases to check something that can be tested by only one test case, and/or (2) some
parts of the back end are not tested at all. Therefore, black box testing has the
advantage of "an unaffiliated opinion," on the one hand, and the disadvantage of "blind
exploring," on the other.
White box testing, by contrast to black box testing, is when the tester has
access to the internal data structures and algorithms (and the code that implement
these)
White box testing methods can also be used to evaluate the completeness of a
test suite that was created with black box testing methods. This allows the software
team to examine parts of a system that are rarely tested and ensures that the most
important function points have been tested.
X. Printer : required
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
.
BIBLIOGRAPHY
***