# Project 8

Nested if statements (50 points)
• A quadratic equation is a polynomial which can be written in the form : axý + bx + c = 0 where a is not equal to 0. Your program must allow the user to enter the coefficients of any polynomial equation as floats.
• It must also calculate the discriminate of the quadratic equation.
The discriminate is defined as : bý - 4ac.
• Your program must determine the nature of the solution of the quadratic equation.
• if bý - 4ac = 0 then there is one real root.
• if bý - 4ac > 0 then there are two real solutions.
• if bý - 4ac < 0 then there are two non-real solutions.
• A nested loop is required for this program. Base your nested if structure on the nature of the solutions of the quadratic equation.
• Your program must then output the quadratic equation, it's discriminate, and the nature of the equations solution.
• Make sure your program can display the sample outputs below. Include the super script character ý (Ascii value = 253).
• Your code must be well documented. Also include your name, date, project number and a breif description of the program.

```
Sample output1

Enter a : 6
Enter b : 8.4
Enter c : -5

======================
6xý + 8.4x + -5 = 0

discriminate
==============
190.56

Nature of solution
===================
two real solutions.

Sample output2

Enter a : 1
Enter b : 4
Enter c : 4

======================
1xý + 4x + 4 = 0

discriminate
=============
0

Nature of solution
===================
one real root

Sample output3

Enter a : 6.5
Enter b : 7
Enter c : 12