46 Section 3: The Memory Stack, LAST X, and Data Storage
2.
Use arithmetic with constants to calculate the remaining
balance of a $1000 loan after six payments of $100 each and a
interest rate of 1% (0.01) per payment period.
Procedure: Load the stack with (1 + i), where i
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:
1.01 v v v 1000
For each payment, execute:
* 100 -
Balance after six payments: $446.32.
3. Store 100 in R
5
. Then:
5
Subtract 2 from the contents of R
5
Multiply the contents of R
5
Add 1.75 to the contents of R
5
5
Answer: 3.2500.
A possible keystroke solution is:
100 O 5
25 O ÷ 5
2 O - 5
0.75 O * 5
1.75 O + 5
l 5