Tuesday
March 28, 2017

Post a New Question

Posted by on .

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.
    I do not know how technical your teacher expects the answer.
    In computer language ususally it says until the distance is less than the length of the body.

    Hope you have a good project.

Answer This Question

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Post a New Question