Question: Write a python program to determine the real roots of the quadratic equation ax^2 + bx + c = 0 (where a =/= 0) after

Write a python program to determine the real roots of the quadratic equation ax^2 + bx + c = 0 (where a =/= 0) after requesting the values of a, b, c. Before finding the roots, ensure that a is nonzero. [Note: The equation has 2, 1, or 0 solutions depending on whether the value of b^2 - 4ac is positive, zero, or negative. In the first two cases, the solutions are given by the quadratic formula (-b +- (b^2 - 4ac)^0.5) / 2a.] See Figure below on the outcome of the programming question.

Enter a: 1

Enter b: -11

Enter c: 28

Solutions: 7 and 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!