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:
-
repeat loop
-
while loop
-
if .. then
-
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:
-
Counting the number of five cent pieces in a money box and finding how
much there is in dollars.
-
Counting the number of votes for each of three candidates in an election
and determining the winner.
-
Determining the average age in years of a class full of students.
-
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