Question
Problem 3: The roots of the quadratic polynomial are those values of x for which the polynomial is zero. For a quadratic, there are two
Problem 3: The roots of the quadratic polynomial are those values of x for which the polynomial is zero. For a quadratic, there are two roots and they can be found with the famous quadratic formula: -b tVb- 4ac 1,2 2a Write a program that reads in the three numbers a, b, and c and displays one of the following messages The roots of the quadratic polynomial are REAL! The roots of the quadratic polynomial are DEGENERATE! The roots of the quadratic polynomial are COMPLEX! depending on whether the rots are two different real numbers or both numbers are the same real number (degenerate), or both numbers are complex numbers. Note: the value of the quantity under the square root determines which message to display: When b-- 4ac >0, the roots are real. When b- 4ac = 0, the roots are degenerate. When b-- 4ac < 0, the roots are complex. Also, if the roots are real, display the value of the roots. Thus for real roots you should also display the following message: The value of the first root xl is: #.##### The value of the second root x2 is:#.## ###
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started