I need to write a program that adds and subtracts two polynomials. I need it to be implemented in four different ways. The first two implementations will use arrays and the third will use pointers. The forth is a set of linked list in an array. Please use the attached [url removed, login to view] for all 4 classes.
Implementation 1 - Create an array or ArrayList holding coefficients with the array indexes as exponents
Implementation 2 - Create an array or ArrayList of nodes, each node holding a term of the polynomial
Implementation 3 - Use a linked list of terms using pointers
Implementation 4 - Polynomials are linked list in one static array
Implementations 2, 3, and 4 require a class that will encapsulate a polynomial term unique to that particular implementation. The string from the constructor is a polynomial that each implementation must take apart and store each term in sorted order. All three implementations will follow the same basic algorithm to add two sorted polynomials. This array must be in the polynomial class and declared static so that it is available to all polynomial instances and initialized once by the first instantiation of a polynomial.
There are two challenges in the first implementation. The first is converting the polynomial string given in the constructor into the terms of the polynomial. The second is taking the internal representation of the polynomial and converting it back to a string in the toSting() method. The other three implementations will modify the code from the first implementation for their constructor and toString() methods.
The code must use the demo class attached.
14 фрилансеров(-а) в среднем готовы выполнить эту работу за $147
Hello I'm interesting your project very well I'm a Good Java, Math, Algorithm expert. I m quite well experienced in these jobs. Let's go ahead with me I want to service for you continously. Thanks