Professional Documents
Culture Documents
Lab 10 Doing Things Over and Over (Counted Loops and Nested Loops)
Lab 10 Doing Things Over and Over (Counted Loops and Nested Loops)
You will be designing and implementing a rescue operation where a helicopter will be attempting to
rescue a drowning girl.
AS YOU WORK ON THIS LAB, INCLUDE SIMPLE COMMENTS TO EXPLAIN WHAT THE CODE IS DOING
(Short phrases are usually sufficient).
YOU WILL SUBMIT THE ALICE WORLD FILE AND A SHAREABLE LINK TO YOUR COPY OF THE LAB WITH
THE QUESTIONS AT THE BOTTOM ANSWERED.
(NOTE: You will need to use a combination of loops, nested loops, DoTogether tiles and DoInOrder tiles
for this part).
● Create your own ending. Make it interesting.
Finishing
1. Describe the nested loop to get the girl to bob (move up and down) while the helicopter is moving.
I looped the girl bobbing up and down 2 times inside of a 4 times loop which means that the girl will bob up
and down a total of 8 times
2. Describe the feature that you added that had a nested loop.
I added an arms splash method which is looped with the bob method
3. When are nested loops useful? Provide an example of another time when you might need nested
loops.
Nested loops are useful when you need to code multiple objects that are repeatedly moving at the same time.
For example, you would use a nested loop when a windmill wheel is spinning while a person jumps up and
down