Java questions from Big Java book from cay S. Horstmann
Page 765 ex. P.19.7 & ex. P19.8
Due Nov 3rd 2003 midnight
_Code must be well documented_
Write a class Polynomial that stores a polynomial such as p(x) = 5x ^ 10 + 9x ^ 7 ??" x ??" 10
Store it as a linked list of terms. A term contains the coefficient and the power of x. For example, you would store p(x) as
(5, 10), (9, 7), (-1, 1), (-10, 0)
Supply method to add, multiply, and print polynomials. For example, the polynomial p can be constructed as
Polynomial p = new Polynomial ( );
[url removed, login to view] (-10, 0);
[url removed, login to view] (-1, 1);
[url removed, login to view] (9, 7);
[url removed, login to view] (5, 10);
Then compute p(x) * p(x)
Polynomial q = [url removed, login to view] (p);
[url removed, login to view] ( );
Implement a stack class by using a linked list to store the elements.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
windows xp 2000