Question: Write a more general and more robust version of Quadratic ( PROGRAM 1.2.3) that prints the roots of the polynomial ax2 + bx + c,
Write a more general and more robust version of Quadratic ( PROGRAM 1.2.3) that prints the roots of the polynomial ax2 + bx + c, prints an appropriate message if the discriminant is negative, and behaves appropriately (avoiding division by zero) if a is zero.
Step by Step Solution
3.50 Rating (150 Votes )
There are 3 Steps involved in it
To write a robust version of a quadratic equation solver program ax2 bx c 0 you would use the genera... View full answer
Get step-by-step solutions from verified subject matter experts
