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 enough to enter the apple. The worm can enter the apple when it is within a body length of the apple.

  1. 👍 0
  2. 👎 0
  3. 👁 144
  1. What problems are you having with this?

    1. 👍 0
    2. 👎 0

Respond to this Question

First Name

Your Response

Similar Questions

  1. Science

    Why do scientists use models? a: Scientists use models to learn about things that are too small, too large, or too complex to observe directly. < b:Scientists use models because doing so is always part of the scientific method.

  2. science

    Why do scientists use models? a. Scientists use models to learn about things that are too small, too large, or too complex to observe directly. b. Scientists use models because doing so is always part of the scientific method. c.

  3. Science

    Q1: Why do scientist use models? A.) Scientist use models to learn about things that are too small, too late, or too complex to observe directly. B.) Scientist use models because doing so is always part of the scientific method.

  4. criminology

    If a treatment program focused on providing models of positive behavior, rewarding positive behavior, and providing consequences for aggressive behavior, which theories would the program be based on? (Select all that apply.)

  1. Science test

    Can someone please help me with science test answers!! Why do scientists use models of natural systems? A- Scientist use models of natural systems because these systems are often too large or too small or too complex to study

  2. Programming and Design

    Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas. Design a program that prompts the user for a

  3. Programming concepts

    Develop a menu-driven program that inputs two numbers and, at the user’s option, finds their sum, difference, product, or quotient. top-down modular approach and pseudocode to design a suitable program to solve it. I am having

  4. Programming

    Language - PYTHON Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15% tip and 7% sales

  1. science

    parasitic worm infestation is hypothesized to be damaging to the host. However scientists have recently discovered that worm infestation of certain autoimmune disorders. in which of the following ways should the hypothesized to be

  2. math

    A worm is at the bottom of a 12- foot wall. Every day it crawls up 3 feet, but at night it slips down 2 feet. How many days does it take the worm to reach the top of the wall?

  3. Programming

    Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and the calculate the amount of a 15 percent tip and 7 percent sales tax.

  4. CIS Design and Programming

    Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15 percent tip and a 7 percent sales tax.

You can view more similar questions or ask a new question.