Question: Write a C++ program that accepts the a,b, and c coefficients of a quadratic equation and display its roots. The program should check the value

 Write a C++ program that accepts the a,b, and c coefficients

Write a C++ program that accepts the a,b, and c coefficients of a quadratic equation and display its roots. The program should check the value of the coefficient 'a' to be NON-ZERO; Otherwise, it should show an error message and allow the user to enter new data. Note: The program should display both the real root and imaginary roots. The roots of the equation calculated using the relation given below. Roots = -b + b2 - 4ac 2a

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!