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

Answer:

The sequence structure would be a good choice. See below.


Three Steps

Three Steps

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

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

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 19:

Replace one of the blocks with an iteration structure.