Question: Write in C++ please! And please explain it as well. Thank you in advance. Write a program that asks for and accepts three doubles: a,

 Write in C++ please! And please explain it as well. ThankWrite in C++ please! And please explain it as well. Thank you in advance.

Write a program that asks for and accepts three doubles: a, b and c from the second order equation ax +bx c 0. The roots of this equation can be calculated with the quadratic 4ac The program should then calculate (with the quadratic 2 bt Nb formula r,r, 2a formula) and display the two roots, rin. Realize that certain values will yield complex roots, so avoid this complication by using the two test cases: (1) a 4, 4, c 1, ields roots ri,r 2 2 b (2) a 2, b 4, c 2, yields roots r,r, 1,-1

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!