Professional Documents
Culture Documents
ellipse,circle,pointornocurve.
=0
parabola,2parallellines,1lineorno
curve.
>0
hyperbolaor2intersectinglines.
II. METHODOLOGY
The students were tasked to create a program that will
identify whether the given equation is a parabola, hyperbola,
circle or ellipse.These are done using decision control
statement in c-programming. In decision control statements
(C if else and nested if), group of statements are executed
when condition is true. If condition is false, then else part
statements are executed.
There are 3 types of decision making control statements
in C language. They are,
if statements
if else statements
nested if statements
Nested if is used in this program.
The codes below were used in the experiment
Figure1TypesofConicSections
>>C
>>D
>>E
>>F
=
=
=
=
input('Enter
input('Enter
input('Enter
input('Enter
the
the
the
the
value
value
value
value
of
of
of
of
C:
D:
E:
F:
');
');
');
');
x2+y2-8x+2y-16 = 0
4x2+4x-24y+37 = 0
9x2+y2+18x-12y-180 = 0
5x2-4y2-20x-24y-36 = 0