Question: This can either be in Java or C++ and I do not need the algorithm analysis, just the source please. Thanks. These are the instructions
This can either be in Java or C++ and I do not need the algorithm analysis, just the source please. Thanks.
These are the instructions for your first programming project. Recall that all code must be written individually and independently. Recall that violating this rule will result in zero credit for the project and probably a failing grade in the course Problem: You will implement and test a preliminary version of the polynomial class, using a small array to store the coefficients of the polynomial in order of increasing exponents, following the design pattern of object-oriented approach. Suppose the range of the exponents is in [0, 30) . Use an array as a private member variable. insert), adding a new term on specific exponent remove), deleting a term Have a add) method, deciding the parameters and the return value by yourself. Have a sub) method, deciding the parameters and the return value by yourself. A printout() method to display the polynomial expression. And other variables, or methods if needed. . Do the algorithm analysis on the implemented method, and give the big O notation estimation You will also need to write a PolynomialTest program to initialize two linear polynomial objects and apply the operation on it and also display the result. For example, P1-x + 3x -5x8; P2-2x3-4x5+ 2x7; So P3-Pl+P2-x +2x3-X5+ 2x7-5x8, P4-Pl-P2-x-2x3 + 7x5- 2x7- 5x8 In this project, only one variable is considered, we don't have the polynomial such as x+3x5,3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
