Question: Write a program that repeatedly evaluates a n - th order polynomial p ( x ) = a 0 + a 1 * x +

Write a program that repeatedly evaluates a n-th order polynomial
p(x)= a0+ a1*x + a2*x^2+...+ an*x^n
where n <=10
The program inputs n, ai, and x from the keyboard and then prints out the
corresponding value of p to the screen. Note that ai should be represented
using a 1D array.
The program continues to input new values of n, ai, x and evaluates p until a
negative value for n is input, at which point the program stops.
C++

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!