EasyManua.ls Logo

HP 12c Platinum - Section 8 Programming Basics

HP 12c Platinum
213 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
108 Section 9: Branching and Looping
Keystrokes
(RPN mode)
Display
20000?0
20,000.00
Stores test value in register R
0
.
20?1
20.00
Stores 20% tax rate in register R
1
.
25?2
25.00
Stores 25% tax rate in register R
2
.
15000
15,000.
Keys income less than test value
into display and X-register.
Ê
001, 45 0
Line 001: :0.
20,000.00
Test value has been recalled to
X-register, moving income to
Y-register.
Ê
002, 34
Line 002: ~
15,000.00
Income has been placed in
X-register and test value has been
placed in Y-register.
Ê
003, 43 34
Line 003: go
15,000.00
Ê
004,43,33,007
Condition tested by o was
true, so program execution
continued with line 004:
gi007.
15,000.00
Ê
007, 45 1
Line 007: :1.
20.00
20% tax rate has been recalled to
X-register, moving income to Y-
register.
Ê
008, 25
Line 008: b.
3,000.00
20% of 15,000 = 3,000.
20000
20,000.
Keys income equal to test value
into display and X-register.
Ê
001, 45 0
Line 001: :0.
20,000.00
Test value has been recalled to X-
register, moving income to Y-
register.
Ê
002, 34
Line 002: ~.
20,000.00
Income has been placed in X-
register and test value has been
placed in Y-register.

Table of Contents

Other manuals for HP 12c Platinum

Related product manuals