beautypg.com

Further information, Goto, Go to – HP 15c User Manual

Page 97

background image

Section 8: Program Branching and Controls

97

Now run the program to find the total amount needed in an account from
which you want to take $250/month for 48 months. Enter the periodic
interest rate as a decimal fraction, that is, 0.005 per month. First find the
sum needed if payments will be made at the beginning of the month
(payments in advance), then calculate the sum needed if payments will be
made at the end of the month (in arrears).

Keystrokes

Display

Set to Run mode.

250 v

250.0000

Monthly payment.

48 v

48.0000

Payment periods (4 years × 12
months).

.005

0.005

Monthly interest rate as a
decimal fraction.

´ B

10,698.3049 Deposit necessary for

payments to be made in
advance.

(Repeat stack entries.)

´ E

10,645.0795 Deposit necessary for payment to

be made in arrears. (The
difference between this deposit
and the tuition cost ($12,000)
represents interest earned on the
deposit!)

Further Information

Go to

In contrast to the nonprogrammable sequence t “ nnn, the
programmable sequence t label cannot be used to branch to a line
number, but only to program label (a line containing ´ b label).

*

Execution continues from the point of the new label, and does not return to
the original routine unless given another t instruction.

t label can also be used in Run mode (that is, from the keyboard) to
move to a labeled position in program memory. No execution occurs.

*

It is possible to branch under program control to a particular line number by using indirect addressing,

discussed in section 10.