This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: End Main Module Input Data Module Write “Enter Length of Worm in Inches.” Input WormLength Write “Enter Length between Worm and Apple in Inches.” Input AppleDistance End Input Data Module New AppleDistance Module NewAppleDistance = AppleDistance – WormLength End NewAppleDistance Module EnterApple Integer Module ITERATION CONTROL STRUCTURES 3 If NewAppleDistance <= WormLength Then EnterApple = 1 If NewAppleDistance > WormLength Then EnterApple = 2 End EnterApple Integer Module EnterApple Module Call WormLength While EnterApple = 2 NewAppleDistance = NewAppleDistance – WormLength End While While EnterApple = 1 Write “The Worm is now inside of the Apple.” End While End EnterApple Module...
View Full Document
This note was uploaded on 02/21/2012 for the course IT210 IT210 taught by Professor Hh during the Spring '10 term at University of Phoenix.
- Spring '10