Unit 4 Flashcards
How many looping structures are we learning in this course?
2.
Leading Decision Loop
Counted Loop
What are the 2 looping structures we are learning in this class?
Leading Decision Loop
Counted Loop
What is Leading Decision Loop?
Make the decision first.
The (condition) is tested first, before the code in the loop is run. The condition must be true for the code to run. After the code is run, the (condition) is tested again. If the condition is still true, it will run the code.
The condition will be tested until it is no longer true.
What is the following?
Make the decision first.
The (condition) is tested first, before the code in the loop is run. The condition must be true for the code to run. After the code is run, the (condition) is tested again. If the condition is still true, it will run the code.
The condition will be tested until it is no longer true.
Leading Decision Loop
What is a Counted Loop?
You do something a specific number of times.