Develop, debug, and document a program to determine the roots of a quadratic equation, ax2 + bx

Question:

Develop, debug, and document a program to determine the roots of a quadratic equation, ax2 + bx + c, in either a high-level language or a macro language of your choice. Use a subroutine procedure to compute the roots (either real or complex). Perform test runs for the cases

(a) a = 1, b = 6, c = 2;

(b) a = 0, b = -4, c = 1.6;

(c) a = 3, b = 2.5, c = 7.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Numerical Methods For Engineers

ISBN: 9780071244299

5th Edition

Authors: Steven C. Chapra, Raymond P. Canale

Question Posted: