Question: The code should add the polynomial numbers using a linked list. Java . Keep in mind the polynomials will be gotten from a file. Things
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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
