Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'m stuck on Task #1, but giving the nature of his assignment I probably with n

ID: 3592447 • Letter: I

Question

I'm stuck on Task #1, but giving the nature of his assignment I probably with need help with all the other assingements. I've ask my fellow Java developers at work, but none of them have experience working with JavaFx

This is the assignment:

TASK #0 – Study the UML Class Diagram and the code.

Familiarize yourself with the code. Follow it from the class GraphDriverFX and its method “start()”, to MainPaneFX, to GraphPanelFX and GraphManager. Run it and observe its behavior. It will be incomplete when you first run it.

TASK #1 – Implement the Line-drawing

When you first run the application, the graph will not be plotted, although the prompts will appear and be handled. In the method drawGraph(double, double, GraphicsContext), add a call to gc.strokeLine(x0Draw, y1Draw, x1Draw, y0Draw) to plot each line segment of the graph.

Experiment with all three functions provided, varying left and right extents. Notice the gray horizontal line that is plotted at y=0 for reference.

Note: I did add the call to gc.strokeLine - but got the same results as running the unchanged code.

TASK #2 – Add another function

Note that function #3 is a complicated, fairly unpredictable function. Run it with several extents, and note the singularities, where the graph goes to “infinity”. Then notice that the denominator of function #3 is just a cubic polynomial.

Implement the denominator of function #3 as function #4. Run function #4 to estimate where the function goes to zero, which will of course make function #3 undefined. Include in your writeup an estimate of the point or points at which function #4 goes to zero.

TASK #3 – Add a fifth function

Very interesting behavior happens with the function f(x)=sin(1/x). Implement it, and run it with various extents. Include in your writeup what you think is happening with the function. At what value of x does the limit not exist?

The code provided by the instructor:

Graph Driver Fx

Function

--

Update to includ MainPaneFX again

Explanation / Answer

Function