Question: python The purposes of this assignment include: passing of parameters and variations of import statement. You are to write a program to solve quadratic equations
The purposes of this assignment include: passing of parameters and variations of import statement. You are to write a program to solve quadratic equations in all their possibilities (real or complex roots, or even degenerate equations). Your program should prompt the user for the 3 coefficients a, b, and c, solve for x and print on stdout. If the solution is complex, the output should consist of a pair of expressions such as "2+31" and "2 - 3i". Other cases will result in either two real numbers being printed, a single real number, or perhaps just a message. You must rename the square root function and use as sqroot You must use subprograms solve_linear, solve_quad, solve_real, and solve_complex
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
