[Solved] Polynomial

30 $

File Name: Polynomial.zip
File Size: 94.2 KB

SKU: [Solved] Polynomial Category: Tag:

Or Upload Your Assignment Here:


Write a class Polynomial that stores a polynomial such asp(x) = 5×10 + 9×7 – x – 10as a linked list of terms. A term contains the coefficient and the power of x. For example, youwould store p(x) as(5,10),(9,7),(-1,1),(-10,0)Supply methods to add, multiply, and print polynomials. Supply a constructor that makes apolynomial from a single term. For example, the polynomial p can be constructed asPolynomial p = new Polynomial(new Term(-10, 0));p.add(new Polynomial(new Term(-1, 1));p.add(new Polynomial(new Term(9, 7));p.add(new Polynomial(new Term(5, 10));Then compute p(x) x p(x)Polynomial q = p.multiply(p);q.print();

Please use the file > export > to zip option in NetBeans. The zip file should be namedFirstNameLastNameA9.zip.Lab 9Follow all directions in the COP3337 Lab Rules for Submitting Programs.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Polynomial
30 $