I get 5.5 for both. I guess the equation is entered wrong. hmm... keep on trucking I guess, see what I can figure.

I am trying to code this question from my self study:

In high-school algebra, you learned that the standard quadratic equation
ax2 +bx+c=0
has two solutions given by the formula
x=–b±√⎯⎯b⎯⎯–⎯4⎯ac / 2a (won't display correctly)
The first solution is obtained by using + in place of ±; the second is obtained by using – in place of ±.
Write a Java program that accepts values for a, b, and c, and then calculates the two solutions. If the quantity under the square root sign is negative, the equation has no real solutions, and your program should display a message to that effect. You may assumethatthevalueforaisnonzero.