Designing programs with flow charts

Question Set 1

1. Briefly define a flow chart.

2. Sketch and name each of the symbols used in flow charts.

3. Sketch the following constructs in flow chart form:

  1. repeat loop
  2. while loop
  3. if .. then
  4. if ... then ... else ...
4. Briefly describe the kind of programming problem in which you would use a repeat loop rather than a while loop.

5. What are the major advantages and disadvantages of using flow charts?

6. Briefly list the rules for drawing flow charts.

7. Give some reasons for why is it a good idea to use subprocesses in program design.

8. Sketch a flow chart for each of the following problems:

  1. Counting the number of five cent pieces in a money box and finding how much there is in dollars.
  2. Counting the number of votes  for each of three candidates in an election and determining the winner.
  3. Determining the average age in years of a class full of students.
  4. Finding a name in a list of names.

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