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

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!