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 nth order polynomial
px a ax ax anxn
where n
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 D 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
