IT 210 Week 4 Checkpoint: iteration control structure

0 items
IT 210 Week 4 Checkpoint: iteration control structure
IT 210 Week 4 Checkpoint: iteration control structure
$6.99
  • Description

IT 210 Week 4 Checkpoint: iteration control structure

Design a program that models a worm’s behavior in the following scenario.  You will use an iteration control (loop) structure.

A worm is moving toward an apple. Each time it moves, the worm cuts the distance between itself and the apple by its own body length until the worm is close enough to enter the apple. The worm can enter the apple when it is within one body length of the apple.  This program will have two inputs, namely the worm’s length and the distance to the apple.

Only pseudocode is required.  Design elements, such as IPO table, hierarchy chart, and flowchart, are NOT necessary.