
March 1st, 2007, 08:47 PM
|
|
Registered User
|
|
Join Date: Mar 2007
Posts: 1
Time spent in forums: 30 m 56 sec
Reputation Power: 0
|
|
|
Repetition structure: Looping
Hi,
Can someone help me with this assignment am confused of what is needed to be done here.
I am suposed to design a program that models a 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 lenght until the worm is close enough to enter the apple. The worm can enter the apple when it is within a body lenth of the apple.
|