Section 8: Programming Basics 97
Now, we’ll store the program in program memory. Do not key in the quantity and
cost of each item; these numbers will vary each time the program is run.
Keystrokes
(RPN mode)
Display
6.75?0
6.75
Stores tax rate in R
0
.
fCLEAR²
0.00
Clears the registers in R
1
through
R
6
.
13
13.
Keys in quantity of item.
\
13.00
Separates quantity of item from
cost of item to be keyed in next.
68.5
68.5
Keys in cost of item.
§
890.50
AMOUNT.
?+1
890.50
Adds AMOUNT to sum of
AMOUNT entries in register R
1
.
:0
6.75
Recalls tax rate to display.
b
60.11
TAX.
?+2
60.11
Adds TAX to sum of TAX entries
in register R
2
.
+
950.61
TOTAL.
?+3
950.61
Adds TOTAL to sum of TOTAL
entries in register R
3
.
Keystrokes
(RPN mode)
Display
fs
000,
Sets calculator to Program mode.
f]
000,
Sets RPN mode.
fCLEARÎ
000,
Clears program memory.
§
001, 20
gu
002, 43 31
Pauses to display AMOUNT.
?+1
003,44 40 1
:0
004,45 0
b
005, 25
gu
006, 43 31
Pauses to display TAX.
?+2
007,44 40 2
+
008, 40
?+3
009,44 40 3