{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Ch.12 and 16 Loop Design and Modeling exam 2

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

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

Click to edit Master subtitle style 8/15/11 Loop Design and Modeling Selected Topics from Chapters 12 & 16

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

View Full Document
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.
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. A loop can repeat FOR EACH item of a group.

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

View Full Document
8/15/11 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.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern