Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need help on c++ programming please here's the code given: I have provided a basic testing program, TestThePoly.cpp, and a header file Polynomial.h, for a
need help on c++ programming please
here's the code given:
I have provided a basic testing program, TestThePoly.cpp, and a header file Polynomial.h, for a polynomial class named Polynomial. Your job is relatively easy: complete the class declaration in the header and then implement (in a matching .cpp file) the functions that are declared in the header file and test them to ensure they work as advertised The testing program supplied is very basic. You will be expected to modify it and add some (two or three at least) more tests to ensure that all aspects of the new class are exercised For those who may be confused, the degree" of a polynomial is the highest degree (expo- nent) of its terms. For instance 3+3r2 +0.3x-1.54 is a polynomial of degree 3. Note: In this example there is one more term than the degree of the polynomial. Further note: There is always one more term than the degree of the polynomial. The exponents on some of the terms may simply be 0 1. The declaration should match the interface shown in the provided incomplete header file Polynomial.h. Please understand that the actual structure of the private mem- bers and functions of this class are up to you to design. Also, the degree of the polynomial can be any nonnegative integer value (from 0 up to "the sky is the limit") 2. The behavior of the class and its methods should duplicate that shown by the example test application TestThePoly.cpp. Its associated program output is at the end of this fileStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started