The Quadratic Formula is an easy (?) way to calculate the possible values of x in a quadratic equation. A quadratic equation looks like the first equation:
...where a, b, and c are all numbers, and the Quadratic Formula looks something like the second equation:
Create an application that takes a, b, and c from the user, and calculates the two possible values of x that make the equation true. Note that a computer's calculation will have a hard time with the concept of "plus or minus", so you'll have to split the Formula into two, one with plus, and one with minus.
Test your program. Use the following sets of values to test your program:
a = 1, b = 1, c = -6, which should get you 2 and -3
a = 6, b = 11, c = -35, which should be -3.5 and 1.6666666667 (give or take).
As always, design a useful and proper interface.