Question: Evaluate y=ax^2+bx+c using c programming. Print the results for the 4 ranges: 1. (0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0) 2.
Evaluate y=ax^2+bx+c using c programming.
Print the results for the 4 ranges:
1. (0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0)
2. (1.0, 0.1, 0.01, 0.001, 0.0001, 0.00001, 0.000001, 0.0000001, 0.00000001)
3. (1.0, 10.0, 100.0, 1,000.0, 10,000.0, 100,000.0, 1,000,000.0, 10,000,000.0, 100,000,000.0, 1,000,000,000.0)
4. (-10.0, -9.0, -8.0, -7.0, -6.0, -5.0, -4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0)
You must use loops to evaluate and print these four sets of values.
You must write a single function that returns y = a*x^2 + b*x + c for a given a, b, c, and x; and use the loops to call it repeatedly.
Variable must be double variables, not float variables.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
