Project 16: Draw Quadratic
Project 16: Your program has the following variables initialized (xMin, xMax, yMin, yMax, a, b, c) and a working method called getYQuad.
xMin is the lowest x-value on the graph (-8 in the example above)
xMax is the highest x-value on the graph (8 in the example above)
yMin is the lowest y-value on the graph (-8 in the example above)
yMax is the highest y-value on the graph (6 in the example above)
a, b, c are the coefficients of the quadratic you want to draw (1,-3,-4 in the example above).
getYQuad is a method that accepts four parameters (a, b, c, x) and returns the y-value for the quadratic at the given x.
example 1: getYQuad(1.0, 1.0, 1.0, 3.0) returns the value 13.0
example 2: t = getYQuad(2.0, 4.0, 0.0, -1.0);
//t stores the value -2.0
Task: Implement code to correctly draw the quadratic with coefficients a, b, c.
If your code is correct, you will see a quadratic in MAGENTA.
**If your code works for 5 test cases, you can enter your e-mail address
Universal Computational Math Methods:
pow(5,2) returns 25.0
abs(-3.0) returns 3
sqrt(49.0) returns 7.0