Practice Using Arrays
Draw a 10-segment “inch worm” on the screen and move it forward
Use arrays to keep the positions of the segments
Write procedures to initialize worm and draw it
Goals of exercise:
- Practice with arrays
- Practice with indexing
- Practice writing procedures
- Notice how arrays are passed
as parameters