Question: Bonus Problem: Array Backed Polynomial Functions(pollyArray.c) A C' program can represent a real polynomial p(x) of degree n as an array of the real number

Bonus Problem: Array Backed Polynomial Functions(pollyArray.c) A C' program can represent a real polynomial p(x) of degree n as an array of the real number coefficients ao, a1,.., an (an0) Write a program that inputs a polynomial of maximum degree 8 and then evaluates the polynomial at various values of x. Include a function get poly that fills the array of coefficients and sets the degree of the polynomial and a function eval poly that evaluates a polynomial at a given value of x. Implement these functions void get_poly(double coeff[I, int* degreePoly); double eval_poly (const double coeff0, int degree, double x); We will do this program as a run once program. Your program flow should be as follows program starts in the main function and does any setup you deem necessary, then calls the get poly function and setup the polynomial. Then it returns to the main function and get a value (via scanf) to evaluate the polynomial. It, then, calls the eval poly function and prints resulting evaluation of the polynomial with the given value for z plugged in and exit. Data Type Requirement: For both polynomial coefficients and the value of X input is of type double, the degree of the polynomial is an int Input Validation: For polynomial coefficients the value can be any valid double value including negative numbers, 0, and positive numbers. The same holds true for the value of X, any real number that will fit inside a double is a valid input You have to submit the following file containing the solution of this program via handin: polly Array.c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
