Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Evaluate y=ax^2+bx+c using c programming. Print the results for the 4 ranges: 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 1.0, 0.1,

Evaluate y=ax^2+bx+c using c programming.

Print the results for the 4 ranges:

0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0

1.0, 0.1, 0.01, 0.001, 0.0001, 0.00001, 0.000001, 0.0000001, 0.00000001

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

-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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions