Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

here's the code given:

image text in transcribed

image text in transcribed

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 file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 10th International Symposium Sstd 2007 Boston Ma Usa July 2007 Proceedings Lncs 4605

Authors: Dimitris Papadias ,Donghui Zhang ,George Kollios

2007th Edition

3540735399, 978-3540735397

More Books

Students also viewed these Databases questions

Question

=+j Explain the relationship between unions and MNEs.

Answered: 1 week ago

Question

=+Have they changed the way employees view IP?

Answered: 1 week ago