JustAnswer > Computer
Ask A Question|Register|Login|Help
JustAnswer

Computer

Ask a Computer Question, Get an Answer ASAP!

Have your own Computer question?

10 Tech Support Specialists are Online Now
characters left:
Not a Computer Question?
Bookmark and Share

Question

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

Submitted: 414 days and 4 hours ago.
Category: Computer
Value: $9
Status: AWAITING CUSTOMER ACTION

Answer

Hi and thank you for choosing Just Answer

‘Declare variables

Dim Distance as integer

Dim Length as Integer

Distance = Distance to apple

Length = length of worm

Do while Distance > Length

Loop

Print “Apple has been conquered”

End

Picture
Expert: dawber39
Pos. Feedback: 97.5 %
Accepts: 
Answered: 10/4/2008

IT C&onsultant

Associates in Computer Information Systems, DELL Certified System Expert - Access Expert

Related Computer Questions

  • What program uses the .dwg extension?
  • My Acer Aspire 3050 1854 won't power up/ turn on any sugge
  • when i try to print from google earth only it only prints ha...
  • I have a lexmark x6180 printer. It will not receive a fax.
  • I have problem with my G/F's laptop Acer Travelmate 3280 ,
  • When I try to go to www.aol.com, I get a message Page Cannot
  • I can't load new mail and there is a constant BEEP going on;
  • I have a relative new machine, model w3650, I am getting the



Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Question List | Become an Expert | Terms of Service | Security & Privacy | About Us
© 2003-2009 JustAnswer Corp.