Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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