Flow charts and pseudocode compared  - Exercise 4



 
 With each of the flowcharts show the pseudocode equivalent.
 
DOWHILE decision_1
  DOWHILE decision_2
     SEQUENCE
  END DOWHILE
END DOWHILE
REPEAT
 SEQUENCE_1
 REPEAT
   SEQUENCE_2
 UNTIL decision_2
UNTIL decision_1
 
 

IF decision_1
 THEN sequence_1
 ELSE IF decision_2
            THEN sequence_2
            ELSE IF decision_3
                       THEN sequence_3
                        ELSE sequence_4
 

Return to the lesson


and may not be reproduced by any means without the written
 

This publication is copyright David Beech and Learning Systems 1997-2002
and may not be reproduced by any means without the written permission of
David Beech.
9 Wyndella Street, Tasmania, Australia


db@codelearn.com