HP -10C Owner's Handbook Manual page 81

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

Advertisement

Keystrokes
t07
l2
t08
l1
k
Now we'll store the required numbers in registers R
the program, using  so that we can check that the branching occurs
properly. It's good practice with programs containing conditional test
instructions to check that the program branches correctly for all possible
conditions: in this case, if the sale amounts are less than, equal to, or greater
than the test value.
Keystrokes
¥
(Initializing)
´CLEAR Q
´•2
1000O0
10O1
12.5O2
(First Data Test)
Section 6: Branching and Looping
Display
04-
22 07
05-
45
2
06-
22 08
07-
45
1
08-
21
Display
0.000
0.000
0.00
1,000.00
10.00
12.50
If condition is true,
branches to program line
07.
If condition is false,
recalls commission rate
of 12.5% from R
Branches program to line
08.
Recalls commission rate
of 10% from R
.
1
Calculates commission.
, R
, and R
0
1
2
Sets calculator to Run
mode. (Display shows
result of previous
calculations.)
Sets display format to
two decimal places.
Stores test value in R
Stores 10% commission
rate in R
.
1
Stores 12.5%
commission rate in R
79
.
2
, and then run
.
0
.
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents