EasyManua.ls Logo

Radio Shack TRS-80 - Page 145

Radio Shack TRS-80
236 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
The
flowchart might
look
like
this:
ADD 1
TO
NUMBER
CORRECT
YES
^_
PRINT
CORRECT-
LINE 120
This
flowchart
has
three
decision
diamonds.
In
the first,
the
Computer
determines
if an
answer
is
correct.
In the
second,
the
Computer
determines
if
all the
questions
in a
single
student's
paper
have been
graded.
The third
one
terminates
execution
when
all the
tests
have
been graded.
EXERCISE
23-1
:
Using the
flowchart
as a
guide, write
a
program
that grades a test
having
five questions
.
For more
complicated
problems,
you
may want to
subdivide the
flochart
into
larger
modules,
A
master
flowchart
will
then
show
the
relationship
between the flowcharts of indi-
vidual
programs.
143

Other manuals for Radio Shack TRS-80

Related product manuals