HP (Hewlett-Packard) 12C#ABA Calculator User Manual


 
Section 8: Programming Basics 99
File name: hp 12c_user's guide_English_HDPMBF12E44 Page: 99 of 209
Printered Date: 2005/7/29 Dimension: 14.8 cm x 21 cm
Pressing the
gu
keys is not necessary when we do the calculations manually,
since in Run mode the result of every intermediate calculation is displayed
automatically; but we’ll include
u
instructions in the program so that the
intermediate results AMOUNT and TAX are automatically displayed when the
program is executed.
Keystrokes Display
6.75?0
6.75
Stores tax rate in R
0
.
fCLEAR²
0.00
Clears the registers in R
1
throu
g
h
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
.
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 Display
fs
00-
Sets calculator to Program
mode.
fCLEARÎ
00-
Clears program memory.
§
01- 20
gu
02- 43 31
Pauses to display AMOUNT.
?+1
03- 44 40 1
:0
04- 45 0
b
05- 25