![](v3_space.gif) |
![](v3_space.gif) |
![](v3_space.gif) |
![](v3_space.gif) |
![](v3_space.gif) |
![](v3_space.gif) |
![](v3_space.gif) |
![](v3_space.gif) |
![](v3_space.gif) |
![](v3_space.gif) |
![](v3_space.gif) |
![](v3_space.gif) |
![](v3_space.gif) |
![](v3_space.gif) |
v |
Draw
a 10-segment “inch worm” on the screen and
|
|
move
it forward
|
|
|
v |
Use
arrays to keep the positions of the segments
|
|
|
v |
Write
procedures to initialize worm and draw it
|
|
|
v |
Goals
of exercise:
|
|
|
|
o |
Practice
with arrays
|
|
|
|
o |
Practice
with indexing
|
|
|
|
o |
Practice
writing procedures
|
|
|
|
o |
Notice
how arrays are passed
|
|
|
|
as parameters
|
|