Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions