# it programming

posted by .

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.

• it programming -

Would that be a repeated subtraction problem?
How do you plan to model it, by displaying the remaining distance from the hole, I suppose?

You need to prompt for user input, and print the history of the movement, or rather model the movement, right?

Can you suggest a pseudocode, or actual coding? In what langauge do you plan to code it?

• it programming -

I have no idea what i posted is all i have for specifications on this assignment your best suggestion for an answer will do and be greatly appriciated

• it programming -

Sorry, but I hope you realize that this is not a math problem where there is one single correct answer. It is a programming project that will be created under your name. We will be glad to assist and help you get over with difficulties. You will need to express yourself with the design, implementation, and coding of the project.

You could start with the design of the input and output screens and take it from there.

• it programming -

we are on iteration control structures, and my teacher has not responded to me all day. i have till 1200 to turn this in and then i stumble across this site. repeat
the snake moves towards the hole a body length at atime
until= it is a body length away
write "enter the hole"

Is this even close or at leaste a step in the rite dirrection or am i in left field? I have had no problems in school until this course and teacher I want to continue learning and get my degree but this teacher just does not care about us she is just collecting a check it seems.

• it programming -

The idea is good.
In computer language ususally it says until the distance is less than the length of the body.

Hope you have a good project.

## Similar Questions

1. ### Iteration Control Structure

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 …
2. ### computer programs

I have a problem just getting started on writing pseudocode or a program for the following problem: A worm is moving toward an apple. each time it moves, the worm cuts the distance between itself and th eapple by its own body length …
3. ### Iteration (repetition) Srtucture

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 …
4. ### Fundamentals of programming

Design a program that models the worm’s behavior in the following scenario:
5. ### programming

•Hi I really need help with with this I don't think I'm understanding how to do it maybe because i have never done this Design a program (you can use pseudocode to write your program) that models the worm’s behavior in the following …
6. ### programming

•Hi I really need help with with this I don't think I'm understanding how to do it maybe because i have never done this Design a program (you can use pseudocode to write your program) that models the worm’s behavior in the following …
7. ### IT 210

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 worms cuts the distance between itself and the apple by its own body length until the worm is close …
8. ### it210

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 …
9. ### IT/210

Design a program that models the worms 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 …
10. ### english 101

in which sentences snake used as adjective?

More Similar Questions