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

This note was uploaded on 05/16/2011 for the course IT 210 taught by Professor Josephpillera during the Spring '10 term at University of Phoenix.

Ask a homework question - tutors are online