This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Set Lengthworm = 1 Inch DistanceRemaining = Inches If DistanceRemaining <= Lengthworm Then Enter Otherwise Repeat Lengthworm = 1.5 * Lengthworm Return to Lengthworm Enter Apple Eat Apple End program Main Module Declare, Inches, Lengthworm, DistanceRemaining As Real Call Welcome Message module Call Input Data module Call Calculations module Write “Worm eats apple” End Process Display program title Display directions Get worm length Get distance from apple Calculate distance (movement) Output result Input Length of worm (from keyboard) Distance from apple Output Worm length * 1.5 when Distance < Worm length Write “Worm eats apple” End...
View Full Document
This note was uploaded on 06/16/2011 for the course IT 205 taught by Professor Kurts during the Spring '08 term at University of Phoenix.
- Spring '08