Question: Implement quadratic.py ( 1 point ) This program will first ask the user to enter three integers, representing the parameters a , b and c
Implement
quadratic.py point
This program will first ask the user to enter three integers, representing the parameters and in
the standard form of a quadratic equation It will then solve for the two roots of
the quadratic equation and print them as floating point numbers on separate lines.
The root formula for a quadratic equation is:
I
Note that a quadratic equation may have roots, or no root at all in the case that For
this question, the autograder will always use and that guarantee so it always has
two roots. Therefore you do NOT need to check for the validity of and
Running a correct implementation of this program could look like:
Enter a:
Enter :
Enter :
has roots:
Formatting details:
The output should be two floating point numbers on separate lines.
There is no specific ordering of the two roots: you can print the smaller root first, or the larger
one first. It's up to you.
The numbers on the last two lines must be the solutions. Do NOT print extra lines.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
