HP -10C Owner's Handbook Manual page 79

Hide thumbs Also See for HP-10C:
Table of Contents

Advertisement

Keystrokes
t04
To run this revised program, we proceed as follows:
Keystrokes
¥
´CLEAR Q
100O1
4
¦
Exercise: Write a program that will enable a
salesperson to compute a commission at the rates
of 10% for sales up through $1,000 and 12.5%
for sales over $1,000. The test value (1,000) and
the commission rates can be stored for recall or
included in the program. Below, they are stored
in registers R
through R
0
program.
Note:
If a program requires that certain
numbers be in the X- and Y-registers
when instructions such as ® are executed, it is helpful when
writing the program to show the quantities in each register after
each instruction is executed, as in the following diagram.
Section 6: Branching and Looping
Display
23-
22 04
Display
0.000
100.000
4.
4.000
70.711
8.000
50.000
12.000
35.355
0.000
for later recall by the
2
If condition is false,
branches to line 04 to
continue program by
restarting loop. (Note
that the line number
specified has been
changed.)
Sets calculator to Run
mode.
Stores N
in R
.
0
1
Keys in t.
t.
N
.
4
N
.
8
N
.
12
Loop counter equals 0.
77

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents