Question: Write the script code in Python 3.6 for this problem Write a program that asks a user for the 3 coefficients and outputs the roots

Write the script code in Python 3.6 for this problem

Write a program that asks a user for the 3 coefficients and outputs the roots of that equation. Be aware of the following:

  • Be sure that your request for input and your output both have descriptive text.
  • Be sure to handle the cases where some or even all of the coefficients are 0.
  • If the roots have an imaginary component, use i when representing the imaginary term in the output. For example, you may output 3 + 7i as a root.
  • There could be 2 roots, 1 root, no roots, or infinite roots. If 1 or 2, you should output those. If no roots or infinite roots, you should output text stating that.

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!