Question: please use c++ A polynomial in a single indeterminate x can always be written (or rewritten) in the form ana + an-12-1 + ... +

 please use c++ A polynomial in a single indeterminate x can

always be written (or rewritten) in the form ana" + an-12"-1 +

please use c++

A polynomial in a single indeterminate x can always be written (or rewritten) in the form ana" + an-12"-1 + ... + a2x +212 + 20 where 20,..., an are constants and is the indeterminate. This can be expressed more concisely by using summation notation: akak n k=0 Below is a polynomial that consists of three terms. 3.2 5x + 4. term term term 1 2 3 Given a partial implementation of a main function in Figure 1, you should be able to create a complete C++ program that will produce an output exactly as the one shown in Figure 2. The task is to create a class called Term and its implementation as follows: It contains private members k, a, and x, to represent current term number, coefficient for the current term, and the value for x, respectively. It has only a single constructor that can be used as a default constructor. It contains necessary member functions to update and calculate the private data members in the class Term. int main() Term poly(10); 1 int n, x3 double sum-O; for (int k-0; k> coeff; //setting the coefficient 1/setting the x //setting the k cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!