Question: **IN JAVA PLEASE** When you work with a quadratic function of the form alt text the discriminant, alt text is used to determine the number

**IN JAVA PLEASE** When you work with a quadratic function of the**IN JAVA PLEASE** When you work with a quadratic function of the form alt text the discriminant, alt text is used to determine the number of its real roots. The result has 3 possible outcomes: If the discriminant is equal to 0, then f(x) has two equal real roots If the discriminant is negative ( 0), then f(x) has 2 distinct real roots You will read in 3 integers using the scanner class. Using decisions, you will implement a test to determine and output the number of real roots from a quadratic function.

Code Writing Exercise DESCRIPTION When you work with a quadratic function of the form f(x)=ax2+bx+c the discriminant, 32 is used to determine the number of its real roots. The result has 3 possible outcomes: 1. If the discriminant is equal to 0 , then f(x) has two equal real roots 2. If the discriminant is negative (0), then f(x) has 2 distinct real roots You will read in 3 integers using the scanner class. Using decisions, you will implement a test to determine and output the number of real roots from a quadratic function. INPUT Three integers: - integer a - integer b - integer c PROCESSING \& OUTPUT Calculate the value of the discriminant, then store and print one of three possible outputs: - If no real roots, output: "There are no real roots." - If two equal roots, output "There are two equal real roots." - If 2 distinct real roots, output "There are two distinct real roots

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!