Question: I need help with this c++ assignment . I'm suppose to use the sqrt() function in cmath library to do the square root . Please

 I need help with this c++ assignment . I'm suppose toI need help with this c++ assignment . I'm suppose to use the sqrt() function in cmath library to do the square root . Please show output . Thanks.

Write a C++ program to find the roots of a quadratic equation of the form Ax2+ Bx +C 0. Prompt the user to enter the coefficients A, B, and C. The program can only handle real roots; thus, the program must reject the coefficients if the discriminant (B2-4AC)

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!