You are on page 1of 104

VSS INTERNATIONAL PUBLIC SCHOOL

ACADEMIC YEAR : 2022-23

PROJECT REPORT ON

COLLEGE DATABASE MANAGEMENT SYSTEM

ROLL NO :

NAME : JAGADEESHWARAN. S

CLASS : XII

SUBJECT : COMPUTER SCIENCE

SUB CODE : 083

PROJECT GUIDE: Mrs ASHA

PGT(CS)

VSS INTERNATIONAL PUBLIC SCHOOL

#78,NAGADEVANAHALLI,BENGALURU -56
VSS INTERNATIONAL PUBLIC SCHOOL
NAGADEVANAHALLI

CERTIFICATE

This is to certify that Cadet JAGADEESHWARAN. S CBSE Roll

No:_________________ has successfully completed the project Work entitled

COLLEGE DATABASE MANAGEMENT SYSTEM in the subject Computer Science

(083) laid down in the regulations of CBSE for the purpose of Practical Examination

in Class XII to be held in VSSIPS Nagadevanahallin on______________.

(Mrs ASHA )
PGT Comp Sci
Master IC

Signature of External Examiner

Name: _______________________

Examiner Number:_______________
TABLE OF CONTENTS [ T O C ]

SER DESCRIPTION PAGE NO

01 ACKNOWLEDGEMENT 04

02 INTRODUCTION 05

03 OBJECTIVES OF THE PROJECT 05

04 PROPOSED SYSTEM 06

05 SYSTEM DEVELOPMENT LIFE CYCLE (SDLC) 07

06 PHASES OF SYSTEM DEVELOPMENT LIFE CYCLE 08

07 FLOW CHART 15

08 SOURCE CODE 16

09 OUTPUT 19

10 INSTALLATION FILE

10 TESTING 25

11 HARDWARE AND SOFTWARE REQUIREMENTS 27

12 BIBLIOGRAPHY 29
ACKNOWLEDGEMENT

My sincere efforts have made me to accomplish the


task of completing this project. However, it would not
have been possible without the kind support and help
of many individuals.

I would like to express my sincere gratitude to my


Principal Mrs. ISHRATH JABEEN and the school for
providing me with facilities required to do my project.

I am highly indebted to my subject teacher Mrs.


ASHA for her valuable guidance which has promoted
my efforts in all the stages of this project work. My
thanks and appreciation go to my classmates and
laboratory.

Finally, words are not sufficient to express


gratitude to my cherished family members for
supporting me without their encouragement and
support I would have not reached this stage.
COLLEGE DATABASE MANAGEMENT SYSTEM

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

OBJECTIVES OF THE PROJECT

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

for easy accessing .

1. Write programs utilizing modern software tools.

2. Apply object oriented programming principles effectively when developing small

to medium sized projects.

3. Write effective procedural code to solve small to medium sized problems.

4. Students will demonstrate a breadth of knowledge in computer science, as

exemplified in the areas of systems, theory and project development.

5. Students will demonstrate ability to conduct research or applied Computer

Science project, requiring writing and presentation skills which exemplify

scholarly style in computer science.


PROPOSED SYSTEM

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

in atomization various organisations. Many software products working are now in

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

the better look.


SYSTEM DEVELOPMENT LIFE CYCLE (SDLC)

The systems development life cycle is a project management technique that


divides complex projects into smaller, more easily managed segments or phases.
Segmenting projects allows managers to verify the successful completion of project
phases before allocating resources to subsequent phases.
Software development projects typically include initiation, planning, design,
development, testing, implementation, and maintenance phases. However, the
phases may be divided differently depending on the organization involved.
For example, initial project activities might be designated as request,
requirements-definition, and planning phases, or initiation, concept-development, and
planning phases. End users of the system under development should be involved in
reviewing the output of each phase to ensure the system is being built to deliver the
needed functionality.
PHASES OF SYSTEM DEVELOPMENT LIFE CYCLE

INITIATION PHASE

The Initiation Phase begins when a business sponsor identifies a need or an


opportunity.

The purpose of the Initiation Phase is to:

Identify and validate an opportunity to improve business accomplishments of


the organization or a deficiency related to a business need.
Identify significant assumptions and constraints on solutions to that need.
Recommend the exploration of alternative concepts and methods to satisfy the
need including questioning the need for technology, i.e., will a change in the
business process offer a solution?
Assure executive business and executive technical sponsorship. The Sponsor
designates a Project Manager and the business need is documented in a
Concept Proposal. The Concept Proposal includes information about the
business process and the relationship to the Agency/Organization.
Infrastructure and the Strategic Plan. A successful Concept Proposal results in
a Project Management Charter which outlines the authority of the project
manager to begin
the project.

Careful oversight is required to ensure projects support strategic business


objectives and resources are effectively implemented into an organization's enterprise
architecture. The initiation phase begins when an opportunity to add, improve, or
correct a system is identified and formally requested through the presentation of a
business case. The business case should, at a minimum, describe a proposal’s
purpose, identify expected benefits, and explain how the proposed system supports
one of the organization’s business strategies. The business case should also identify
alternative solutions and detail as many informational, functional, and network
requirements as possible.
SYSTEM CONCEPT DEVELOPMENT 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.

The purpose of the System Concept Development Phase is to:

Determine the feasibility and appropriateness of the alternatives.


Identify system interfaces.
Identify basic functional and data requirements to satisfy the business need.
Establish system boundaries; identify goals, objectives, critical success factors,
and performance measures.
Evaluate costs and benefits of alternative approaches to satisfy the basic
functional requirements
Assess project risks
Identify and initiate risk mitigation actions, and Develop high-level technical
architecture, process models, data models, and a concept of operations. This
phase explores potential technical solutions within the context of the business
need.
It may include several trade-off decisions such as the decision to use COTS
software products as opposed to developing custom software or reusing
software components, or the decision to use an incremental delivery versus a
complete, onetime deployment.
Construction of executable prototypes is encouraged to evaluate technology to
support the business process. The System Boundary Document serves as an
important reference document to support the Information Technology Project
Request (ITPR) process.
The ITPR must be approved by the State CIO before the project can move
forward.
PICTORIAL REPRESENTATION OF SDLC:

PLANNING PHASE

The planning phase is the most critical step in completing development,


acquisition, and maintenance projects. Careful planning, particularly in the early
stages of a project, is necessary to coordinate activities and manage project risks
effectively. The depth and formality of project plans should be commensurate with the
characteristics and risks of a given project. Project plans refine the information
gathered during the initiation phase by further identifying the specific activities and
resources required to complete a project.
A critical part of a project manager’ sjob is to coordinate discussions between
user, audit, security, design, development, and network personnel to identify and
document as many functional, security, and network requirements as possible. During
this phase, a plan is developed that documents the approach to be used and includes
a discussion of methods, tools, tasks, resources, project schedules, and user input.
Personnel assignments, costs, project schedule, and target dates are established.
A Project Management Plan is created with components related to acquisition
planning, configuration management planning, quality assurance planning, concept of
operations, system security, verification and validation, and systems engineering
management planning.

REQUIREMENTS ANALYSIS 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.

The purposes of this phase are to:

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

The design phase involves converting the informational, functional, and


network requirements identified during the initiation and planning phases into unified
design specifications that developers use to scriptprograms during the development
phase. Program designs are constructed in various ways. Using a top-down approach,
designers first identify and link major program components and interfaces, then
expand design layouts as they identify and link smaller subsystems and connections.
Using a bottom-up approach, designers first identify and link minor program
components and interfaces, then expand design layouts as they identify and link larger
systems and connections. Contemporary design techniques often use prototyping
tools that build mock-up designs of items such as application screens, database
layouts, and system architectures. End users, designers, developers, database
managers, and network administrators should review and refine the prototyped
designs in an iterative process until they agree on an acceptable design. Audit,
security, and quality assurance personnel should be involved in the review and
approval process. During this phase, the system is designed to satisfy the functional
requirements identified in the previous phase. Since problems in the design phase
could be very expensive to solve in the later stage of the software development, a
variety of elements are considered in the design to mitigate risk. These include:

Identifying potential risks and defining mitigating design features.


Performing a security risk assessment.
Developing a conversion plan to migrate current data to the new system.
Determining the operating environment.
Defining major subsystems and their inputs and outputs.
Allocating processes to resources.
Preparing detailed logic specifications for each software module. The result is
a draft System Design Document which captures the preliminary design for the
system.
Everything requiring user input or approval is documented and reviewed by the
user. Once these documents have been approved by the Agency CIO and
Business Sponsor, the final System Design Document is created to serve as
the Critical/Detailed Design for the system.
This document receives a rigorous review byAgency technical and functional
representatives to ensure that it satisfies the business requirements.
Concurrent with the development of the system design, the Agency Project
Manager begins development of the Implementation Plan, Operations and
Maintenance Manual, and the Training Plan.

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:

Translating the detailed requirements and design into system components.


Testing individual elements (units) for usability.
Preparing for integration and testing of the IT system.

INTEGRATION AND TEST PHASE

Subsystem integration, system, security, and user acceptance testing is


conducted during the integration and test phase. The user, with those
responsible for quality assurance, validates that the functional requirements, as
defined in the functional requirements document, are satisfied by the developed
or modified system. OIT Security staff assess the system security and issue a
security certification and accreditation prior to installation/implementation.

Multiple levels of testing are performed, including:

Testing at the development facility by the contractor and possibly supported


by end users

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.

OPERATIONS AND MAINTENANCE PHASE

The system operation is ongoing. The system is monitored for continued


performance in accordance with user requirements and needed system modifications
are incorporated. Operations continue as long as the system can be effectively
adapted to respond to the organization’s needs. When modifications or changes are
identified, the system may reenter the planning phase.

The purpose of this phase is to:

Operate, maintain, and enhance the system.


Certify that the system can process sensitive information.
Conduct periodic assessments of the system to ensure the functional
requirements continue to be satisfied.
Determine when the system needs to be modernized, replaced, or retired.
SOURCE CODE

import mysql.connector as sql

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()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION NUMBER:


")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

First_name=input("ENTER STUDENT'S FIRST NAME: \n")

while First_name.isalpha()==False:

print("INVALID NAME, PLEASE ENTER CORRECT NAME.")

print()

First_Name=input("ENTER STUDENT'S FIRST NAME: \n")

continue

print()

Last_name=input("ENTER STUDENT'S LAST NAME: \n")

while Last_name.isalpha()==False:

print("INVALID NAME, PLEASE ENTER CORRECT NAME.")

print()

Last_Name=input("ENTER STUDENT'S LAST NAME: \n")


continue

print()

print()

print("1. GRADE 11")

print("2. GRADE 12")

Grade=input("ENTER 11 FOR GRADE 11 and 12 FOR GRADE 12: \n")

if Grade=="11":

print(Grade ,"GRADE TAKEN")

elif Grade=="12":

print(Grade ,"GRADE TAKEN")

else:

while Grade!="11" and Grade!="12":

print("INVALID GRADE, PLEASE ENTER ONLY 11 OR 12")

print()

Grade=input("ENTER 11 FOR GRADE 11 and 12 FOR GRADE 12: \n")

while Grade.isdigit()==False:

print("INVALID GRADE, PLEASE ENTER CORRECT GRADE.")

print()

Grade=input("ENTER 11 FOR GRADE 11 and 12 FOR GRADE 12")

continue

print(Grade ,"GRADE TAKEN")

continue

print()

Address=input("ENTER ADDRESS: \n")

print()

Phone_No=input("ENTER PHONE NUMBER: \n")

while Phone_No.isdigit()==False:

print("INVALID PHONE NUMBER, PLEASE ENTER 10 DIGITS: ")

print()

Phone_No=input("ENTER PHONE NUMBER: \n")


continue

while (len(str(Phone_No))!=10):

print("INVALID PHONE NUMBER, PLEASE ENTER 10 DIGITS: ")

print()

Phone_No=input("ENTER PHONE NUMBER: \n")

continue

print()

def percent():

global SSLC_Percentage

SSLC_Percentage=input("ENTER SSLC PERCENTAGE: \n")

while SSLC_Percentage.isdigit()==False:

print("INVALID SSLC PERCENTAGE, PLEASE ENTER CORRECT SSLC PERCENTAGE:


")

print()

SSLC_Percentage=input("ENTER SSLC PERCENTAGE: \n")

continue

d=int(SSLC_Percentage)

if d<0 or d>100:

print("INVALID SSLC PERCENTAGE, PLEASE ENTER CORRECT SSLC PERCENTAGE:


")

percent()

else:

print("SSLC PERCENTAGE TAKEN")

print()

percent()

print()

print()

print("1. SCIENCE STREAM")

g=input("ENTER 1 FOR SCIENCE STREAM: \n")

if g=="1":

Stream="Science"
print("Stream is Science")

else:

while g!="1":

print("Invalid Stream, Enter again")

g=input("ENTER STREAM: \n")

if g=="1":

Stream="Science"

print("Stream is Science")

continue

print()

print("1. MALE")

print("2. FEMALE")

print("3. OTHERS")

g=input("ENTER YOUR CHOICE: \n")

while g.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

g=input("ENTER YOUR OPTION: \n")

continue

if g=="1":

Gender="Male"

print("Gender is", Gender)

elif g=="2":

Gender="Female"

print("Gender is", Gender)

elif g=="3":

Gender="Others"

print("Gender is", Gender)

else:

while g!="1" and g!="2" and g!="3":


print("INVALID OPTION, RE-ENTER")

g=input("ENTER YOUR CHOICE: \n")

if g=="1":

Gender="Male"

print("Gender is", Gender)

elif g=="2":

Gender="Female"

print("Gender is", Gender)

elif g=="3":

Gender="Others"

print("Gender is", Others)

continue

print()

from datetime import datetime, date

Date_of_birth = input('DATE (yyyy-mm-dd): \n')

try:

valid_date = datetime.strptime(Date_of_birth, '%Y/%m/%d').date()

if not (date(2005, 12, 31) <= valid_date <= date(2003, 1, 1)):

raise ValueError('Date out of range')

except ValueError:

print('DATE OF BIRTH ADDED!')

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(First_name, Last_name, "IS ADDED SUCCESSFULLY!!")

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()

course_no=input("ENTER COURSE NUMBER: \n")

while course_no.isdigit()==False:

print("INVALID COURSE NUMBER, PLEASE ENTER CORRECT COURSE NUMBER: ")

print()

course_no=input("ENTER COURSE NUMBER: \n")

continue

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION NUMBER:


")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

sto=(Admission_No,)

sql3="select * from vss_course where Admission_No=%s"

c1.execute(sql3,sto)

r=c1.fetchall()

if r==[]:

sql_sql="select * from student_details where Admission_No=%s"


c1.execute(sql_sql,sto)

e=c1.fetchall()

if e==[]:

print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE: ")

if axy=="1":

access()

else:

opt_competative()

else:

sql2="SELECT First_Name FROM student_details WHERE Admission_No = %s"

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

sql3="SELECT Last_Name FROM student_details WHERE Admission_No = %s"

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")

g=input("ENTER YOUR OPTION: \n")

while g.isdigit()==False:

print("INVALID COURSE NUMBER, PLEASE ENTER CORRECT COURSE NUMBER: ")

print()

g=input("ENTER YOUR OPTION: \n")

continue

if g=="1":

Course_name="PCMB"

print(Course_name, "OPTED")

elif g=="2":

Course_name="PCMB"

print(Course_name, "OPTED")

else:

while g!="1" and g!="2":

print("Invalid OPTION, Enter again")

g=input("ENTER YOUR OPTION: \n")

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")

print("4. CET and NEET")

print("5. CET and JEE")

print("6. NEET and JEE")

print("7. CET,NEET and JEE")

d=input("ENTER THE OPTION: \n")

while d.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

d=input("ENTER THE OPTION: \n")

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':

Competative="CET and NEET"

print(Competative, "opted")

elif d=='5':

Competative="CET and JEE"

print(Competative, "opted")

elif d=='6':

Competative="NEET and JEE"


print(Competative, "opted")

elif d=='7':

Competative="CET,NEET and JEE"

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":

print("Invalid OPTION, Enter again")

d=input("ENTER YOUR OPTION: \n")

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':

Competative="CET and NEET"

print(Competative, "opted")

elif d=='5':

Competative="CET and JEE"

print(Competative, "opted")

elif d=='6':

Competative="NEET and JEE"

print(Competative, "opted")

elif d=='7':

Competative="CET,NEET and JEE"

print(Competative, "opted")

continue
print()

print()

print("1. GRADE 11")

print("2. GRADE 12")

Grade=input("ENTER 11 FOR GRADE 11 and 12 FOR GRADE 12")

if Grade=="11":

print(Grade ,"GRADE TAKEN")

elif Grade=="12":

print(Grade ,"GRADE TAKEN")

else:

while Grade!="11" and Grade!="12":

print("INVALID GRADE, PLEASE ENTER ONLY 11 OR 12")

print()

Grade=input("ENTER 11 FOR GRADE 11 and 12 FOR GRADE 12")

while Grade.isdigit()==False:

print("INVALID GRADE, PLEASE ENTER CORRECT GRADE.")

print()

Grade=input("ENTER 11 FOR GRADE 11 and 12 FOR GRADE 12")

continue

print(Grade ,"GRADE TAKEN")

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(First_name,Last_name, "IS ADDED TO COMPETATIVE CLASSES


SUCCESSFULLY!!")

print()
print("THANK YOU")

aa=input("DO YOU WANT TO ADD ANY OTHER STUDENT TO COMPETATIVE? PRESS 1 TO


ADD AND ANY OTHER TO LEAVE!: \n")

if aa=="1":

opt_competative()

else:

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING OPTING


COMPETATIVE: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

else:

while xyz!="vss_1" and xyz!="vss_2":

print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING OPTING


COMPETATIVE: \n")

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()

lol=input("PRESS 1 TO GO BACK AND ANY OTHER TO CONTINUE...: \n")

if lol=="1":

print("THANK YOU")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING OPTING


COMPETATIVE: \n")

if xyz=="vss_1":
menu()

elif xyz=="vss_2":

menu1()

else:

while xyz!="vss_1" and xyz!="vss_2":

print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING OPTING


COMPETATIVE: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

continue

else:

print()

opt_competative()

def opt_co_cirrcular():

c1=conn.cursor()

print()

Co_no =input("ENTER CO-CURRICULAR NUMBER: \n")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION NUMBER:


")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

sto=(Admission_No,)
sql3="select * from co_curricular where Admission_No=%s"

c1.execute(sql3,sto)

r=c1.fetchall()

if r==[]:

sql_sql="select * from student_details where Admission_No=%s"

c1.execute(sql_sql,sto)

e=c1.fetchall()

if e==[]:

print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE")

if axy=="1":

access()

else:

opt_co_cirrcular()

else:

sql2="SELECT First_Name FROM student_details WHERE Admission_No = %s"

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()

sql3="SELECT Last_Name FROM student_details WHERE Admission_No = %s"

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")

Course_name=input("ENTER COURSE NAME(PCMB OR PCMC): \n")

if Course_name=="PCMC" or Course_name=="PCMB":

print(Course_name, "taken")

else:

while Course_name!="PCMC" and Course_name!="PCMB":

print("Invalid course name, Enter again")

Course_name=input("ENTER COURSE NAME: \n")

continue

print()

print()

print("1. CRICKET")

print("2. FOOTBALL")

print("3. DANCE")

d=input("ENTER THE OPTION: \n")

while d.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

d=input("ENTER THE OPTION: \n")

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(J, I, "IS ADDED FOR", Co_Curricular ,"SUCCESSFULLY!!" )

print()

print("THANK YOU")

aa=input("DO YOU WANT TO ADD ANY OTHER STUDENT TO CO-CURRICULAR? PRESS 1


TO ADD AND ANY OTHER TO LEAVE!: \n")

if aa=="1":

opt_co_cirrcular()

else:

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING OPTING CO-


CURRICULAR: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

else:

while xyz!="vss_1" and xyz!="vss_2":


print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING OPTING


CO-CURRICULAR: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

continue

else:

print("STUDENT ALREADY PRESENT IN CO-CURRICULAR, DO YOU WANT TO ADD ANY


OTHER STUDENT TO CO-CURRICULAR?")

print()

lol=input("PRESS 1 TO GO BACK AND ANY OTHER TO CONTINUE...: \n")

if lol=="1":

print("THANK YOU")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING OPTING CO-


CURRICULAR: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

else:

while xyz!="vss_1" and xyz!="vss_2":

print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING OPTING


CO-CURRICULAR: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

continue

else:
print()

opt_co_cirrcular()

def opt_transportation():

c1=conn.cursor()

print()

Bus_roll=input("ENTER BUS ROLL NUMBER: \n")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION NUMBER:


")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

sto=(Admission_No,)

sql3="select * from transportation_fees where Admission_No=%s"

c1.execute(sql3,sto)

r=c1.fetchall()

if r==[]:

sql_sql="select * from student_details where Admission_No=%s"

c1.execute(sql_sql,sto)

e=c1.fetchall()

if e==[]:

print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE")

if axy=="1":

access()

else:
opt_transportation()

else:

sql2="SELECT First_Name FROM student_details WHERE Admission_No = %s"

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()

sql3="SELECT Last_Name FROM student_details WHERE Admission_No = %s"

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()

Distance=int(input("ENTER DISTANCE (IN KILOMETRES) : \n"))

if Distance<1:

print("NO TRANSPORTATION AVAILABLE, SORRY!")

elif Distance>=1 and Distance<5:

print("FEES PER MONTH IS 1000₹")

q=1000
elif Distance>=5 and Distance<8:

print("FEES PER MONTH IS 2700₹")

q=2700

elif Distance>=8 and Distance<12:

print("FEES PER MONTH IS 4500₹")

q=4500

elif Distance>=12 and Distance<=15:

print("FEES PER MONTH IS 6000₹")

q=6000

else:

print("NO TRANSPORTATION AVAILABLE, SORRY!")

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(J,I, "IS ADDED TO TRANSPORTATION SUCCESSFULLY!!")

print()

print("THANK YOU")

aa=input("DO YOU WANT TO ADD ANY OTHER STUDENT TO TRANSPORTATION?


PRESS 1 TO ADD AND ANY OTHER TO LEAVE!: \n")

if aa=="1":

opt_transportation()

else:

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING OPTING


TRANSPORTATION: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()
else:

while xyz!="vss_1" and xyz!="vss_2":

print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING


OPTING TRANSPORTATION: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

continue

else:

print("STUDENT ALREADY OPTED TRANSPORTATION, DO YOU WANT TO ADD ANY OTHER


STUDENT TO TRANSPORTATION?")

print()

lol=input("PRESS 1 TO GO BACK AND ANY OTHER TO CONTINUE...: \n")

if lol=="1":

print("THANK YOU")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING OPTING


TRANSPORTATION: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

else:

while xyz!="vss_1" and xyz!="vss_2":

print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING OPTING


TRANSPORTATION: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()
continue

else:

print()

opt_transportation()

def upd_details():

print("1. UPDATE ADDRESS")

print("2. UPDATE PHONE NUMBER")

print("3. UPDATE STUDENT'S NAME")

print("4. UPDATE SSLC PERCENTAGE")

print("5. UPDATE DATE OF BIRTH")

print("6. UPDATE TRANSPORT DISTANCE")

print("7. RETURN TO MAIN MENU")

def address():

c1=conn.cursor()

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION


NUMBER: ")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

sto=(Admission_No,)

sql_sql="select * from student_details where Admission_No=%s"

c1.execute(sql_sql,sto)

e=c1.fetchall()

if e==[]:

print("ADMISSION NUMBER NOT FOUND")


print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE")

if axy=="1":

upd_details()

else:

address()

else:

z=input("ENTER NEW ADDRESS: \n")

pas=(z,Admission_No)

sql="UPDATE student_details SET Address =%s WHERE Admission_No = %s"

c1.execute(sql,pas)

conn.commit()

print("ADDRESS SUCCESSFULLY UPDATED")

def ph_no():

c1=conn.cursor()

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION


NUMBER: ")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

sto=(Admission_No,)

sql_sql="select * from student_details where Admission_No=%s"

c1.execute(sql_sql,sto)

e=c1.fetchall()

if e==[]:
print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE")

if axy=="1":

upd_details()

else:

ph_no()

else:

Phone_no=input("ENTER NEW PHONE NUMBER: \n")

while Phone_no.isdigit()==False:

print("INVALID PHONE NUMBER, PLEASE ENTER 10 DIGITS: ")

print()

Phone_no=input("ENTER PHONE NUMBER: \n")

continue

while (len(str(Phone_no))!=10):

print("INVALID PHONE NUMBER, PLEASE ENTER 10 DIGITS: ")

Phone_no=input("ENTER PHONE NUMBER: ")

continue

pas=(Phone_no,Admission_No)

sql="UPDATE student_details SET Phone_no =%s WHERE Admission_No = %s"

c1.execute(sql,pas)

conn.commit()

print("PHONE NUMBER SUCCESSFULLY UPDATED")

def student_name():

c1=conn.cursor()

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION


NUMBER")
print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

sto=(Admission_No,)

sql_sql="select * from student_details where Admission_No=%s"

c1.execute(sql_sql,sto)

e=c1.fetchall()

if e==[]:

print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE: \n")

if axy=="1":

upd_details()

else:

student_name()

else:

print()

First_name=input("ENTER STUDENT'S NEW FIRST NAME: \n")

while First_name.isalpha()==False:

print("INVALID NAME, PLEASE ENTER CORRECT NAME.")

First_name=input("ENTER STUDENT'S FIRST NAME: \n")

continue

print()

Last_name=input("ENTER STUDENT'S NEW LAST NAME: \n")

while Last_name.isalpha()==False:

print("INVALID NAME, PLEASE ENTER CORRECT NAME.")

Last_Name=input("ENTER STUDENT'S LAST NAME: \n")

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()

print("STUDENT'S NAME SUCCESSFULLY UPDATED")

def SSLC_percentage():

print()

c1=conn.cursor()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION


NUMBER: ")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

sto=(Admission_No,)

sql_sql="select * from student_details where Admission_No=%s"

c1.execute(sql_sql,sto)

e=c1.fetchall()

if e==[]:

print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE")

if axy=="1":

upd_details()

else:

SSLC_percentage()

else:
z=int(input("ENTER NEW SSLC PERCENTAGE: \n"))

pas=(z,Admission_No)

sql="UPDATE student_details SSLC_Percentage =%s WHERE Admission_No =


%s"

cl.execute(sql,pas)

conn.commit()

print("SSLC PERCENTAGE SUCCESSFULLY UPDATED")

def DOB():

c1=conn.cursor()

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION


NUMBER: ")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

sto=(Admission_No,)

sql_sql="select * from student_details where Admission_No=%s"

c1.execute(sql_sql,sto)

e=c1.fetchall()

if e==[]:

print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE")

if axy=="1":

upd_details()

else:

DOB()
else:

from datetime import datetime, date

z = input('ENTER NEW DATE OF BIRTH(yyyy-mm-dd): \n')

try:

valid_date = datetime.strptime(Date_of_birth, '%Y/%m/%d').date()

if not (date(2005, 12, 31) <= valid_date <= date(2003, 1, 1)):

raise ValueError('Date out of range')

except ValueError:

print('DATE OF BIRTH ADDED!')

pas=(z,Admission_No)

sql="UPDATE student_details SET Date_of_birth =%s WHERE Admission_No


= %s"

c1.execute(sql,pas)

conn.commit()

print("DATE OF BIRTH SUCCESSFULLY UPDATED")

def upd_distance_for_transport():

c1=conn.cursor()

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION


NUMBER: ")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

sto=(Admission_No,)

sql_sql="select * from student_details where Admission_No=%s"

c1.execute(sql_sql,sto)
e=c1.fetchall()

if e==[]:

print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE")

if axy=="1":

upd_details()

else:

upd_distance_for_transport()

else:

z=input("ENTER DISTANCE (IN KILOMETRES) : \n")

while z.isdigit()==False:

print("INVALID DISTANCE, PLEASE ENTER CORRECT DISTANCE: ")

print()

z=input("ENTER DISTANCE (IN KILOMETRES) : \n")

continue

pas=(z,Admission_No)

if int(z)<1:

print("NO TRANSPORTATION AVAILABLE, SORRY!")

elif int(z)>=1 and int(z)<5:

print("FEES PER MONTH IS 1000₹")

sql="UPDATE transportation_fees SET Fees = 1000, Distance=%s


WHERE Admission_No = %s"

c1.execute(sql,pas)

conn.commit()

print("TRANSPORTATION FEES UPDATED SUCCESSFULLY!")

elif int(z)>=5 and int(z)<8:

print("FEES PER MONTH IS 2700₹")

sql="UPDATE transportation_fees SET Fees = 2700, Distance=%s


WHERE Admission_No = %s"

c1.execute(sql,pas)
conn.commit()

print("TRANSPORTATION FEES UPDATED SUCCESSFULLY!")

elif int(z)>=8 and int(z)<12:

print("FEES PER MONTH IS 4500₹")

sql="UPDATE transportation_fees SET Fees = 4500, Distance=%s


WHERE Admission_No = %s"

c1.execute(sql,pas)

conn.commit()

print("TRANSPORTATION FEES UPDATED SUCCESSFULLY!")

elif int(z)>=12 and int(z)<=15:

print("FEES PER MONTH IS 6000₹")

sql="UPDATE transportation_fees SET Fees = 6000, Distance=%s


WHERE Admission_No = %s"

c1.execute(sql,pas)

conn.commit()

print("TRANSPORTATION FEES UPDATED SUCCESSFULLY!")

else:

print("NO TRANSPORTATION AVAILABLE, SORRY!")

opt=input("ENTER YOUR CHOICE : ")

while opt.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

opt=input("ENTER YOUR CHOICE : ")

continue

if opt == '1':

address()

elif opt == '2':

ph_no()

elif opt == '3':

student_name()
elif opt == '4':

SSLC_percentage()

elif opt == '5':

DOB()

elif opt == '6':

upd_distance_for_transport()

elif opt == '7':

print()

print("THANK YOU")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING STUDENT UPDATE


DETAILS: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

else:

while xyz!="vss_1" and xyz!="vss_2":

print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING STUDENT


UPDATE DETAILS: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

continue

else:

print("Invalid option")

print("DO YOU WISH TO CONTINUE IN UPDATE DETAILS OF STUDENTS?")

print("TYPE 1 TO CONTINUE AND ANY OTHER TO GO BACK!!")

x=input("ENTER 1 OR ANY OTHER")

if x=="1":
upd_details()

else:

access()

upd_details()

def change_competative():

c1=conn.cursor()

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION NUMBER:


")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

sto=(Admission_No,)

sql_sql="select * from vss_course where Admission_No=%s"

c1.execute(sql_sql,sto)

e=c1.fetchall()

if e==[]:

print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

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")

print("4. CET and NEET")

print("5. CET and JEE")

print("6. NEET and JEE")

print("7. CET,NEET and JEE")

opt=input("ENTER YOUR CHOICE : ")

while opt.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

opt=input("ENTER YOUR CHOICE : ")

continue

if opt == '1':

sql="UPDATE vss_course SET Competative = 'CET' WHERE Admission_No =


%s"

c1.execute(sql,pas)

conn.commit()

print("COMPETATIVE EXAMS SUCCESSFULLY UPDATED")

elif opt== '2':

sql="UPDATE vss_course SET Competative = 'NEET' WHERE Admission_No


= %s"

c1.execute(sql,pas)

conn.commit()

print("COMPETATIVE EXAMS SUCCESSFULLY UPDATED")

elif opt== '3':

sql="UPDATE vss_course SET Competative = 'JEE' WHERE Admission_No =


%s"

c1.execute(sql,pas)

conn.commit()

print("COMPETATIVE EXAMS SUCCESSFULLY UPDATED")

elif opt== '4':


sql="UPDATE vss_course SET Competative = 'CET and NEET' WHERE
Admission_No = %s"

c1.execute(sql,pas)

conn.commit()

print("COMPETATIVE EXAMS SUCCESSFULLY UPDATED")

elif opt== '5':

sql="UPDATE vss_course SET Competative = 'CET and JEE' WHERE


Admission_No = %s"

c1.execute(sql,pas)

conn.commit()

print("COMPETATIVE EXAMS SUCCESSFULLY UPDATED")

elif opt== '6':

sql="UPDATE vss_course SET Competative = 'NEET and JEE' WHERE


Admission_No = %s"

c1.execute(sql,pas)

conn.commit()

print("COMPETATIVE EXAMS SUCCESSFULLY UPDATED")

elif opt== '7':

sql="UPDATE vss_course SET Competative = 'CET,NEET and JEE' WHERE


Admission_No = %s"

c1.execute(sql,pas)

conn.commit()

print("COMPETATIVE EXAMS SUCCESSFULLY UPDATED")

else:

print("Invalid opition")

print("DO YOU WISH TO CONTINUE IN CHANGING COMPETATIVE OF


STUDENTS?")

print("TYPE 1 TO CONTINUE AND ANY OTHER TO GO BACK!!")

x=input("ENTER 1 OR ANY OTHER")

if x=="1":

change_competative()

else:
access()

print()

print("THANK YOU")

aa=input("DO YOU WANT TO CHANGE ANY OTHER STUDENT'S COMPETATIVE? PRESS 1


TO CHANGE AND ANY OTHER TO LEAVE!: \n")

if aa=="1":

change_competative()

else:

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING CHANGING


COMPETATIVE: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

else:

while xyz!="vss_1" and xyz!="vss_2":

print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING CHANGING


COMPETATIVE: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

continue

def leaving_co_curricular():

c1=conn.cursor()

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION NUMBER:


")
print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

sto=(Admission_No,)

sql_sql="select * from co_curricular where Admission_No=%s"

c1.execute(sql_sql,sto)

e=c1.fetchall()

if e==[]:

print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE")

if axy=="1":

access()

else:

leaving_co_curricular()

else:

pas=(Admission_No,)

sql="DELETE FROM co_curricular WHERE Admission_No = %s"

c1.execute(sql,pas)

conn.commit()

print(Admission_No ,"IS REMOVED FROM CO-CURRICULAR ACTIVITIES!")

print()

print("THANK YOU")

aa=input("DO YOU WANT TO REMOVE ANY STUDENT FROM CO-CURRICULAR? PRESS 1 TO


REMOVE AND ANY OTHER TO LEAVE!: \n")

if aa=="1":

leaving_co_curricular()

else:

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING REMOVING FROM


CO-CURRICULAR: \n")
if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

else:

while xyz!="vss_1" and xyz!="vss_2":

print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING REMOVING


FROM CO-CURRICULAR: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

continue

def Remove_student():

c1=conn.cursor()

print()

Admission_No=input("ENTER STUDENT ADMISSION NUMBER : \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION NUMBER:


")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

sql="select * from student_details where Admission_No=%s"

pas=(Admission_No,)

c1.execute(sql,pas)

e=c1.fetchall()

if e==[]:
print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE")

if axy=="1":

access()

else:

Remove_student()

else:

pas=(Admission_No,)

sql="DELETE FROM student_details WHERE Admission_No = %s;"

sql1="DELETE FROM co_curricular WHERE Admission_No = %s;"

sql2="DELETE FROM transportation_fees WHERE Admission_No = %s;"

c1.execute(sql,pas)

c1.execute(sql1,pas)

c1.execute(sql2,pas)

conn.commit()

print(Admission_No ,"IS REMOVED SUCCESSFULLY1")

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()

c1.execute('Create table if not exists test(Admission_No int,First_name


varchar(30),Last_name varchar(30),Course_name varchar(10),Phy_Marks int,Chem_Marks
int ,Maths_Marks int ,Bio_Marks int,Comp_Marks int,Eng_Marks int)');

conn.commit

print('TABLE test CREATED SUCCESSFULLY')


print()

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:

while xyz!="vss_1" and xyz!="vss_2" and xyz!="vss_3":

print("WRONG PASSWORD TRY AGAIN!")

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()

continue

def add_marks():

c1=conn.cursor()

Admission_No=input("ENTER STUDENT ADMISSION NUMBER : \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION NUMBER:


")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue
print()

sto=(Admission_No,)

sql3="select * from test where Admission_No=%s"

c1.execute(sql3,sto)

r=c1.fetchall()

if r==[]:

sql_sql="select * from student_details where Admission_No=%s"

c1.execute(sql_sql,sto)

e=c1.fetchall()

if e==[]:

print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE")

if axy=="1":

access()

else:

leaving_co_curricular()

else:

sql1="SELECT Course_name FROM vss_course WHERE Admission_No = %s"

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

sql2="SELECT First_Name FROM vss_course WHERE Admission_No = %s"

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

sql3="SELECT Last_Name FROM vss_course WHERE Admission_No = %s"

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":

a=input("ENTER PHYSICS MARKS( OUT OF 100 ): \n")

while a.isdigit()==False:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS: ")

print()

a=input("ENTER PHYSICS MARKS( OUT OF 100 ): \n")

continue

if float(a)<=0 or float(a)>=100:

print("INVALID MARKS")

while float(a)<=0 or float(a)>=100:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS:")

a=input("ENTER PHYSICS MARKS( OUT OF 100 ): \n")


continue

b=input("ENTER CHEMISTRY MARKS( OUT OF 100 ): \n")

while b.isdigit()==False:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS: ")

print()

b=input("ENTER CHEMISTRY MARKS( OUT OF 100 ): \n")

continue

if float(b)<=0 or float(b)>=100:

print("INVALID MARKS")

while float(b)<=0 or float(b)>=100:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS:")

b=input("ENTER CHEMISTRY MARKS( OUT OF 100 ):\n")

continue

c=input("ENTER MATHEMATICS MARKS( OUT OF 100 ): \n")

while c.isdigit()==False:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS: ")

print()

c=input("ENTER MATHEMATICS MARKS( OUT OF 100 ): \n")

continue

if float(c)<=0 or float(c)>=100:

print("INVALID MARKS")

while float(c)<=0 or float(c)>=100:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS:")

c=input("ENTER MATHEMATICS MARKS( OUT OF 100 ): \n")

continue

d=input("ENTER COMPUTER MARKS( OUT OF 100 ): \n")

while d.isdigit()==False:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS: ")

print()

d=input("ENTER COMPUTER MARKS( OUT OF 100 ): \n")


continue

if float(d)<=0 or float(d)>=100:

print("INVALID MARKS")

while float(d)<=0 or float(d)>=100:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS:")

d=input("ENTER COMPUTER MARKS( OUT OF 100 ): \n")

continue

f=input("ENTER ENGLISH MARKS( OUT OF 100 ): \n")

while f.isdigit()==False:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS: ")

print()

f=input("ENTER ENGLISH MARKS( OUT OF 100 ): \n")

continue

if float(f)<=0 or float(f)>=100:

print("INVALID MARKS")

while float(f)<=0 or float(f)>=100:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS")

f=input("ENTER ENGLISH MARKS( OUT OF 100 ): \n")

continue

pas=(Admission_No,J,I,L,a,b,c,d,f)

sql="INSERT INTO test (Admission_No


,First_name,Last_name,Course_name,Phy_Marks,Chem_Marks,
Maths_Marks,Bio_Marks,Comp_Marks,Eng_Marks)VALUES(%s,%s,%s,%s,%s,%s,%s,NULL,%s,%s)
;"

elif L== "PCMB":

a=input("ENTER PHYSICS MARKS( OUT OF 100 ): \n")

while a.isdigit()==False:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS: ")

print()

a=input("ENTER PHYSICS MARKS( OUT OF 100 ): \n")

continue
if float(a)<=0 or float(a)>=100:

print("INVALID MARKS")

while float(a)<=0 or float(a)>=100:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS:")

a=input("ENTER PHYSICS MARKS( OUT OF 100 ): \n")

continue

b=input("ENTER CHEMISTRY MARKS( OUT OF 100 ): \n")

while b.isdigit()==False:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS: ")

print()

b=input("ENTER CHEMISTRY MARKS( OUT OF 100 ): \n")

continue

if float(b)<=0 or float(b)>=100:

print("INVALID MARKS")

while float(b)<=0 or float(b)>=100:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS:")

b=input("ENTER CHEMISTRY MARKS( OUT OF 100 ): \n")

continue

c=input("ENTER MATHEMATICS MARKS( OUT OF 100 ): \n")

while c.isdigit()==False:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS: ")

print()

c=input("ENTER MATHEMATICS MARKS( OUT OF 100 ): \n")

continue

if float(c)<=0 or float(c)>=100:

print("INVALID MARKS")

while float(c)<=0 or float(c)>=100:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS:")

c=input("ENTER MATHEMATICS MARKS( OUT OF 100 ): \n")

continue
e=input("ENTER BIOLOGY MARKS( OUT OF 100 ): \n")

while e.isdigit()==False:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS: ")

print()

e=input("ENTER BIOLOGY MARKS( OUT OF 100 ): \n")

continue

if float(e)<=0 or float(e)>=100:

print("INVALID MARKS")

while float(e)<=0 or float(e)>=100:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS")

e=input("ENTER BIOLOGY MARKS( OUT OF 100 ): \n")

continue

f=input("ENTER ENGLISH MARKS( OUT OF 100 ): \n")

while f.isdigit()==False:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS: ")

print()

f=input("ENTER ENGLISH MARKS( OUT OF 100 ): \n")

continue

if float(f)<=0 or float(f)>=100:

print("INVALID MARKS")

while float(f)<=0 or float(f)>=100:

print("INVALID MARKS, PLEASE ENTER CORRECT MARKS")

f=input("ENTER ENGLISH MARKS( OUT OF 100 ): \n")

continue

pas=(Admission_No,J,I,L,a,b,c,e,f)

sql="INSERT INTO test (Admission_No


,First_name,Last_name,Course_name,Phy_Marks,Chem_Marks,
Maths_Marks,Bio_Marks,Comp_Marks,Eng_Marks)VALUES(%s,%s,%s,%s,%s,%s,%s,%s,NULL,%s)
;"

else:

print("Invalid Course")
c1.execute(sql,pas)

conn.commit()

print("MARKS ARE ADDED FOR", J, I)

print()

print("THANK YOU")

aa=input("DO YOU WANT TO ADD ANY OTHER STUDENT'S MARKS? PRESS 1 TO


ADD AND ANY OTHER TO LEAVE!: \n")

if aa=="1":

add_marks()

else:

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING ADD


MARKS: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

elif xyz=="vss_3":

menu2()

else:

while xyz!="vss_1" and xyz!="vss_2" and xyz!="vss_3":

print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING ADD


MARKS: \n")

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()

lol=input("PRESS 1 TO GO BACK AND ANY OTHER TO CONTINUE...: \n")

if lol=="1":

print("THANK YOU")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING ADD MARKS:


\n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

elif xyz=="vss_3":

menu2()

else:

while xyz!="vss_1" and xyz!="vss_2" and xyz!="vss_3":

print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING ADD


MARKS: \n")

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()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

while Admission_No.isdigit()==False:

print("INVALID ADMISSION NUMBER, PLEASE ENTER CORRECT ADMISSION NUMBER:


")

print()

Admission_No=input("ENTER ADMISSION NUMBER: \n")

continue

print()

sto=(Admission_No,)

sql_sql="select * from student_details where Admission_No=%s"

c1.execute(sql_sql,sto)

e=c1.fetchall()

if e==[]:

print("ADMISSION NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE")

if axy=="1":

access()

else:

dispmarks()

else:

pas=(Admission_No,)

sql="SELECT * FROM test WHERE Admission_No=%s"

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")

aa=input("DO YOU WANT TO DISPLAY ANY OTHER STUDENT'S MARKS? PRESS 1 TO


DISPLAY AND ANY OTHER TO GO LEAVE!: \n")

if aa=="1":

dispmarks()

else:

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING DISPLAY MARKS:


\n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

elif xyz=="vss_3":

menu2()

elif xyz=="vss_4":

menu3()

else:

while xyz!="vss_1" and xyz!="vss_2" and xyz!="vss_3" and


xyz!="vss_4":

print("WRONG PASSWORD TRY AGAIN!")


xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING DISPLAY
MARKS: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

elif xyz=="vss_3":

menu2()

elif xyz=="vss_4":

menu3()

continue

def dispfees():

a=input("ENTER YOUR GRADE: \n")

while a.isdigit()==False:

print("INVALID GRADE, PLEASE ENTER CORRECT GRADE: ")

print()

a=input("ENTER YOUR GRADE: \n")

continue

print()

if a == '11':

from prettytable import PrettyTable

myTable =
PrettyTable(["Grade","Course_name","Competative","Tution_fees","Book_fees"])

myTable.add_row(["11","PCMC","CET","100000","1800"])

myTable.add_row(["11","PCMC","CET and JEE","125000","1800"])

myTable.add_row(["11","PCMC","JEE","110000","1800"])

myTable.add_row(["11","PCMB","CET","100000","2000"])

myTable.add_row(["11","PCMB","CET and NEET","125000","2000"])

myTable.add_row(["11","PCMB","JEE and NEET","130000","2000"])


myTable.add_row(["11","PCMB","CET,JEE and NEET","135000","2000"])

myTable.add_row(["11","PCMB","CET and JEE","125000","2000"])

print(myTable)

elif a == '12':

from prettytable import PrettyTable

myTable =
PrettyTable(["Grade","Course_name","Competative","Tution_fees","Book_fees"])

myTable.add_row(["12","PCMC","CET","100000","1800"])

myTable.add_row(["12","PCMC","CET and JEE","125000","1800"])

myTable.add_row(["12","PCMC","JEE","110000","1800"])

myTable.add_row(["12","PCMB","CET","100000","2000"])

myTable.add_row(["12","PCMB","CET and NEET","125000","2000"])

myTable.add_row(["12","PCMB","JEE and NEET","130000","2000"])

myTable.add_row(["12","PCMB","CET,JEE and NEET","135000","2000"])

myTable.add_row(["12","PCMB","CET and JEE","125000","2000"])

print(myTable)

else:

print("Invalid Option")

print("DO YOU WISH TO DISPLAY THE FEES OF STUDENTS?")

print("TYPE 1 TO CONTINUE AND ANY OTHER TO GO BACK!!")

x=input("ENTER 1 OR ANY OTHER")

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:

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING REPORT: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_4":

menu3()

else:

while xyz!="vss_1" and xyz!="vss_4":

print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING REPORT: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_4":

menu3()

continue

def add_teachers():

c1=conn.cursor()

print()

T_no=input("ENTER TEACHER NUMBER: \n")

print()

First_name=input("ENTER TEACHERS'S FIRST NAME: \n")

while First_name.isalpha()==False:

print("INVALID NAME, PLEASE ENTER CORRECT NAME.")

First_Name=input("ENTER TEACHER'S FIRST NAME: \n")

continue

print()

Last_name=input("ENTER TEACHER'S LAST NAME: \n")

while Last_name.isalpha()==False:
print("INVALID NAME, PLEASE ENTER CORRECT NAME.")

Last_Name=input("ENTER TEACHER'S LAST NAME: \n")

continue

print()

print("1. Physics")

print("2. Chemistry")

print("3. Maths")

print("4. Computer Science")

print("5. Biology")

print("6. English")

g=input("ENTER YOUR OPTION: \n")

while g.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

g=input("ENTER YOUR OPTION: \n")

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":

print("INVALID OPTION, RE-ENTER")

g=input("ENTER YOUR OPTION: \n")

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()

Qualification=input("ENTER QUALIFICATION: \n")

print()
Age=input("ENTER AGE: \n")

while Age.isdigit()==False:

print("INVALID AGE, PLEASE ENTER CORRECT AGE: ")

print()

Age=input("ENTER AGE: \n")

continue

print()

print("1. MALE")

print("2. FEMALE")

print("3. OTHERS")

g=input("ENTER YOUR CHOICE: \n")

while g.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

g=input("ENTER YOUR OPTION: \n")

continue

if g=="1":

Gender="Male"

print("Gender is", Gender)

elif g=="2":

Gender="Female"

print("Gender is", Gender)

elif g=="3":

Gender="Others"

print("Gender is", Others)

else:

while g!="1" and g!="2" and g!="3":

print("INVALID OPTION, RE-ENTER")

g=input("ENTER YOUR CHOICE: \n")

if g=="1":
Gender="Male"

print("Gender is", Gender)

elif g=="2":

Gender="Female"

print("Gender is", Gender)

elif g=="3":

Gender="Others"

print("Gender is", Others)

continue

print()

from datetime import datetime, date

Date_of_birth = input('DATE (yyyy-mm-dd): \n')

try:

valid_date = datetime.strptime(Date_of_birth, '%Y/%m/%d').date()

if not (date(2005, 12, 31) <= valid_date <= date(2003, 1, 1)):

raise ValueError('Date out of range')

except ValueError:

print('DATE OF BIRTH ADDED!')

print()

Salary=input("ENTER SALARY: \n")

while Salary.isdigit()==False:

print("INVALID SALARY, PLEASE ENTER CORRECT SALARY: ")

print()

Salary=input("ENTER SALARY: \n")

continue

print()

Experience=input("ENTER EXPERIENCE( IN YEARS ): \n")

while Experience.isdigit()==False:

print("INVALID EXPERIENCE, PLEASE ENTER CORRECT EXPERIENCE: ")

print()
Experience=input("ENTER EXPERIENCE( IN YEARS ): \n")

continue

print()

Phone_no=input("ENTER PHONE NUMBER: \n")

while Phone_no.isdigit()==False:

print("INVALID PHONE NUMBER, PLEASE ENTER 10 DIGITS: ")

print()

Phone_no=input("ENTER PHONE NUMBER: \n")

continue

print()

while (len(str(Phone_no))!=10):

print("INVALID PHONE NUMBER, PLEASE ENTER 10 DIGITS: ")

Phone_no=int(input("ENTER PHONE NUMBER: \n"))

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(First_name, Last_name, "IS ADDED SUCCESSFULLY!!")

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()

n=input("ENTER TEACHER_NUMBER : \n")

sql="select * from teacher_details where T_no=%s"

pas=(n,)

c1.execute(sql,pas)

e=c1.fetchall()

if e==[]:

print("TEACHER NUMBER NOT FOUND")

print("WOULD YOU LIKE TO GO BACK TO THE PREVIOUS FUNCTION??")

axy=input("PRESS 1 FOR GOING BACK AND ANY OTHER KEY TO CONTINUE")

if axy=="1":

access()

else:

Remove_student()

else:

pas=(n,)

sql="DELETE FROM teacher_details WHERE T_no = %s"

c1.execute(sql,pas)

conn.commit()

print(n ,"IS REMOVED SUCCESSFULLY1")

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)

print("1. NUMBER OF STUDENTS IN EACH COUSES")

print("2. NUMBER OF STUDENTS IN EACH COMPETATIVE")

print("3. NUMBER OF STUDENTS OPTED Transportation")

print("4. NUMBER OF STUDENTS OPTED Co-curricular")

print("5. NUMBER OF STUDENTS IN EACH GRADE")

print("6. TEACHERS REPORT")

print("7. RETURN TO MAIN MENU")

def No_course():

print("1. PCMB")

print("2. PCMC")

g=input("ENTER YOUR OPTION: \n")

while g.isdigit()==False:

print("INVALID COURSE NUMBER, PLEASE ENTER CORRECT COURSE NUMBER: ")

print()

g=input("ENTER YOUR OPTION: \n")

continue

if g == "1":

c1=conn.cursor()

sql1="SELECT COUNT(*) as 'Number of Students in PCMB is' FROM


vss_course WHERE Course_Name = 'PCMB' "

c1.execute(sql1)

result=c1.fetchall()

print("Number of Students in PCMB is",result)

sql="SELECT First_Name from vss_course WHERE Course_Name = 'PCMB'"

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()

sql2="SELECT COUNT(*) as 'Number of Students in PCMC is' FROM


vss_course WHERE Course_Name = 'PCMC' "

c1.execute(sql2)

result=c1.fetchall()

print("Number of Students in PCMC is",result)

sql="SELECT First_Name FROM vss_course WHERE Course_Name = 'PCMC' "

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()

else:

print("INVALID COURSE NAME")

print("DO YOU WISH TO CHECK THE NUMBER OF STUDENT'S COURSES?")

print("PRESS 1 TO CONTINUE AND ANY OTHER TO GO BACK!")

x=input("ENTER 1 OR ANY OTHER: ")

if x=="1":
No_course()

else:

report()

def No_Competative():

print("1. JEE")

print("2. NEET")

print("3. CET")

g=input("ENTER YOUR OPTION: \n")

while g.isdigit()==False:

print("INVALID COURSE NUMBER, PLEASE ENTER CORRECT COURSE NUMBER: ")

print()

g=input("ENTER YOUR OPTION: \n")

continue

if g == "1":

c1=conn.cursor()

sql1="SELECT COUNT(*) as 'Number of Students in JEE is' FROM vss_course


WHERE Competative = 'JEE' "

c1.execute(sql1)

result=c1.fetchall()

sql="SELECT First_Name FROM vss_course WHERE Competative IN ('CET,NEET


and JEE' , 'JEE' , 'CET and JEE' , 'JEE and NEET') "

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()

sql1="SELECT COUNT(*) as 'Number of Students in NEET is' FROM


vss_course WHERE Competative = 'NEET' "

c1.execute(sql1)

result=c1.fetchall()

sql="SELECT First_Name FROM vss_course WHERE Competative IN ('CET,NEET


and JEE', 'CET and NEET', 'JEE and NEET', 'NEET')"

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=="3":

c1=conn.cursor()

sql1="SELECT COUNT(*) as 'Number of Students in CET is' FROM


vss_course WHERE Competative = 'CET' "

c1.execute(sql1)

result=c1.fetchall()

sql="SELECT First_Name FROM vss_course "

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()

else:

print("INVALID COMPETATIVE")

print("DO YOU WISH TO CHECK THE NUMBER OF STUDENT'S WHO OPTED


COMPETATIVE?")

print("PRESS 1 TO CONTINUE AND ANY OTHER TO GO BACK!")

x=input("ENTER 1 OR ANY OTHER: ")

if x=="1":

No_Competative()

else:

report()

def No_trans():

c1=conn.cursor()

sql1="SELECT COUNT(*) as 'Number of Students in Transport is' FROM


transportation_fees "

c1.execute(sql1)

result=c1.fetchall()

sql="SELECT First_Name FROM transportation_fees"

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()

def No_Co_curr():

c1=conn.cursor()

sql1="SELECT COUNT(*) as 'Number of Students in Co_curricular is' FROM


co_curricular "

c1.execute(sql1)

result=c1.fetchall()

sql="SELECT First_Name FROM co_curricular "

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()

def No_Grade():

a=input("ENTER YOUR GRADE(11 or 12): \n")

while a.isdigit()==False:

print("INVALID GRADE, PLEASE ENTER CORRECT GRADE: ")

print()
a=input("ENTER YOUR GRADE(11 or 12): \n")

continue

if a == '11':

c1=conn.cursor()

sql="SELECT First_Name FROM vss_course WHERE Grade = 11 "

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()

elif a == '12':

c1=conn.cursor()

sql="SELECT First_Name FROM vss_course WHERE Grade = 12 "

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()

else:

print("Invalid Grade")
print("DO YOU WISH TO CHECK ALL STUDENTS FROM GRADE 11 OR 12?")

print("PRESS 1 TO CONTINUE AND ANY OTHER TO GO BACK!")

x=input("ENTER 1 OR ANY OTHER: ")

if x=="1":

No_Grade()

else:

report()

def teacher():

print()

print("1. NO OF TEACHERS IN EACH DEPARTMENT")

print("2. NO OF TOTAL TEACHERS")

print("3. DISPLAY INDIVIDUAL TEACHER DETAILS ")

print("4. RETURN TO REPORT FUNCTION")

def each():

c1=conn.cursor()

print()

print("1. Physics")

print("2. Chemistry")

print("3. Maths")

print("4. Computer Science")

print("5. Biology")

print("6. English")

print()

g=input("ENTER YOUR SUBJECT: \n")

while g.isalpha()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

g=input("ENTER YOUR OPTION: \n")


continue

sql="SELECT First_name,Last_name FROM teacher_details WHERE Subject =


%s"

pas=(g,)

c1.execute(sql,pas)

myresult=c1.fetchall()

max_length_column = []

element_in_tuple = 2

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()

def total():

c1=conn.cursor()

sql="SELECT First_Name FROM teacher_details "

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()

def details():

c1=conn.cursor()
a=input("ENTER TEACHER NUMBER: \n")

pas=(a,)

sql="SELECT * FROM teacher_details WHERE T_No=%s"

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()

opt=input("ENTER YOUR CHOICE : ")

while opt.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

opt=input("ENTER YOUR CHOICE : ")

continue

if opt == '1':

each()

elif opt == '2':

total()
elif opt =='3':

details()

elif opt == '4':

report()

else:

print("Invalid Option")

print(" DO YOU WISH TO CONTINUE CHECKING TEACHER'S REPORT?")

print("PRESS 1 TO CONTINUE AND ANY OTHER TO GO BACK!")

x=input("ENTER 1 OR ANY OTHER: ")

if x=="1":

teacher()

else:

report()

opt=input("ENTER YOUR CHOICE : ")

while opt.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

opt=input("ENTER YOUR CHOICE : ")

continue

if opt == '1':

No_course()

elif opt == '2':

No_Competative()

elif opt=='3':

No_trans()

elif opt=='4':

No_Co_curr()

elif opt=='5':

No_Grade()
elif opt == '6':

teacher()

elif opt == '7':

print("THANK YOU")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING REPORT:\n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

else:

while xyz!="vss_1" and xyz!="vss_2":

print("WRONG PASSWORD TRY AGAIN!")

xyz=input("ENTER PASSWORD FOR CONFIRMING WHO IS EXITING REPORT: \n")

if xyz=="vss_1":

menu()

elif xyz=="vss_2":

menu1()

continue

else:

print("Invalid Option")

print("DO YOU WISH TO CONTINUE IN REPORT?")

print("PRESS 1 TO CONTINUE AND ANY OTHER TO GO BACK!")

x=input("ENTER 1 OR ANY OTHER: ")

if x=="1":

report()

else:

access()

report()

##########################

def menu():
print()

print()

print("1. ADD NEW STUDENT")

print("2. OPTING COMPETATIVE AND COURSE")

print("3. OPTING OF CO-CURRICULAR ACTIVITY")

print("4. OPTING FOR TRANSPORTATION")

print("5. UPDATE STUDENT DETAILS")

print("6. CHANGE COMPETATIVE")

print("7. LEAVING CO_CURRICULAR")

print("8. REMOVE STUDENT")

print("9. ADD TEST")

print("10. ADD MARKS")

print("11. DISPLAY MARKS")

print("12. DISPLAY FEES")

print("13. ADD TEACHER")

print("14. REMOVE TEACHER")

print("15. REPORT")

print("16. LOG OUT AS PRINCIPAL")

print()

print()

opt=input("ENTER YOUR CHOICE : ")

while opt.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

opt=input("ENTER YOUR CHOICE : ")

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()

elif opt == "13":

add_teachers()

elif opt == "14":

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!")

x=input("ENTER 1 OR ANY OTHER")

if x=="1":

menu()

else:

access()

menu()

def menu1():

print()

print()

print("1. OPTING COMPETATIVE AND COURSE")

print("2. OPTING OF CO-CURRICULAR ACTIVITY")

print("3. OPTING FOR TRANSPORTATION")

print("4. UPDATE STUDENT DETAILS")

print("5. CHANGE COMPETATIVE")

print("6. LEAVING CO_CURRICULAR")

print("7. ADD TEST")

print("8. ADD MARKS")

print("9. DISPLAY MARKS")

print("10. REPORT")

print("11. LOG OUT AS CO-ORDINATOR")

print()

print()

opt=input("ENTER YOUR CHOICE : ")

while opt.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

opt=input("ENTER YOUR CHOICE : ")

continue
if opt == '1':

opt_competative()

elif opt == '2':

opt_co_cirrcular()

elif opt =='3':

opt_transportation()

elif opt == '4':

upd_details()

elif opt == '5':

change_competative()

elif opt == '6':

leaving_co_curricular()

elif opt=='7':

add_test()

elif opt == '8':

add_marks()

elif opt == '9':

dispmarks()

elif opt == '10':

report()

elif opt=='11':

access()

else:

print("Invaild Option")

print("DO YOU WISH TO CONTINUE AS CO-ORDINATOR? PRESS 1 TO CONTINUE AND ANY


OTHER TO GO BACK!")

x=input("ENTER 1 OR ANY OTHER")

if x=="1":

menu1()

else:

access()
menu1()

def menu2():

print()

print()

print("1. ADD TEST")

print("2. ADD MARKS")

print("3. DISPLAY MARKS")

print("4. LOG OUT AS TEACHER")

print()

print()

opt=input("ENTER YOUR CHOICE : ")

while opt.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

opt=input("ENTER YOUR CHOICE : ")

continue

if opt == '1':

add_test()

elif opt == '2':

add_marks()

elif opt == '3':

dispmarks()

elif opt=='4':

access()

else:

print("Invalid option")

print("DO YOU WISH TO CONTINUE IN TEACHER? PRESS 1 TO CONTINUE AND ANY


OTHER TO GO BACK!")

x=input("ENTER 1 OR ANY OTHER")

if x=="1":
menu2()

else:

access()

menu2()

def menu3():

print()

print()

print("1. DISPLAY MARKS")

print("2. DISPLAY FEES")

print("3. LOG OUT AS STUDENT")

print()

print()

opt=input("ENTER YOUR CHOICE : ")

while opt.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

opt=input("ENTER YOUR CHOICE : ")

continue

if opt == '1':

dispmarks()

elif opt == '2':

dispfees()

elif opt == '3':

access()

else:

print("Invalid Option")

print("DO YOU WISH TO CONTINUE IN STUDENT? PRESS 1 TO CONTINUE AND ANY


OTHER TO GO BACK!")

x=input("ENTER 1 OR ANY OTHER")

if x=="1":
menu3()

else:

access()

menu3()

def access():

print()

print("*"*56)

print( " COLLEGE DATABASE MANAGEMENT SYSTEM PROJECT


" )

print("1. PRINCIPAL")

print("2. CO-ORDINATOR")

print("3. TEACHER")

print("4. STUDENT")

print("*"*56)

print()

opt=input("ENTER YOUR CHOICE : ")

while opt.isdigit()==False:

print("INVALID OPTION, PLEASE ENTER CORRECT OPTION: ")

print()

opt=input("ENTER YOUR CHOICE : ")

continue

if opt == "1":

a=input("ENTER YOUR PASSWORD: ")

if a == "vss_1":

menu()

else:

while a != "vss_1":

print("INCORRECT PASSWORD, DO YOU WISH TO CONTINUE HERE(yes/no)??")

xyz=input("ENTER YES to continue, NO for not continuing: ")


if xyz=="YES" or xyz=="yes" or xyz=="Yes":

a=input("ENTER YOUR PASSWORD: ")

if a == "vss_1":

menu()

else:

continue

else:

print("THANK YOU")

access()

break

elif opt== "2":

a=input("ENTER YOUR PASSWORD: ")

if a == "vss_2":

menu1()

else:

while a != "vss_2":

print("INCORRECT PASSWORD, DO YOU WISH TO CONTINUE HERE(yes/no)??")

xyz=input("ENTER YES to continue, NO for not continuing: ")

if xyz=="YES" or xyz=="yes" or xyz=="Yes":

a=input("ENTER YOUR PASSWORD: ")

if a == "vss_2":

menu1()

else:

continue

else:

print("THANK YOU")

access()

break

elif opt== "3":

a=input("ENTER YOUR PASSWORD: ")


if a == "vss_3":

menu2()

else:

while a != "vss_3":

print("INCORRECT PASSWORD, DO YOU WISH TO CONTINUE HERE(yes/no)??")

xyz=input("ENTER YES to continue, NO for not continuing: ")

if xyz=="YES" or xyz=="yes" or xyz=="Yes":

a=input("ENTER YOUR PASSWORD: ")

if a == "vss_3":

menu2()

else:

continue

else:

print("THANK YOU")

access()

break

elif opt== "4":

a=input("ENTER YOUR PASSWORD: ")

if a == "vss_4":

menu3()

else:

while a != "vss_4":

print("INCORRECT PASSWORD, DO YOU WISH TO CONTINUE HERE(yes/no)??")

xyz=input("ENTER YES to continue, NO for not continuing: ")

if xyz=="YES" or xyz=="yes" or xyz=="Yes":

a=input("ENTER YOUR PASSWORD: ")

if a == "vss_4":

menu3()

else:

continue
else:

print("THANK YOU")

access()

break

else:

print("ENTER ANY NUMBER FROM 1 TO 4")

access()

access()
OUTPUT

1.Access function output

2.Output for add student


3.output for opting transportation

4.Output for student’s report


5.Output for teacher’s report

6.Output for display fees


INSTALLATION PROCEDURE

1. You have to have the following softwares for the successful


running of this software; which are

I) Python (Only for the First time), it is downloadable


from 'www.python.org'.

II) MySQL (Only for the First time), it is downloadable


from 'www.mysql.org'.

Installation :-

1. There will be two folders namely 'TABLEE Files' and 'MAIN


files'.

2. The folder 'TABLEE Files' will contain the source code of


the software in python language. If you are running the software by
the 3rd step mentioned below you have to pre install the following
modules :-

A.) mysql.connector

B.)IMPORT time

3. Open the files in any python editors and run it to start


and work on the software.

4. The folder '6054' will contain two files namely 'main.exe'


and 'Tables_in_mysql.exe'.

5. First run the 'Tables_in_mysql.exe' to create the tables in


MySQL.

6. Then run the file 'main.exe' to start and work on the


software.
TESTING

Software Testing is an empirical investigation conducted to provide


stakeholders with information about the quality of the product or service under test[1]
, with respect to the context in which it is intended to operate. Software Testing also
provides an objective, independent view of the software to allow the business to
appreciate and understand the risks at implementation of the software. Test
techniques include, but are not limited to, the process of executing a program or
application with the intent of finding software bugs.
It can also be stated as the process of validating and verifying that a software
program/application/product meets the business and technical requirements that
guided its design and development, so that it works as expected and can be
implemented with the same characteristics. Software Testing, depending on the
testing method employed, can be implemented at any time in the development
process, however the most test effort is employed after the requirements have been
defined and coding process has been completed.

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.

BLACK BOX TESTING


Black box testing treats the software as a "black box," without any knowledge
of internal implementation. Black box testing methods include: equivalence
partitioning, boundary value analysis, all-pairs testing, fuzz testing, model-based
testing, traceability matrix, exploratory testing and specification-based testing.

SPECIFICATION-BASED TESTING

Specification-based testing aims to test the functionality of software according


to the applicable requirements.[16] Thus, the tester inputs data into, and only sees the
output from, the test object. This level of testing usually requires thorough test cases
to be provided to the tester, who then can simply verify that for a given input, the output
value (or behaviour), either "is" or "is not" the same as the expected value specified in
the test case. Specification-based testing is necessary, but it is insufficient to guard
against certain risks

ADVANTAGES AND DISADVANTAGES

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

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)

Types of white box testing:-


The following types of white box testing exist:
api testing - Testing of the application using Public and Private APIs.
Code coverage - creating tests to satisfy some criteria of code coverage.
For example, the test designer can create tests to cause all statements in the
program to be executed at least once.
fault injection methods.
mutation testing methods.
static testing - White box testing includes all static testing.
CODE COMPLETENESS EVALUATION

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.

Two common forms of code coverage are:


Function Coverage: Which reports on functions executed and
Statement Coverage: Which reports on the number of lines executed to
complete the test.
They both return coverage metric, measured as a percentage
HARDWARE AND SOFTWARE REQUIREMENTS

I.OPERATING SYSTEM : WINDOWS 7 AND ABOVE

II. PROCESSOR : PENTIUM(ANY) OR AMD

ATHALON(3800+- 4200+ DUAL CORE)

III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0R MSI

K9MM-V VIA K8M800+8237R PLUS

CHIPSET FOR AMD ATHALON

IV. RAM : 512 MB+

V. Hard disk : SATA 40 GB OR ABOVE

VI. CD/DVD r/w multi drive combo: (If back up required)

VII. FLOPPY DRIVE 1.44 MB : (If Backup required)

VIII. MONITOR 14.1 or 15 -17 inch

IX. Key board and mouse

X. Printer : required

SOFTWARE REQUIREMENTS:

I. Windows OS
II. Python

.
BIBLIOGRAPHY

1. Computer science With Python - Class XII By : Sumita Arora


2. Website: https://www.youtube.com

***

You might also like