HP 25 Owner's Handbook Manual page 87

Programmable scientific calculator
Table of Contents

Advertisement

Programming
83
Stopping Program Execution
~
works
differently
as
an executed
instruction
in
a
program
than it does when pressed from the keyboard
.
As an executed
instruction,~stops
program
execution
,
allowing
you to key
in new data or to write down
an
intermediate result.
When
I
RIS
I
is then pressed from
the keyboard
in
automatic
RUN
mode, the calculator continues
execution sequentially
down-
ward
.
Exa mple Program. Universal
Tins, a canning
company,
needs to calculate the volumes
of
various cylindrically-shaped
cans
.
Universal would also like
to
be able to
record
the
area of
the base of each
can
before
the volume
is
calculated.
One pro-
gram
to
solve
this problem follows.
This program calculates the
area
of the base
of
each
can and
then stops
.
When
after
you have written down that result, the
program can be restarted to calculate the
final
volume.
The
formula used is:
Volume
=
base
area
x
height
=
17'r2
x
h
The radius
(1')
and
the height
(h)
of the
can
are keyed into
the
x-
and Y -registers, respectively, before the program is run
.
To record this program,
set
the PRGM-RUN
switch
to PRGM
PRGM
mill
RUN
and
press
a
I
PRGM
I
to clear program memory and
display step 00
.
Then key in
the
following list
of
keys.
Press
Display
liI
0
01
15 02
Square the radius.
liI
0
02
15 73
Place 17'
in
X
.
0
03
61
Calculate
the area of the
base.
~
04
74
Stop
to record the area.
0
05
61
Calculate the
final
volume.
In order to run this program
set
the PRGM-RUN
switch
to
RUN
PRGM.mIl
RUN
and press
a
I
PRGM
I
so
that the
calculator

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents