CheckPoint 4 - Write “Enter the distance from the apple...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
IPO Chart Input Processing Output Length of Worm (integer) Compute TotalMoves TotalMoves (integer, string) Distance From Apple (integer) Pseudo Code Write “Enter the length of the worm in inches--->” Input Num1 While Num1 <= 0 Write “The number entered must be positive” Write “Please try again--->” Input Num1 End While
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Write “Enter the distance from the apple inches--->” Input Num2 While Num2 < 0 Write “The number entered must be greater than zero” Write “Please try again---> Input Num2 End While Set TotalMoves = Num2 / Num1 Write “The worm will enter the apple in” , TotalMoves, “moves”...
View Full Document

This note was uploaded on 07/09/2011 for the course IT 210 IT 210 taught by Professor Schaffer during the Spring '10 term at University of Phoenix.

Ask a homework question - tutors are online