The code should add the polynomial numbers using a linked list. Java . Keep in mind the
polynomials will be gotten from a file.
Things to keep in mind the list should be in decending order and traverse the list after
all coefficient/exponent pair Term nodes from one input line have been
inserted.
Here are the specifications
//The Polynomial class would likely have a single private data member (reference to
class Term) called head.
//The Term class would likely have three private data
members (coefficient and exponent of type int) and next of type reference to
Term.
//The latter class would also have the following public methods:
constructor(s), gets and sets for each data member, and perhaps a formatting
method with the special output requirements.

The code should add the polynomial numbers using a linked list- Java - (1).pdf

  • 1.
    The code shouldadd the polynomial numbers using a linked list. Java . Keep in mind the polynomials will be gotten from a file. Things to keep in mind the list should be in decending order and traverse the list after all coefficient/exponent pair Term nodes from one input line have been inserted. Here are the specifications //The Polynomial class would likely have a single private data member (reference to class Term) called head. //The Term class would likely have three private data members (coefficient and exponent of type int) and next of type reference to Term. //The latter class would also have the following public methods: constructor(s), gets and sets for each data member, and perhaps a formatting method with the special output requirements.