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

¥

 

250 v

250.0000

48 v

48.0000

.005

0.005

´B

10,698.3049
(Repeat stack entries.)

 

´E

10,645.0795
Set to Run mode. Monthly payment.Payment periods (4 years × 12 months).Monthly interest rate as a decimal fraction.Deposit necessary for payments to be made in advance.

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 tinstruction.

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.