Lab 10, CSC 102, Spring 2012
Develop the Poly2 class, that represents a Polynomial of one variable of degree two. (i.e. a quadratic equation).
Develop the evalAt method that accepts an ’x’ and computes the value of the polynomial at that value of x.
Develop the difference method that accepts another Poly2 and returns the polynomial representing their difference (this one minus that one). Test cases!
Extend Poly2 so that it implements Comparable<Poly2>, using the value of the polynomial at x=0 to compare them. Test cases!
Develop PolyPointwiseComparator, that implements Comparator<Poly2> and returns 1 if the first polynomial is greater than the second for *all* values of x.