Programming 85
To
see how 0 1
PAUSE
Ican be used
in
a program, we'll modify
the cylinder volume program
in
the previous example. In the
new program the
area
of
the base will only be briefly displayed
before the volume
is
calculated.
This
example
will also show
how different programming
approaches
can be taken to solve
the same problem.
To
key
in
the program, set the
PRGM-RUN
switch to
PRGM
PRGM
~
RUN
and press I PRGM I to
clear
program memory and
display step 00.
Then
key
in
the following list
of
keys.
Press
I1.I
w
11.1
0
o
0 1
PAUSE
I
Display
I 01 15
02
I 02 15
73
1
03
61
1
04
14
74
105
61
I Squares the radius
in
X.
I Places
7T
in
X.
I Calculates the
area
of
the base.
I
Pauses
to show the base
area
for
one
second.
I Calculates final volume
of
can.
This
program also assumes the height has been
entered
into the
Y -register and the radius has been keyed into the X-register.
If
you have stored the instructions, set
the
PRGM-RUN
switch
to
RUN
PRGM'"
RUN
and press 0 I PRGM I so
that
the calculator
will begin execution from step
00
.
Now
complete the table
below using the new program.
Height
Radius
20
15
10
5
Press Display
20
Imim I 20.00
15
~
706.86
14137
.
17
l0lmim
10.00
Area
of
Base
Volume
? ?
?
?
Enter
the height into the
V-register.
Area
of
base
is
displayed for
one second.
Program stops, displaying the
volume.
Enter
the second height into Y.