{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Iteration Control Structure

Iteration Control Structure - inches so would be my process...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Distance 20 Worm 2 Move worm 2 End loop If worm totals 20 move into apple oving worm 2 does not total 20 repeat Iteration Control Structure I am assuming the worm length and apple distance is at my discretion and am lost at this also. So I am going to set the worm length as 2 inches and the distance of the apple from the worm 20
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: inches so would be my process The input would be distance of 20 Worm length of 2 The output would be the worm moving in intervals toward the apple. Input...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online