Writing A Second Program - HP 25 Owner's Handbook Manual

Programmable scientific calculator
Table of Contents

Advertisement

Programming
79
The illustration on the left
shows
program memory immediately
after
pressing
D
I
PRGM
lin
PRGM mode or turning the HP-25
ON
.
The
illustration
on
the right
shows
program memory after
recording
the three-step
example
program.
A
mID
@] @]
instruction
in
the program tells the
calculator
to
go to
step
00
and
execute the
automatic stop
instruction there
next. If
~
is pressed
again
in
automatic
RUN mode ,the calcu-
lator will begin
executing
instructions
from step
00
as
it did the
first time. Each time the
calculator executes
the program
,
it
ends
execution at
step
00
,
ready
to
begin
again.
If you had recorded
a
49-step
program,
after
executing step
49
the calculator would
execute
the
automatic stop
instruction
stored
in step 00.
Then you would
have to
press
~
to execute
the program
again.
Now try an
example.
Example.
Calculate the
s urface
area of
a
spherical "cat's-eye"
(marble)
with
a
diameter of
1.3
centimeters.
Then
calculate
the
surface
area
of
a
baseball with
a
diameter
of2.5
inches
.
Press
Display
15.31
2.5~
1
19.63
Area of
the
marble in square
centimeters.
Area of
the baseball
in square
inches
.
Each
time
you
press
~
the
calculator
executes
the sequence
of
keystrokes you have recorded
.
You calculate the same
answers
you would
obtain
if
you did
each
problem
manually,
but
without
the time
or
the tedium.
Writing a Second Program
Now
let's write
a second
progra
m
a
nd use it to further explore
the programming
capability
of
your
HP-25
calculator. Suppose
you want to write
a
program that will
calculate the
increase in

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents