Jiskha Homework Help
SATURDAY
November 21, 2009
SCHOOL SUBJECTS
- Art
- Business
- Computers
- English
- Foreign Languages
- Health
- Home Economics
- Math
- Music
- Physical Education
- Science
- Social Studies
GRADE LEVELS
- Preschool
- Kindergarten
- Elementary School
- 1st Grade
- 2nd Grade
- 3rd Grade
- 4th Grade
- 5th Grade
- 6th Grade
- 7th Grade
- 8th Grade
- High School
- 9th Grade
- 10th Grade
- 11th Grade
- 12th Grade
- College
- Adult Education
Post a New Question | Current Questions | Chat With Live Tutors

Homework Help Forum: 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.

  • it programming - MathMate, Friday, October 9, 2009 at 10:57pm

    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 - steve, Friday, October 9, 2009 at 11:06pm

    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 - MathMate, Friday, October 9, 2009 at 11:12pm

    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 - steve, Friday, October 9, 2009 at 11:29pm

    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 - MathMate, Saturday, October 10, 2009 at 6:38am

    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:

SEARCH

COMMUNITY
FEATURES
- Live Tutors
- Net Riddle
- Reference
- Search