Quadratic Formula

Your program, Quadratic, should ask the user for three numbers.  These are the A, B, and C from the quadratic formula

AX^2 + BX + C = 0.

Then the program should give the user the solutions (there are two) to the formula with the A, B, and C given.

For some values of A, B, and C, there are no answers.  A good program won’t crash when this happens, rather it will provide a friendly message to the user like “The equation has no real roots.”

When you think you’re done, test your program with some quadratics where you know the answer!  (Consult the internet or an algebra textbook!)

For some hints and information about this project, watch the video below:

Quadratic from Mark Sobkowicz on Vimeo.