ABSTRACT

This chapter presents the repetition program structure and using it for specifying, describing, and implementing algorithms in developing computational models. This structure and the corresponding statements are discussed with flowcharts, pseudo-code, and implementation in the Python programming language. The repetition structure specifies that a block of statements be executed repeatedly based on a given condition. Basically, the statements in the process block of code are executed several times, so this structure is often called a loop structure. A program segment that includes the repetition structure has three major parts in its form:

1. the initial conditions,

2. the steps that are to be repeated, and

3. the final results.