|
Section 4: Programming 271
|
|
Programming Label C : Difference Between Savings and Downpayment
|
|
Here we are looking for successive values of the difference between the label A and label B
calculations for each month.
|
|
The program has to start by recalling the initial Values for savings and downpayment so that the
difference for month 1, 2, 3, . . . etc. can be calculated. This means that we cannot press C
and get successive values for the difference. Therefore, a slightly different technique using
looping and R/S is used in the program.
|
|
1.
|
Switch to W/PRGM. Do not press fPRGM.
|
|
2.
|
As before, you should see 24, the code for RTN at the end of LBL B. You are ready to
enter the sequence below.
|
|
|
KEY ENTRY
|
CODE SHOWN
|
COMMENTS
|
LBL
|
23
|
|
C
|
13
|
|
RCL 1
|
34 01
|
Reset savings and
|
STO 2
|
33 02
|
dnpmt to
|
RCL 4
|
34 04
|
Initial conditions
|
STO 5
|
33 05
|
|
LBL
|
23
|
|
0
|
00
|
Return point
|
B
|
12
|
Calulate savings
|
A
|
11
|
Calculate dnpmt
|
–
|
51
|
difference
|
R/S
|
84
|
|
GTO
|
22
|
|
0
|
00
|
|
|
|
KEY ENTRY
|
CODE SHOWN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Savings – Dnpmt = Difference
|
|
|
|
|
|
|
|
|
|
|
|
|
Note that Label C first calls B to calculate the savings and then calls A to calculate the
downpayment before subtracting and stopping.
|
|
To operate:
|
|
3.
|
Switch to RUN.
|
|
4.
|
Follow the instructions below.
|
|
|
STEP
|
INSTRUCTIONS
|
INPUT DATA/UNITS
|
KEYS
|
OUTPUT DATA/UNITS
|
|
To see difference for month 1,
|
|
|
|
|
press [C]. To see successive
|
|
|
–1815.00
|
|
differences, repeatedly press
|
|
|
–1628.05
|
|
|
|
|
–1439.13
|
|
|
|
|
ETC.
|
|