Download presentation
Presentation is loading. Please wait.
Published byCory Gallagher Modified over 8 years ago
1
Looping Structures
4
A B dialog box that pops up and prompts the user for input Text area that pops up and prompts the user for to wait while it gets input
6
A B dialog box that pops up and prompts the user for input Text area that pops up and prompts the user for to wait while it gets input
8
A B ix
10
A B ix
12
A. B. Keeping the loop running Keeping a running total
14
A. B. Keeping the loop running Keeping a running total
16
A. B. Do While Do…Loop While For…Next For Each…Next Do While Do…Loop While For…Next Do For …Next
18
A. B. Do While Do…Loop While For…Next For Each…Next Do While Do…Loop While For…Next Do For …Next
20
A. B. Test the condition BEFORE the loop runs. If the condition is false the loop will not execute. Run the loop one time then test the condition- if the condition is false the loop will then terminate
22
A. B. Test the condition BEFORE the loop runs. If the condition is false the loop will not execute. Run the loop one time then test the condition- if the condition is false the loop will then terminate
24
A. B. Do While condition Statements Loop Do condition Statements Loop While
26
A. B. Do While condition Statements Loop Do condition Statements Loop While
28
A. B. when you know how many times the loop will run when a variable is used in the condition.
30
A. B. when you know how many times the loop will run when a variable is used in the condition.
34
A. B. StrVariable = InputBox (prompt, title) StrVariable = InputBox “prompt, title”
36
A. B. StrVariable = InputBox (prompt, title) StrVariable = InputBox “prompt, title”
38
A. B. the value that updates the accumulator changes It adds up all values
40
A. B. the value that updates the accumulator changes It adds up all values
42
A. B. CirclesRepeated actions
44
A. B. CirclesRepeated actions
46
A. B. Pretest and Prosttest Pretest and Protest
48
A. B. Pretest and Prosttest Pretest and Protest
50
A. B. FalseTrue
52
A. B. FalseTrue
54
A. B. Do Statements Loop While condition Do Statements Loop (condition)
56
A. B. Do Statements Loop While condition Do Statements Loop (condition)
58
A. B. when a variable is used in the condition when you know how many times the loop will run
60
A. B. when a variable is used in the condition when you know how many times the loop will run
64
A. counter variable B. Accumulator Variable
66
A. counter variable B. Accumulator Variable
68
A. accumulator = accumulator + value accumulator += value B. accumulator = accumulator + variable accumulator += variable
70
A. accumulator = accumulator + value accumulator += value B. accumulator = accumulator + variable accumulator += variable
72
A. Every time the loop returns to the top B. Each time the loop runs
74
A. Every time the loop returns to the top B. Each time the loop runs
76
A. Test the condition BEFORE the loop runs. If the condition is false the loop will not execute. B. Run the loop one time then test the condition- if the condition is false the loop will then terminate
78
A. Test the condition BEFORE the loop runs. If the condition is false the loop will not execute. B. Run the loop one time then test the condition- if the condition is false the loop will then terminate
80
A. NEVER B. ALWAYS
82
A. NEVER B. ALWAYS
84
A. For counter = start To end Statements Next counter B. For counter = start To end Statements loop
86
A. For counter = start To end Statements Next counter B. For counter = start To end Statements loop
88
A. A condition used to signify that a loop should stop executing B. A condition used to signify that a loop should continue to execute
90
A. A condition used to signify that a loop should stop executing B. A condition used to signify that a loop should continue to execute
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.