69.3k views
4 votes
the program should prompt the user for the coefficients a, b, c of a quadratic function. the program should then calculate and display the roots of the function using the quadratic formula?

User Cesonha
by
7.5k points

1 Answer

4 votes

Final answer:

The student's question involves using the quadratic formula to find the roots of a quadratic equation with given coefficients. The formula is applied by first calculating the discriminant and then determining the two possible values for x, which are the equation's solutions.

Step-by-step explanation:

The question involves calculating the roots of a quadratic equation using the quadratic formula.

For a quadratic equation of the form ax²+bx+c = 0, where the constants are given as a = 1.00, b = 10.0, and c = -200, the solutions can be found by applying the quadratic formula:

x = (-b ± √(b²-4ac)) / (2a).

To solve for the roots, you would first calculate the discriminant, which is b²-4ac, and then use it within the quadratic formula to find the two possible values for x, which are the roots.

Hence, the formula is applied by first calculating the discriminant and then determining the two possible values for x, which are the equation's solutions.

User Varnothing
by
7.1k points