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

Answer:

See below. Usually programs need an initialization step, a middle step that does most of the work, and a final step to finish the work.

Three Steps

The initialization step for our problem initializes the sum to zero.

Three Steps

The chart is still not detailed enough for programming. It needs some detail about how all those integers are to be read in. A loop is needed.

QUESTION 21:

Replace one of the blocks with an iteration structure.