go to previous page   go to home page   go to next page

Answer:

The iteration will be in the middle step (see below).


Final Design

After initialization, the program loops as long as there is data. When it reaches the end of the data, it writes out the answer and exits.

Flowchart with loop

There are still some details left to specify, such as how the end of data is determined. This might be done with a special sentinel value, or by prompting the user for a "yes" or "no" response. But the over-all design for the program will be the same.


QUESTION 20:

Does this flowchart look familiar?