Write a function for solving a quadratic equation using the following header:def solveQuadratic(eqn, roots):The coefficients of a quadratic equation are passed to the list eqn and the noncomplex roots are stored in roots. The function returns the number of roots. See Programming Exercise 4.1 on how to solve a quadraticequation.Write a program that prompts the user to enter values for a, b, and c and displays the number of roots and all noncomplex roots.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here