Finding Roots to a Quadratic

Write a class named QuadraticRootsFinder whose main method prompts the user for the values of $A$, $B$, and $C$, and then displays the approximate real roots of the quadratic equation $$Ax^2+Bx+C=0$$ Note that quadratic equations may have 2, 1, or 0 solutions. These should be addressed as the sample runs below suggest.

Sample run 1:

This program will find the real-valued solutions to Ax^2+Bx+C=0.
----------------------------------------------------------------
Enter A, B, and C (separated by spaces): 5 -13 -6
This quadratic equation has two solutions: x = 3.0, and x = -0.4

Sample run 2:

This program will find the real-valued solutions to Ax^2+Bx+C=0.
----------------------------------------------------------------
Enter A, B, and C (separated by spaces): 1 -2 1
This quadratic equation has a single solution, x = 1.0

Sample run 3:

This program will find the real-valued solutions to Ax^2+Bx+C=0.
----------------------------------------------------------------
Enter A, B, and C (separated by spaces): 1 1 1
This quadratic equation has no real-valued solutions.

Tags: java.util.Scanner, if-else, comparing floats and doubles