Question: 7. Write and test a method that returns the roots of a quadratic equation ar? +bx+c=0, where a 0. Recall that the roots of such

7. Write and test a method that returns the roots of a quadratic equation ar? +bx+c=0, where a 0. Recall that the roots of such an equation are b+ b - 4ac given by the formulas x = and x, == -b-b - 4ac 2a * . The . 2a value d=b - 4ac is called the discriminant of the equation. If d > 0, the equation has two distinct real roots. If d=0, the roots "merge into one. If d
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
