Project 8

Nested if statements (50 points)


Sample output1

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


The quadratic equation
======================
 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


The quadratic equation
======================
 1x + 4x + 4 = 0

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

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


Sample output3

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


The quadratic equation
======================
 6.5x + 7x + 12 = 0

 discriminate
==============
    -263

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