vDraw a 10-segment
“inch worm” on the screen and move it forward
vUse arrays to keep
the positions of the segments
vWrite procedures to
initialize worm and draw it
vGoals of
exercise:
oPractice with
arrays
oPractice with
indexing
oPractice writing
procedures
oNotice how arrays
are passed
o as parameters
v