Design a program that models the worm's behavior in the following scenario:

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 a body length of the apple

I need help starting this program I am lost and have np clue how to start the program. Please help!!!!

1 answer

Move:
Move one length
Do Test:
end

TEST:
Is distance remaining less than one body lenght?
If true, bore into apple
If false, do Move.
end
Similar Questions
  1. Design a program that models the worm's behavior in the following scenario:A worm is moving toward an apple. Each time it moves,
    1. answers icon 7 answers
  2. Design a program that models the worm's behavior in the following scenario:A worm is moving toward an apple. Each time it moves,
    1. answers icon 1 answer
  3. Design a program that models the worm's behavior in the following scenario:A worm is moving toward an apple. Each time it moves
    1. answers icon 0 answers
  4. Design a program that models the worms behavior in the following scenario:A worm is moving toward an apple. Each time it moves,
    1. answers icon 1 answer
more similar questions