|
|
|
|
|
|
|
Hour 8
Advanced Program Flow. |
|
|
|
|
|
|
|
|
Programs accomplish most of their work by branching and looping. In this hour you will learn |
|
|
|
|
|
|
|
|
What loops are and how they are used |
|
|
|
|
|
|
|
|
How to build various loops |
|
|
|
|
|
|
|
|
An alternative to deeply-nested ifelse statements |
|
|
|
|
|
|
|
|
Many programming problems are solved by repeatedly acting on the same data. |
|
|
|
|
|
|
|
|
New Term: Iteration means doing the same thing again and again. The principal method of iteration is the loop. |
|
|
|
|
|
|
|
|
The Roots of Looping goto |
|
|
|
|
|
|
|
|
In the primitive days of early computer science, loops consisted of a label, some statements, and a jump. |
|
|
|
|
|