Ch.12 and 16 Loop Design and Modeling exam 2

Ch.12 and 16 Loop Design and Modeling exam 2 - Loop Design...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Click to edit Master subtitle style 8/15/11 Loop Design and Modeling Selected Topics from Chapters 12 & 16
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8/15/11 “Loops” a.k.a. “Repetition” structures a.k.a. “Iterative” structures Loops repeat one set of instructions multiple times. For example, repeat a set of instructions… a set number of times. for each row of data on a worksheet. for each worksheet of a workbook.
Background image of page 2
8/15/11 Loop Conditions Loops must include a decision whose outcome determines whether or not the loop will repeat again. The loop condition is a logical test that evaluates to TRUE or FALSE. A loop can repeat WHILE a condition is TRUE. A loop can repeat UNTIL a condition becomes TRUE (while the condition remains false). A loop can repeat FOR a set number of times.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Place the loop condition…where? When the decision is at the beginning of the loop… it is called a “leading decision”. it is the ENTRANCE condition for the loop. the loop may never execute at all.
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 17

Ch.12 and 16 Loop Design and Modeling exam 2 - Loop Design...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online