46 Section 3: The Memory Stack, LAST X, and Data Storage
Use arithmetic with constants to calculate the remaining
balance of a $1000 loan after six payments of $100 each and
an interest rate of 1% (0.01) per payment period.
Procedure: Load the stack with (1 + i), where i = interest rate,
and key in the initial loan balance. Use the following formula
to find the new balance after each payment.
New Balance = ((Old Balance)×(1 + i)) - Payment
The first part of the key sequence would be:
For each payment, execute:
Balance after six payments: $446.32.
Divide the contents of R
5
by 25.
Subtract 2 from the contents of R
5
.
Multiply the contents of R
5
by 0.75.
Add 1.75 to the contents of R
5
.
Recall the contents of R
5
.