Everyone is encouraged to work with one lab partner on this assignment. If you do work with a partner, submit one solution with both of your names on it. Also, please look at the class collaboration policy so that you know what is and what isn't allowed.
In this program, we are going to construct a tool that can be used to manipulate two polynomials. Specifically, we are interested in being able to add two polynomials and to multiply two polynomials.
Provide the user a text-based menu (or optionally, a GUI) with the following options:
Consider the polynomial 3n^2 - 11n^1. 3n^2 is a term as is - 11n^1. 3 and -11 are coefficients. 2 and 1 and degrees.
When a polynomial is input or printed, only non-zero coefficients should appear. The terms of the polynomial should appear in descending degree order. Here are three examples of legal polynomials:
Your program may assume that all "+"s and "-"s are surrounded by one or more empty spaces. Your program may also assume that the only variable that appears in a polynomial is n.
You must have a class named Polynomial that represents a polynomial using a linked list. You may either use a built-in linked list class or you may implement your own.
E-mail your code to Mike Thiesen at mthiesen@gmail.com in one message before the due date. Zip your relevant BlueJ folder up so that you only need to send Mike one file. The subject of the message should be: CS221-xx program3 your-names. The xx is the number of your lab section. Late programs will not be accepted for credit. If you aren't finished by the deadline, submit whatever you have - partial credit is possible.