English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

this is the pseudocode

Count<-0
REPEAT
INPUT ID, Age
IF Age > 20 THEN
DISPLAY ADULT
ELSE
Count <- Count + 1
DISPLAY NOT ADULT
ENDIF
UNTIL Count = 10

2006-10-08 15:08:40 · 1 answers · asked by Feith M 1 in Computers & Internet Programming & Design

1 answers

The first thing to notice is that you're looping. Thus, you need to start with a decision box which checks the value of count. If it's less than 10, you go through the steps. If it's 10, you stop. Next, is your input box followed by another decision box to check the value entered by the user. Again, draw two branches related to the two possible outcomes (greater than 20 or less than/equal to 20). Each branch will then link to the appropriate output box. From each of these draw arrows back to the start point of the loop.

2006-10-08 17:39:24 · answer #1 · answered by iuneedscoachknight 4 · 0 0

fedest.com, questions and answers