Question: Please do in C not C++ Write a program that prompts the user to enter the coefficients a,b and c from the quadratic equation ax^2+bx+c-0,

Please do in C not C++Please do in C not C++ Write a program that prompts the

Write a program that prompts the user to enter the coefficients a,b and c from the quadratic equation ax^2+bx+c-0, and calculate the roots of the equation. Depending on the value of b^2-4ac (known by the discriminant), your program displays the rootfs) of the given quadratic equation. Here are some sample runs: Sample Run 1:(The user's entry is in bold Enter your the coefficients a b and c separated by space: 11 1 Your quadratic equation has two complex roots:-0.5 +i0.87 and-0.5-i0.87 Goodbye! Sample Run 2: (The user's entry is in bold) Enter your the coefficients a b and c separated by space: 1 Your quadratic equation has one real repeated root: -1 Goodbye! 2 1 Sample Run 3: (The user's entry is in bold) Enter your the coefficients a b and c separated by space: 0 Sorry the first coefficient can't be 0! Goodbye! 2 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!