Question: A quadratic equation is in the form ax 2 + bx + c = 0, where a, b, and c represent floating-point values. Write a
A quadratic equation is in the form ax2 + bx + c = 0, where a, b, and c represent floating-point values. Write a program that asks the user for the three values and output the result.
## FOR C ##
The program should contain two functions as follows:
Function Square which takes three float type parameters and return a float corresponding to b2 -4*a*c.
Function numSol which take three float parameters and two float pointer parameters, this function has no return.
The program should output a statement indicating the number of possible solutions and depending the number of solutions, output the proper number of statements for them.
do not repeat any calculations, meaning that function numSol need to call function Square instead of repeating the calculations done in numRoot.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
