An equation of the form: aX2 +bX + c = 0 is known as a quadratic equation. The v
ID: 3619579 • Letter: A
Question
An equation of the form:aX2 +bX + c = 0
is known as a quadratic equation. The values of a, b and c in the preceding example represent constant values. The values of X that satisfy the particular quadratic equation, known as the roots of the equation, can be calculated by substituting the values of a, b and c in the following formula:
For the Quadratic Formula to work, you must have your equation arranged in the form "(quadratic) = 0". Also, the "2a" in the denominator of the Formula is underneath everything above, not just the square root. And it's a "2a" under there, not just a plain "2". Make sure that you are careful not to drop the "plus/minus". Remember that "b2" means "the square of ALL of b, including its sign”.
The value of b2 – 4ac is called the discriminant, if it is less than zero then the roots of the equation are imaginary numbers. Write a function (called quadratic) that will solve the quadratic equation. This function will display a message if the roots are imaginary numbers, otherwise should display the two roots of the equation. The main function should allow the user to enter the values of a, b and c and it will pass those values to the quadratic function.