Need pseudocode for given situation


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.
Need pseudocode for this please.

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Need pseudocode for given situation
Reference No:- TGS0135669

Expected delivery within 24 Hours