(Plot the square function) Write a program that draws a diagram for the function f(x) = x2 (see Figure 13.29c).
Hint: Add points to a polygon p using the following loop:
Connect the points using g.drawPolyline(p.xpoints, p.ypoints, p.npoints) for a Graphics object g. p.xpoints returns an array of xcoordinates, p.ypoints an array of y-coordinates, and p.npoints the number of points in Polygon object p.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.