Section 9: Branching and Looping 103
gi002
007,43,33,002
Transfers program execution to
line 002, so that the number of
payments to be amortized can be
recalled to the display before the
! instruction in line 003 is
executed.
fs
0.00
Sets calculator to Run mode.
(Display shown assumes no
results remain from previous
calculations.)
fCLEARG
0.00
Clears financial registers.
30gA
360.00
Enters n.
12.75gC
1.06
Enters i.
50000$
50,000.00
Enters PV.
gÂ
50,000.00
Sets payment to End.
P
–543.35
Calculates the monthly payment.
0n
0.00
Reset n to zero.
1
1.
Keys 1 into the display to
amortize monthly payments.
Ê
001, 44 0
Line 001: ?0.
1.00
Ê
002, 45 0
Line 002: :0. This is the
beginning of the first pass through
the loop.
1.00
Ê
003, 42 11
Line 003: f!.
–531.25
Portion of first month’s payment
applied to interest.
Ê
004, 43 31
Line 004: gu.
–531.25
Ê
005, 34
Line 005: ~.
–12.10
Portion of first month’s payment
applied to principal.
Ê
006, 43 31
Line 006: gu.
–12.10
Ê
007,43,33,002
Line 007: gi002. This is the
end of the first pass through the
loop.
–12.10
Keystrokes Display