Question: Task 2: Quadratic Write a method called quadratic that solves the quadratic equations and prints their roots. Recall that a quadratic equation is a polynomial
Task 2: Quadratic Write a method called quadratic that solves the quadratic equations and prints their roots. Recall that a quadratic equation is a polynomial equation in terms of a variable x in the form of ar + br + c . O. The formula for solving a quadratic is 2a Here is an example equation and its roots Equation.x-7x +12 Your method should accept coefficients a, b, c as parameters and should print the roots of the equation. You should may assume that the equation has two real roots, though mathematically this is not always the case Complete the program by having the nain method call guadresis) with the values from the above equation Your output First root -4.0 Second root-3,0 Comment your method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
