Created: 08/10/2015
This chapter contains another example of structured design.
Finding the roots of a quadratic equation is one of the classic examples in beginning computer programming. You may well have done it already. This chapter develops such a program using structured design.
What are the roots of the function
f(x) = (x + 3)(x - 5)
In other words, what values of x
make f(x)
equal to 0?