Question: Plz help me Write a program to compute roots of quadratic equations. 1) Obtain three numbers from users: a, b, c 2) Check whether the
Plz help me

Write a program to compute roots of quadratic equations. 1) Obtain three numbers from users: a, b, c 2) Check whether the quadratic equation ax2 + bx + c has real number roots. If yes, calculate the print the two roots; otherwise, print "No solution". [Hint: Recall that the roots of a quadratic equation ax? + bx + C are x = -b7be-sac. To get a square root of a number (N) in Python, use math.sqrt(N). Note: To use all math functions, please add import math at the beginning of your code. For example, if I want to get the square root of 16, you can use the following code. import math print(math.sqrt(16)) #will output 4.0] 2a Example 1: (texts in blue are inputs from users): Enter a: 1 Enter b: 1 Enter c: 1 No solution Example 2: Enter a: 1 Enter b: -8 Enter c: 15 The roots are 3 and 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
