February 25, 2017

Homework Help: it programming

Posted by steve on Friday, October 9, 2009 at 10:41pm.

design a program that models the worms behavior in the following scenario. A snake is moving towards a hole. Each time it moves, the snake cuts the distance between itself and the hole by its own body lengthuntil the snake is close enough to enter the hole. The snake can enter the hole when it is with in a body length of the hole. You should ask the user for the lengh of the snake and the distance between the snake and the hole.

Answer This Question

First Name:
School Subject:

Related Questions

More Related Questions