IT210 - Week 4 Iteration Control Structure
IT210 - Week 4 Iteration Control Structure fin571
Popular in Department
This 0 page Study Guide was uploaded by an elite notetaker on Wednesday November 11, 2015. The Study Guide belongs to fin571 at Kaplan University taught by in Fall 2015. Since its upload, it has received 22 views.
Reviews for IT210 - Week 4 Iteration Control Structure
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 11/11/15
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 Main Module Declare InitialDistance as real Declare WormLength as real Write quotEnter initial distance between worm and the applequot Input InitialDistance Write quotEnter the worm39s lengthquot Input WormLength Set Distance InitialDistance While Distance gt WormLength Write quotThe distance isquot Distance Set Distance Distance WormLength End 100p Write quotThe last distance before entering apple is quot Distance End Main Module
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'