Question: Write a C+ function called QUADRA that uses references or cout statements (included within the function) to print out the real and imaginary parts of

 Write a C+ function called QUADRA that uses references or cout

Write a C+ function called QUADRA that uses references or cout statements (included within the function) to print out the real and imaginary parts of the solution to the quadratic equation A*x*x + B*x +C = 0; where the coefficients A, B and C are entered as inputs to the function. Use the following formulas in your function: If (B*-4*A*C > = 0) } Real1 = -B/(2*A) + sqrt(B*B-4*A*C) / (2*A); Real2 = -B/(2*A) - sqrt(B*B-4*A*C)/(2*A); } If (B*B-4*A*C = 0) { ??? } Else If (D

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!