# Quadratic Equation Solver

This chapter contains another example of structured design.

#### Chapter Topics:

- Example: quadratic equation solver
- User interaction loop
- Body of the loop

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.

### QUESTION 1:

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?