Question: (1) Given the Poly struct and the function prototype described below, implement the function. struct Poly { float a, b, x; }; // computes a*x
(1) Given the Poly struct and the function prototype described below, implement the function. struct Poly { float a, b, x; }; // computes a*x + b for each of the two polynomials, // then returns the difference between the two results (pi's result p2's result) float resultsDiff(Poly pl, Poly p2); (ii) Write a main routine that declares and initializes two Polys, one with values a=10, b=7, x=427, and the other with values a=923, b=0.01, x=1.1, and then calls resultsMatch on the two polys and stores the result in an appropriate variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
