Manual HP12C
Manual HP12C
HP- 12C
TRAINING GUIDE
A caciars
HP-12C
Training Guide
April 1984
00012-90022 Rev. B
Lewis Carroll
Contents
Introduction .
Chapter —_
: Getting Started . . 1-2
Index 164
Introduction
After reading through this training guide and working the examples it
contains, you will be able to:
* Do amortization schedules
We want you to feel comfortable with your HP-12C and we want to show
you how easy it is to use. So turn the page and let's begin.
Chapter 1
Getting Started
Preview
Relax, you cannot hurt the HP-12C, even by pressing improper key
seguences.
As you complete each of the following steps, check it off so that you
can easily find your place.
. To begin, press [ON]. If the display does not show 0.00, press [CLx]
and you'll be ready to begin.¥ (More about [CLx] later.) Pressing
[ON] again turns the calculator off.
. If you are not using the calculator, the HP-12C will automatically
turn itself off in about 10 minutes to save the batteries. But don't
worry - any information you have keyed into the calculator is saved in
its Continuous Memory. Simply press [ON] and continue.
- -
If you do not see two zeroes to the right of the decimal point press
and release the gold [f] key, and then press the 2 key. If a comma
is placed where the decimal point should be, turn the calculator off,
then press and hold down the [.] key while you press and release [ON].
1-2
Keying in Numbers
0 3. The keys on the right half of the keyboard are the digit entry and
arithmetic keys.
2RE R
W-E ——fi ,—DEPRECIAT\ON——‘
I LN) I
FRAC INTG
Arithmetic Keys
E@@@@;
HEWLETT-PACKARD
Figure 1
() 4. Key in the number 1234567.89, pressing the digit entry keys in the
same sequence that you would write the number on a piece of paper.
Don't forget to key in the decimal point. If you make a mistake
kKeying in this number, press [CLx] and try again.
1,234,567.89
Notice the commas which are now in the display. The HP-12C auto-
matically adds commas to make reading large numbers easy.
-1,234,567.89
1-3
0 8. Now clear the display by pressing [CLx] and see:
0.00
Clear X ([CLx]) clears only the display (also called the X-register).
There are several other clearing functions in the HP-12C which you
will learn about later.
Simple Arithmetic
Keystrokes Display
13 13.
[ENTER] 13.00
8 8.
0O11. The two numbers are separated by the [ENTER] key. After keying in
the first number, press [ENTER] to tell the calculator that you have
completed "entering" the number.
1-4
Keystrokes Display
Keystrokes Display
()16. Press the following keys to subtract 2 from the previous result.
Keystrokes Display
Once an answer has been calculated and is in the display, you can
perform another operation with this number by keying in the second
number and pressing the operation key.
0O17. Notice that you did not press [ENTER] to separate the second number
from the first. The reason is that the result of the prior calculation
is stored inside the calculator.
()18. The only time you must press the [ENTER] key to separate two numbers
is when you are keying them both in, one immediately following the
other.
1-56
()19. The HP-12C is designed so that each time you press an arithmetic
key ([+]1, [-1, [x], or [/1), the calculator performs the
operation immediately --- not later --- so that you see the result of
each calculation as it is performed.
Chain Calculations
()20. Suppose you've written three checks without updating your checkbook,
and you've just deposited your paycheck for $1057.30 into your
checking account. If your last balance was $107.45 and the checks were
written for $21.98, $30.24, and $9.16, what is the new balance?
Keystrokes Display
1-6
021. Now let's try a different type of calculation --- one which involves
multiplying groups of two numbers and then adding the results.
This type of calculation would be required to total an invoice that
lists several items with different quantities and different
prices. Consider the calculation of ( 3 x5 ) + (7 x 6 ). If you
were doing this calculation on paper, you would do the multiplication
in the first parentheses (:), then the multiplication in the second
parentheses 65, and then add the two results together for the final
result :
@ @
(3/x/5>+<7 %)
15 + L2
®
57
Keystrokes Display
13 + 19
Keystrokes Display
1-7
Storage Registers
()24. Numbers, or data, in the HP-12C are stored in memories called "storage
reglsters" or, simply, "registers." Four special registers are used for
storing numbers during calculations. (You have been using these
registers, called "stack registers," in the previous examples.)
()25. In addition to these registers, into which numbers are stored auto-
matically, up to 20 "data storage registers" are available for you to
store numbers. These data storage registers are designated Register
0 (RO) through Register 9 (R9) and Register .0 (R.0) through Register
.9 (R.9). Store ([STO]) and recall ([RCL]) will be used to access
these storage registers.
/x /T A/ EEX
;
X =lFrac INTG ons DMY) MDV; \w) /
LEAR———|
P/R PRGM REG PREFIX
B kse =
HEWLETT-PACKARD
- @G WL | )
Keystrokes Display
146 146.
1-8
To store a number showing in the display into a data storage register:
()29. A single storage register can be cleared by storing zero in it. For
example, clear register 5.
Keystrokes Display
()30. All registers may be cleared at one time. Press the gold [f] key then
release it. Next press [CLx] and release it. These keystrokes are
normally written [f] CLEAR [REG]. The word CLEAR in gold above the
five bracketed keys means that when the gold [f] key is pressed (and
released) before one of the bracketed keys is pressed, the indicated
registers (or PREFIX) --- printed in gold above each key --- are (is)
cleared.
1-9
32 100 ” (@]
12Cc]
INT V RND R
- LN FHAC INTG =3 B
A DVS D.MY M.DY JJ A\‘W) /)y
PRGMHNREG
2 PREHX
g reslosne
—
HEWLETT-PACKARD
o o d
Figure 3
0.00
Notice that you cleared all of the registers, including the stack
registers (see step 24). Since the display is one of the four stack
registers, the contents of the display, 321.00, was cleared, leaving
0.00.
Alternate Functions
()32. This is probably the first time that you have used [f] --- a prefix key.
Many keys on the HP-12C perform two or three different functions. The
main function of a key is printed in white on the face of the key.
The alternate (or shifted) functions of a key are printed in gold above
the key and in blue on the lower face of the key. These alternate
(shifted) functions are specified by pressing and releasing the appro-
priate prefix key (either the gold [f] key or the blue [g] key) before
pressing the function key.
* To specify the function in gold,
press and release the gold prefix key
([f]) before the function key.
0.00
()34. If you press the [f] or [g] prefix key by mistake, you can easily
cancel it by using the clear prefix function. Press [f] CLEAR [PREFIX]
and first see:
0000000000
0.00
What you saw briefly was the complete contents of the display, all ten
digits. This is useful in some work, but you won't be using this
feature in this course. If you're curious to learn more about this ten
digit display, see Mantissa Display Format in Section 5 of your HP-12C
Owner's Handbook and Problem-Solving Guide.
1-11
Chapter 1 Summary
¥ The digit entry Keys are used to key in numbers just as you would write
them down. Reference: Page 1-3, steps 3-4.
¥ The results of prior calculations are stored inside the calculator and
do not have to be re-entered. Reference: Page 1-5, steps 17-18.
¥ [STO]: Numbers are stored in storage registers with the [STO] key.
Reference: Page 1-8, steps 24-27.
¥ [RCL]: Numbers are recalled from storage registers with the [RCL] key.
Reference: Page 1-9, steps 28-29.
* The [f] and [g] prefix keys are used to access the alternate (shifted)
functions on the HP-12C. Reference: Page 1-10, step 32.
Review Test for Chapter 1
The answers are on Page 1-15, immediately following this review test.
All of the review tests are intended to help you learn, not to find out
whether you pass or fail. Make a good effort to solve each problem.
If you get lost, relax. Check the answer, and if the solution does not
seem clear to you, review the referenced step(s) in the chapter and try
the problem again. Make an effort to understand the material in each
chapter before proceeding. Each new chapter builds on the material
presented before, so the more comfortable you feel about each chapter's
material, the easier the next chapter will be.
Keystrokes Display
Keystrokes Display
Keystrokes Display
4, Now show the keystrokes to divide the previous result by 4.
Keystrokes Display
Keystrokes Display
Keystrokes Display
Keystrokes Display
Answers to Review Test for Chapter 1
13 [-] -21.00
[RCL] 1 11.72
1-156
[x] 41.00
[RCL] 2 7.30
(/1 5.62
NOTES
Chapter 2
Preview
() 1. The HP-12C has three keys for solving percentage problems: [%]
(percent), [ A%] (percent difference) and [%T] (percent of total).
AMORT
[
INT NPV RN
e
IIIII
WP e
PRICE YTM
DEPRECIATION —\
DATE BEG END )] MEM
EEas
CLEAI L
PRGMFIN REG REFIX
mEe) eeEEs
fi@@@@
HEWLETT-PACKARD
Figure 5
Percent
() 2. Find 6% of $250.00.
Keystrokes Display
2. Press [ENTER].
4, Press [%].
Notice that, as with the arithmetic operations, the function happens
immediately when you press the [%] key.
Keystrokes Display
Example: You are buying a new car which lists for $10,148.00. If
the dealer offers you a 9% discount, how much is the car?
Keystrokes Display
Percent Difference
0O 7. Yesterday the price of your stock fell from 46 1/2 to 43 per share.
What is the percentage change?
Keystrokes Display
2. Press [ENTER] to separate the second number from the base number.
4, Press [ a%].
If the second number is greater than the base number, the percent
difference will be positive. If the second number is less than the
base number, the percent difference will be negative. Thus a positive
answer indicates an increase, while a negative answer indicates a
decrease. (This guideline applies when both numbers are POSITIVE.)
2-20
Keystrokes Display
Percent of Total
()10. To purchase that $62,000 lakefront cabin that you've had your eyes on,
a $15,500 down payment is required. What percentage of the price does
your down payment represent?
Keystrokes Display
2. Press [ENTER] to separate the total number from the next number.
4, Press [%T].
013. Now here's another percentage problem where the total number must be
calculated.
2-21
Europe?
Keystrokes Display
3. Press [%T].
015. To calculate what percent of the total sales in the preceding example
occurred in the U.S. and what percent occurred in the rest of the
world:
Keystrokes: Display:
2-22
()16. The HP-12C "remembers" in the Y-register* the total amount after a
percent of total is calculated. To calculate what percentage another
amount is of the total:
Keystrokes Display
The number in the Y-register is the number that was keyed in first in
a two-number operation. For example, 3 [ENTER] 4 would place 3 in the
Y-register and 4 in the X-register (the display). For more information
on the stack registers see Appendix A in the HP-12C Owner's Handbook
and Problem-Solving Guide.
2-23
Calendar Functions
()18. The HP-12C has two keys which perform calendar functions:
[g] [ ADYS] (number of days between dates) and [g] [DATE] (a date
that 1s in the future or past), and two keys to set the calendar
format: [g] [M.DY] (month, day, year) and [g] [D.MY] (day, month, year)
‘ 6052 ] )
Q!mEMNQEEI
ORT INT
T11: = 5PRGMFINREG
FRAC
PREFIX
INTG o
DYS D MY T
‘; STOJ RCLJ X ) s ) 25
=— )
HEWLETT PACKARD
Figure 6
()19. Set the HP-12C to day, month, year format by pressing [gl, releasing,
then pressing [4]. This activates the blue D.MY function on the U4 key.
D.MY will appear in the display.
60.52
D.MY
()20. Now set the HP-12C to month, day, year format by pressing [gl,
releasing, then pressing [5]. D.MY will disappear from the display.
Notice that M.DY does not appear. If you see D.MY in the display,
the HP-12C is in day, month, year mode. If you do not see D.MY in
the display, the HP-12C is in month, day, year mode.
021, From here on, whenever a prefix key is used in a keystroke sequence,
it will be shown like this: [g]l[M.DY] or [g][D.MY] or [f] CLEAR [REG].
Remember that the prefix key ([f] or [gl]) is always pressed, then
released, before the next key is pressed.
2-24
Number of Days Between Dates
()22. How many days were there between September 5, 1981 and December 25, 19817
Keystrokes Display
Date Format
2-25
key in a date in day, month, year (DD.MMYYYY) format:
Key in the two digits of the month. (If the month is one digit, be
sure to key in a zero first; i.e., for 14 March 1980, key in
14.031980).
Keystrokes Display
2. Key in the earlier date (in the chosen calendar format) and press
[ENTER].
3. Key in the later date (in the chosen calendar format) and press
[g]ll ADYS]. The displayed result is the actual number of days.
()26. How many days (on an actual day basis) were there between October 14,
1981 and March 21, 1982 (month, day, year format)?
2-26
Keystrokes Display
Keystrokes Display
()28. To determine the date and day that is a specified number of days
from a given date:
2. Key in the given date (in the chosen calendar format) and press
[ENTER].
2-27
4. If the other date is in the past, press [CHS].
The digit at the right of the displayed answer indicates the day of
the week: 1 for Monday through 7 for Sunday.
()29. Example: A 182-day money market certificate matures on March 22, 1982.
On what date was it purchased?
Keystrokes Display
2-28
Chapter 2 Summary
[g] [DATE] determines the date that is a specified number of days from a
given date.
Reference: Pages 2-27 - 2-28, steps 27-29.
2-29
Review Test for Chapter 2
The answers are on Page 2-32, immediately following this review test.
Keystrokes Display
Keystrokes Display
3. If your rent jumps from $280 to $325 per month, what percent is the
increase?
Keystrokes Display
2-30
4, You own Coakley Laboratories stock worth $470, Idylwild Aircraft
stock worth $1620, and Burley Industries stock worth $2250. What
percent of the total value of your portfolio does each stock represent?
Keystrokes Display
5. How many days are there between November 13, 1981 and April 7, 1983?
Keystrokes Display
Keystrokes Display
2-31
Answers to Review Test for Chapter 2
3 [%] 10.32
[+] 354.32
[CLx] 0.00
[CLx] 0.00
2-32
Keystrokes Display Reference
2-33
Chapter 3
Preview
# Learn about the cash flow diagram and the cash flow sign convention.
1. Simple interest
or
2. Compound interest
Simple Interest
() 2. Example: If you borrow $500 for two years at fifteen percent annual
simple interest, how much interest would you pay?
Keystrokes Display
3-34
2 [x] 150.00 The total amount of interest
is calculated.
() 3. If you borrow the money for only 4 months, how much interest would
you pay?
Since the time (4 months) is less than 1 year, only a portion of the
yearly interest would be due. The amount of interest would be:
Keystrokes Display
Compound Interest
() 6. There are five quantities or variables which have become standards for
describing most compound interest problems.
3-35
H 25.00 J (@]
AMORT INT NP\/ RND IR
t£} 12 F DA
E )l BEG END) MEM
FRA IN
G ADS DMY) M
V
flw@mm e
P/R ZPRGM FIN REG
PREFIX
mooEE FEET
HEWLETT-PACKARD
T B R | )
Figure 7
() 8. Press [f], release, then press [x<{>y] to clear the financial registers.
This does not clear the display, so you should still see the result
from the previous example:
25.00
The diagram begins with a horizontal line called the time line.
It represents the term of a financial problem and is divided into a
number (n) of compounding periods of equal length.
1 2 n-1 n
Figure 8
3-36
()10. A financial problem that covers a 6 month period would be diagrammed
as follows:
Figure 9
T
Money received Money paid out
Figure 10
()12. A single cash flow at the start of the time line is called the
present value (PV). A similar single cash flow at the end of the
time line is called the future value (FV).
Fv
| | | ] I
Figure 11
()13. Payment (PMT) represents a series of cash exchanges of the same sign
(direction) and amount. In the standard cash flow diagram, there is
one payment per compounding period. The number of payments is the
same as the number of compounding periods. The payments can occur
either at the beginning of the period (BEG) or at the end of the
period (END).
BEGin Payment END Payment
3-37
is always necessary to specify whether the payment is at the BEGinning
of the period or at the END of the period. This will be noted in the
examples as (BEG) or (END).
A INT N
I [ Co
DEPRECIAT\ON
DATE T 2=
OED.
PRICE
I
P/R
LN)
'— f——————————
PRGM FIN REG_
II . I
FRAC
PREFIX
INTG ADYS D.MY WARD i~
) fe
on [NIER R 31 RCL
3 a
HEWLETT-PACKARD
Figure 13
(015. The HP-12C can be set to solve either kind of compound interest
problem. The keys used for this are shown in Figure 13.
(16. Set the HP-12C in the BEGin mode by pressing [g][BEG]. BEGIN will
then appear in the bottom of the display:
25.00
BEGIN
0O17. Now set the HP-12C in the END mode by pressing [g][END]. BEGIN will
disappear from the display. Notice that END does not appear. If you
see BEGIN in the display, the HP-12C is in the BEGin mode. If you do
not see BEGIN in the display, the HP-12C is in the END mode.
()18. The fifth variable (i) is the compound interest rate per period. In
the HP-12C, this interest rate is always entered and displayed as a
percent.
3-38
and the first payment is made 1 month after the exchange of the
initial loan amount (payments occur at the END of each period). Draw
the cash flow diagram to depict the transaction from the viewpoint of
the borrower.
Figure 14
From the lender's point of view of the above problem, the cash flow
diagram would look like this:
i=13.8/12=1.15%
PMT=$584.53
1 2
1]
358 359 360
Figure 15
3-39
FV="? (FV=%$2, 508.54)
PMT=$-300 n=4
PV=$-1000
Figure 16
0O2z2. When using the cash flow diagram and the cash flow sign convention
to format compound interest problems, the following rules always
apply:
()23. The cash flow diagram can be used to describe many variations of
compound interest problems. Although the terminology used to
describe a particular cash transaction may vary from industry to
industry, the cash flow diagram is the same. In providing a
means of describing financial problems without using terminology
specific to a particular industry, the cash flow diagram becomes,
in a sense, a universal language.
()au. Six variations of the basic diagram are presented on the next page.
Under each diagram is listed a number of the more common terms used
to describe the represented cash exchange. Note that diagrams
involving payments may be represented with payments at the BEGinning
of the period or at the END of the period. And, the diagrams can
represent either the lender's or the borrower's point of view.
3-40
BEGin
Saver's Viewpoint Saver's Viewpoint
Compound Growth
T T ]
Pension Fund
Savings Account
Appreciation Annuity Due
END
T Borrower's Viewpoint END
Lender's
Viewpoint
L
Mortgage Mortgage w/Balloon
Direct Reduction Loan Amortization
Amortization Ordinary Annuity
Ordinary Annuity
BEGin
| L]
Borrower's Viewpoint BEGin
Lender's
Viewpoint
Lo |
Lease Lease w/Buyback (Residual)
Amortization Amortization
Annuity Due Annuity Due
Figure 17
3-41
()25. Solving a financial problem on the HP-12C is basically a matter of
keying in the quantities identified in the cash flow diagram using
the corresponding keys, and then calculating the unknown quantity by
pressing the corresponding key. Several examples which demonstrate
this technique follow. Remember from step 6 the definitions of the
five financial variables:
$60, 000
T i=15/12%
11 21 al laselssglssol
PMT="? n=30 x 12
Figure 18
Keystrokes Display
3-42
[n] 360.00 The total number of payments
is stored.
()27. Example: In the previous example, if the borrower could only afford
to pay $740 each month, how much could he borrow?
i=15/12%
R PMT=$-740.00
358 l 358 l 360
n=30
l
x 12
Figure 19
Keystrokes Display
3-43
()28. A house purchased 3 years ago for $48,000 is sold for $65,500.
What yearly compounded appreciation rate does this represent?
$65, 500
=2 T
|
| |
1 2 3
n=3
PMT=0
$-48, 000
Figure 20
Keystrokes Display
3-44
()29. If the house in the previous example were to appreciate 12% each year,
how much would it be worth today?
$-48, 000
Figure 21
Keystrokes Display
Fv=$620, 000
i=16%
PMT=$21, 400
[ T 1]
Figure 22
3-45
Keystrokes Display
()31, If the condominiums are purchased for $355,000, what is the annual
yield?
=7 FV=$620, 000
PMT=%$21, 400
PV=$-355, 000
Figure 23
* Since the display does not show "BEGIN", it is not necessary to press
[g][END]. However, to help you develop the habit of thinking about
the payment mode each time you solve a financial problem, the payment
mode keystroke will always be shown even though it may not be needed.
One of the most common errors that people make when attempting to
solve financial problems is using the wrong payment mode.
3-46
Keystrokes Display
Keystrokes Display
Cash flows must be entered using the cash flow sign convention ---
money received is positive and money paid out is negative.
3-47
1=17.25% Fv="?
PMT=%$21, 400
1
LT 1] 2 3 4 5
n=5
$-355, 000
Figure 24
Keystrokes Display
1. To calculate and store the number of months (n), key the number of
years into the display and press [g] [12x].
2. To calculate and store the monthly interest (i), key the annual
interest rate into the display and press [g] [12/].
6358 i3.03
X
1 \2— CFO PM
CF FV
- .
DATE l BEG .
END .
sy .
DEPRECIAT!ON
PRICE YTM
. EpEEEREE
seindjjeasse
- ) FRAC INTG ADYS D.MY M.DY )] LR
[—CLEAR%
P/R PRGM FIN REG PREFIX
S TS T N B Sa @IS G
o zzlosas
) |
HEWLETT-PACKARD
] - - ) TE3 @ - == - p
Figure 25
3-48
These keys not only multiply or divide the displayed number by 12,
but they also automatically store the result in the corresponding
register.
1 2 347 348
PMT="? n=28x12
Figure 26
Keystrokes Display
()35. Suppose that the annual interest rate is increased to 14.6%. What is
the new payment amount?
3-49
PV=$51, 000 i=14.6/12%
PMT="? n=348
Figure 27
Keystrokes Display
()36. What is the balance on the previous mortgage at the end of 5 years?
(What is the amount to be paid, IN ADDITION TO THE MONTHLY PAYMENT, to
pay off the mortgage at the end of year 57?)
1 2 | 58 60
n=5x12
PMT $-629.87
Fv="?
Figure 28
Keystrokes Display
()37. How much money must you set aside in a savings account each quarter in
order to accumulate $4000 in five years? The account compounds
quarterly with an annual interest rate of 6% and deposits "BEGin"
immediately.
3-50
Fv=%$4, 000
i=6/4%
l 1 l 2 l l 19 l 20
PMT="?
Figure 29
Keystrokes Display
()38. In the previous example, what interest rate did the bank pay if the
actual amount at the end of the five years was $4,025.50?
FV=%$4, 025.50
T PMT=$-170.43
Figure 30
3-51
Keystrokes Display
()39. If you increase the deposits to $200 each quarter, how long will it
take to accumulate $4200? To do this example as shown, steps 37 and 38
must be calculated immediately preceding step 39.
FV=$4200
i=6.23/4%
e PMT=$-200
Figure 31
Keystrokes Display
Simple Interest
()40. The financial keys ([n], [i], [PV], [PMT], [FV]) are also used for
entering information in a simple interest problem. The HP-12C simulta-
neously calculates simple interest on both a 360-day basis and a
365-day basis with the [f][INT] key.
3-52
AMORT INT N RND
I
Iir2. 8 [ria CFU) CFZReEa
DEPRECIAT\ON——|
DATE EED END ] S
LN IaEEa
FRAC AN ADVS D.MY )l M DY )
@i
—
P/R PRGM FIN REG PREFIX
Booms
HEWLETT:-PACKARD
dLSTx) xP s ) B
F§+J )
Figure 32
O41. Example: Your friend needs a loan and has requested that you lend
him $650 for 60 days. If you lend him the money at 14% simple
interest, to be calculated on a 360-day basis, how much will he owe
you?
Keystrokes Display
0Ou2. The following keystrokes can be used to find the amount of simple
interest. In this case, it makes no difference whether the HP-12C
is in BEGin or END mode.
3-53
1. Press [f] CLEAR [FIN].
3 . Key in the annual interest rate (as a percent) and press [i].
()u3. Example: How much interest is due on a 90-day note for $850 at 15%
simple interest, figured on a 365-day basis? What is the total
amount owed?
Keystrokes Display
3-54
Chapter 3 Summary
* [n] is the total number of payment periods. Reference: Page 3-35,
step 6.
[i] is the interest rate each period. Reference: Page 3-35, step 6.
[f] CLEAR [FIN] clears the financial registers. Reference: Page 3-36,
step 7.
[g] [END] means that payments are made at the end of the payment
period. Reference: Page 3-37, step 13.
[g] [BEG] means that payments are made at the beginning of the payment
period. Reference: Page 3-37, step 13.
[g] [12x] multiplies the number in the display by 12 and stores the
result in [n]. Reference: Page 3-48, step 33.
[g] [12/] divides the number in the display by 12 and stores the result
in [i]. Reference: Page 3-48, step 33.
[f] [INT] calculates the amount of simple interest.
Reference: Pages 3-52 - 3-54, steps 40-43.
3-55
Review Test for Chapter 3
The answers are on Page 3-58, immediately following this review test.
Keystrokes Display
Keystrokes Display
Keystrokes Display
Keystrokes Display
3-56
5. What quarterly interest rate is necessary for you to double your funds
in 8 years?
Keystrokes Display
Keystrokes Display
7. How much simple interest will you receive on a 90-day, $10,000 note at
11%? Assume a 360-day year.
Keystrokes Display
3-57
Answers to Review Test for Chapter 3
[g] [END]
30 [g] [12x] 360.00
13.5 [g] [12/] 1.13
[PMT] -592.44
[FV] -49,215.41
3-58
Keystrokes Display Reference
(g] [BEG]
1 [g] [12x] 12.00
6.5 [g] [12/] 0.54
100 [CHS] [PMT] -100.00
[FV] 1,243.10
90 [n] 90.00
11 [i] 11.00
10000 [CHS] [PV] -10,000.00
[f] [INT] 275.00
3-59
Chapter 4
Preview
* Do an amortization schedule.
Amortization Schedules
The interest is paid first, and then the remainder of the payment
is used to reduce the debt. As the debt (or remaining balance) is
reduced with each payment, so is the amount of interest to be paid.
With a smaller portion of each payment being deducted for interest,
the amount remaining to pay off the balance increases.
The breakdown of each payment into the interest portion and the
principal reduction portion is called an amortization schedule. The
word amortization comes from the French "a mort" meaning "at the
point of death." Likewise, you are "killing" a loan by paying it
off.
4-60
Payment
Amount
Principal Portion
of Payment
Interest Portion
of Payment
1 2 3 N
Figure 33
() 5. The HP-12C enables you to calculate the amounts applied to the reduc-
tion of principal and to the interest, as well as the remaining balance
on the loan after the payment has been made, using the [f][AMORT]
function.
3
(12C])
EREEENESS
AMORT INT NPV RND IRR
EEEpEEERE
DEPRECIAUON
PRICE
YTl LI
LN L INTG ADYS D.MY M.DY X wW )
B reelcome
HEWLETT-PACKARD
) ) b 4 R ) @ @&TN
Figure 34
() 6. Example: For a house you are about to buy, you can obtain a 29-year
4-61
mortgage for $61,000 at 14.5% annual interest. The monthly payment
is made at the end of the month. Find the amounts that would be
applied to interest and to principal for each of the first two payments.
Keystrokes Display
() 7. What is the remaining balance on the loan after the first two payments?
Keystrokes Display
4-62
Keystrokes Display
Notice that you can recall the numbers stored in the financial
registers using [RCL] just as you can recall numbers stored in any
other register. Remember, when you recall a number stored in a
register, the number in the register is unchanged. [RCL] simply copies
the number from the register into the display.
7. Press 0 [n].
8. Key in the number of payments to be amortized.
10. Press [x<>y] to display the amount applied to principal from those
payments.
11. To display the remaining balance on the loan, press [RCL] [PV].
12. To display the total number of payments amortized, press [RCL] [n].
O11. For tax purposes, you would like to know how much interest you will
pay during your first year (12 payments) of home ownership. You have
a 29 year, $56,300 mortgage at 14.2%.
Keystrokes Display
4-63
14.2 [g] [12/] 1.18 The monthly interest rate
is calculated and stored.
()13. How much interest would be paid during the second year (the next 12
months)?
Keystrokes Display
4-64
H -196 348 i D)
Bm ==
AMORT _INT NPV RND IRR
EEEES
P/R PRGMFIN REG PREFIX
=PSE
Es EEED
BST
- espat--T-]
GTO & <v E2 o
X 5 - D
HEWLETT-PACKARD
Figure 35
015. To this point you have been working problems involving only even cash
flow series (except for the initial cash flow (PV) and the final cash
flow (FV), each payment amount is the same). NPV and IRR enable you to
analyze financial problems involving UNEVEN cash flows occurring at
REGULAR intervals. Problems involving even or uneven cash flows
occurring at irregular intervals are not covered in this guide. As in
compound interest calculations, the interval between cash flows can be
any time period.
(16. Assuming a minimum desired yield (financial objective), the net present
value method finds the present value of the future cash flows
and adds this value to the initial investment (the cash flow sign
convention is used).
0O17. If this net present value is greater than zero, the transaction meets
your financial objectives. If the net present value is less than zero,
the investment is not attractive.
4-65
Year Cash Flow
0 -70,000
2 8,100
3 16,600
107, 500
16, 600
Figure 36
4-66
Keystrokes Display
70000 [CHS]
[g] [CFol -70,000.00 The initial investment is
stored.
3500 [CHS]
[g] [CFj] -3,500.00
()20. The j in [CFj] means any cash flow except the initial investment. The
initial investment (cash flow zero) is stored by pressing [g] [CFol.
When you store the first cash flow, you can think of j taking the value
1. When you store the second cash flow, j takes the value 2, and so on.
It turns out that these numbers, 0, 1, 2 and so on, have a very
straight-forward meaning. They simply refer to the storage registers
into which the dollar amounts are automatically stored by the HP-12C.
Perform the following keystrokes to confirm this.
4-67
0O22. Knowing where your cash flows are stored makes it easy to check the
accuracy of your entries and to correct any that are wrong. For
instance, in the example above, if 7100 had been entered incorrectly
as the second cash flow, the keystrokes 8100 [STO] 2 would correct
your mistake.
()25. The number of consecutive times each cash flow occurs is designated
Nj, corresponding to cash flow amount CFj, and is entered using the
[g]INj] key. Here is how the previous problem is solved:
Keystrokes Display
70000 [CHS]
[g] [CFo] -70,000.00 The initial investment is
stored.
4-68
1000 [CHS]
(gl [CFj] -1,000.00 The first cash flow is stored.
Since the final NPV is positive, the investment meets the 15%
objective.
()26. In summary, to enter the amounts of the cash flows and the number
of times they occur:
If the amount entered in step 4 occurs more than once, key in the
number of those cash flows and press [g] [Njl. If [g] [Nj] is
not pressed, the calculator assumes that Nj is 1 for the CFj just
entered.
6. Repeat steps 4 and 5 until all cash flows have been entered.
0er. With the amounts of the cash flows stored in the calculator, you
can calculate NPV as follows:
4-69
1. Enter the periodic interest rate using [i] or [g] [12/].
0 -87,000 1
3,500 8
3,000 12
N
2,500 y
w
from sale of
property)
Keystrokes Display
87000 [CHS]
4-70
17 [ENTER] 4 [/] 4,25
[i] 4,25 The quarterly interest rate is
calculated and stored.
Since the NPV is negative, the investment does not meet the 17%
objective.
()29. The internal rate of return -- the IRR -- is the rate for which the
NPV equals zero. Rather than comparing the NPV's of alternative
investment possibilities, you may want to compare their rates
of return -- that is, their IRR's -- or you may want to determine the
IRR of a single investment plan. (IRR assumes that all cash flows
are re-invested at the internal rate of return.)
Keystrokes Display
()31. The calculator may take several seconds or even minutes to produce
an answer for IRR. This is because the mathematical calculations
for finding IRR are extremely complex, involving a series of
successive calculations.
1. Enter the cash flows using the method described in step 26. The
cash flow sequence must contain at least one sign change. In other
words, if the first several cash flows are negative, and they are
followed by all positive values, that counts as one sign change.
Cash flows with multiple sign changes may have multiple answers.
4-71
The calculated answer is the periodic rate of return. If the cash
flow periods are other than annual (for instance monthly or quarterly)
the answer should be multiplied by the number of periods per year to
determine the nominal annual internal rate of return, also called the
annual percentage rate or APR.¥
1 -2,500
2 -3,000
4 -4,000
5 25,000
Keystrokes Display
2000 [CHS]
(gl [CFo] -2,000.00
2500 [CHS]
(gl [CFj] -2,500.00
3000 [CHS]
(gl [CFjl -3,000.00 The cash flows are stored.
3500 [CHS]
(gl [CFj] -3,500.00
4000 [CHS]
(gl [CFj] -4,000.00
4-72
25000 [glICFj] 25,000.00 The final cash flow is stored.
Since the cash flows occur annually, the result is both the nominal
interest rate (the APR) and the effective interest rate.
4-73
Chapter 4 Summary
* [f] [AMORT] calculates the amount of interest and principal for each
payment. Reference: Pages 4-61 - 4-63, steps 5-10.
[g] [Nj] is used to enter the number of times each cash flow occurs.
Reference: Page 4-68, step 25.
4-74
Review Test for Chapter 4
The answers are on Page 4-77, immediately following this review test.
Keystrokes Display
Keystrokes Display
You have an opportunity to purchase a duplex for $80,000 and would like
at least a 13% return. You expect to keep the duplex for 5 years and
then sell it for $125,000. Assuming the following yearly cash flows,
calculate the NPV to determine whether the investment meets your profit
objective of a 13% return.
4-75
Year (j) Cash Flow (CFj)
0 -80,000
1 =500
2 4,500
3 5,500
Y 4,500
5 5,000 + 125,000 (property sold)
Keystrokes Display
Keystrokes Display
4-76
Answers to Review Test for Chapter 4
(gl [END]
80000 [PV] 80,000.00
[x<>y] -16.33
1 [f] [AMORT] -899.82
[xOy] -16.51
[RCL] [PV] 79,967.16
[x<Oy] -1,694.17
[RCL] [PV] 21,772.24
4-77
3. Keystrokes Display Reference
13 [i] 13.00
4-78
NOTES
4-79
Chapter 5
Depreciation Calculations
Preview
. Straight-line.
. Sum-of-the-years-digits.
. Declining balance.
() 3. The HP-12C has keys for the three most common arithmetic formula
depreciation methods: straight-line ([SL]), sum-of-the-years-digits
([S0YD]) and declining-balance ([DBJ]).*
)Ira
‘1 /x [
/T FRAC
A/ INTG ADVS
EEX DMV) /MDY
. R -
.
o
R———————————
P/R PRGM FIN REG PREFIX
S TN TS RN EEN
B reslesEs
- _
HEWLETT-PACKARD
4 ) ) 2 G N B | b
Figure 37
% The depreciation keys do not meet the requirements of the Federal tax
policy in effect in 1982, which dictates that tables published by the
IRS are to be used to determine deductions for tax purposes.
5-80
() 4. Sum-of-the-years-digits and declining-balance are methods of
accelerated depreciation whereby higher annual amounts of depreciation
are charged during the early years of an asset's life than with the
straight-line depreciation method, reflecting the fact that many
assets decline in value most during the early part of their lives.
() 5. When the annual amount of depreciation for each of the three methods
is plotted versus time, the graph looks like this:
SOYD
Annual SL
Depreciation
in $
DB
(200%)
| ] ] | ] ]
T 1 I I T 1
Years
Figure 38
Keystrokes Display
5-81
[x<>y] 118,125.00 The remaining depreciable
value after the first year is
displayed.
Keystrokes Display
The HP-12C enables you to calculate the amount of depreciation and the
remaining depreciable value (book value minus salvage value) for three
depreciation methods. Use the following procedures:
2. Key in the original cost of the asset and press [PV]. (The cash
flow sign convention is not observed.)
3. Key in the salvage value of the asset and press [FV]. If the
salvage value is zero, press 0 [FV].
4. Key in the expected useful life of the asset in years and press
[n].
T. Press:
5-82
¥ [f] [SOYD] for sum-of-the-years-digits depreciation.
¥ [f] [DB] for declining-balance depreciation.
Keystrokes Display
5-83
[x<Oy] 7,200.00 The remaining depreciable
value.
(10. Now calculate a 5-year straight-line depreciation schedule for the same
computer system.
Keystrokes Display
5-84
Keystrokes Display
5-85
Chapter 5 Summary
5-86
Review Test for Chapter 5
The answers are on Page 5-88, immediately following this review test.
Keystrokes Display
5-87
Answers to Review Test for Chapter 5
5-88
NOTES
5-89
Chapter 6
Bond Calculations
Preview
() 1. The HP-12C has two keys dedicated to bond calculations: [PRICE] (price)
and [YTM] (yield to maturity).
AMORT
L
_INT NPV
z
II
iR
PR!CE YTM
e I I=2
DEPRECIAT\ON
DATE ) BEG END MEM
I 2aas
FRAC INTG A DYS D
MY ) M.DY )}
CREnajEess
AR———————————
F'RGM FIN REG PREFIX
g reclissas
HEWLETT-PACKARD
Figure 39
() 3. When you purchase a bond, you are buying the right to receive a
number of future cash flows.
6-90
() 6. The redemption value of a bond is assumed to be 100% of $1000.
i=14.5/2%
PMT=%$72.50
[ [ ]
PV=$-1000
Figure 40
() 8. However, unlike the previous example, most bonds are not purchased
on an interest or coupon payment date. When a bond is purchased
between coupon dates, a portion of the next coupon is paid to the
seller of the bond.
6-91
()10. The generalized bond cash flow diagram looks like this:
FV=Redemption value
PMT=Coupon/2
Settlement |
Date i T
1
[ 1 2 3 n
Y
PV=Purchase
price
Figure 41
()11. All bond calculations on the HP-12C assume an actual calendar year.
Bonds of this type include U.S. Treasury Bonds and Notes, Treasury
Certificates of Indebtedness, and FHA Debentures. Bonds based on a
360-day calendar year (corporate bonds, municipal bonds, etc.) must
be evaluated using a program (see Section 16 of the HP-12C Owner's
Handbook and Problem-Solving Guide).
()12. Example: What price should you pay on January 12, 1982 for a 13 3/4%
bond that matures on June 1, 1996, if you desire a yield of 14 1/2%?
Keystrokes Display
6-92
1.121982 [ENTER] 1.12 The settlement date is
entered. ¥
Key in the annual coupon rate (as a percentage) and press [PMT].
. Press [+] to add the interest to the price and determine the total
price to be paid.
()14, Given the following U.S. Treasury Bond, find its total price (including
accrued interest):
¥ Remember from Chapter 2 (step 22) that although the entire number is
stored in the calculator, it is displayed with only 2 decimal places.
6-93
Keystrokes Display
0O15. The market is quoting 96 3/8 for the bond described in the preceding
example. What yield will that provide?
Keystrokes Display
1. Key in the quoted price (as a percent of 100) and press [PV].
6-94
4, Key in the maturity (redemption) date in the format MM.DDYYYY.
running
Keystrokes Display
6-95
Chapter 6 Summary
* A bond pays coupons every 6 months for a pre-determined period of
time, and pays 100 (100% of $1000) at the maturity date.
Reference: Pages 6-90 - 6-91, steps 2-3, 5-6.
[f] [PRICE] determines the price of a bond and the amount of accrued
interest. Reference: Pages 6-92 - 6-93, steps 12-14.
6-96
Review Test for Chapter 6
The answers are on Page 6-98, immediately following this review test.
Keystrokes Display
Keystrokes Display
6-97
Answers to Review Test for Chapter 6
9.281981 [ENTER]
6.011995 [f] [YTM] 16.68 Percent yield to maturity.
6-98
NOTES
6-99
Chapter 7
What is a Program?
Preview
() 2. When you need to repeat the same sequence of keystrokes several times,
a program could save you a great deal of time.
Instead of pressing all the keys each time, you only need to press one
Key to start the program --- the calculator does the rest.
The HP-12C has three keys which are necessary to key in and run a
program: [f1[P/R] (to set the calculator to program mode or run mode),
[f] CLEAR [PRGM] (to clear program memory), and [R/S] (to run (start)
and stop a program).
l \
lNT
PV PM FVJ CHS
12x» 12— SIS HEG\ ”END“; ”MEM’ ”
IE!H!EI
DEPRECIAT{ON——j
PRICE YTM
rECES 2
PRGM FIN REG
PREF]X
O reElesEEs
HEWLETT-PACKARD
7-100
() 5. Example: An office supply dealer is selling selected stock at 25% off.
An additional $5 handling charge is to be added to each transaction.
Create a program which calculates the net cost of an item after the
discount is subtracted and the handling charge is added.
First, write down the steps to manually calculate the net cost of an
item listing for $300 (this will also serve as a check solution after
the program is written).
Keystrokes Display
Next, set the calculator to program mode and erase any program(s)
already stored:
Keystrokes Display
Finally, press the keys that you used above to solve the program
manually. Do not key in 300 as this number will vary each time the
program is used. (Don't be concerned about what appears in the display
as you press the keys - you will learn about these keycodes in
Chapter 8.)
* You must be in program mode for [f] CLEAR [PRGM] to clear previous
programs.
7-101
Keystrokes Display
[ENTER] 01- 36
2 02- 2
5 03- 5
5 06- 5
[+] 07- 40
Now run the program above using the check solution calculated in step
5.
Keystrokes Display
Keystrokes Display
Keystrokes Display
7-102
create a program:
Write down the sequence of keystrokes that you would use to do the
desired calculation.
Press [f] [P/R] to set the calculator to program mode. The program
status indicator (PRGM) is displayed when the calculator is in
program mode.
Press [f] CLEAR [PRGM] to erase any previous programs that may be
stored.
7-103
Chapter 7 Summary
[R/S] runs (starts) and stops a program. Reference: Page 7-100, step 4.
7-104
Review Test for Chapter 7
The answers are on Page 7-106, immediately following this review test.
1. What is a program?
7-105
Answers to Review Test for Chapter 7
2. To create a program:
7-106
NOTES
7-107
Chapter 8
Programming Basics
Preview
() 1. Let's turn our attention to the program from Chapter 7 to explain the
information displayed in program mode. If it has been some time since
Chapter 7 was studied, you should re-do steps 5-7 on pages 7-100 thru
T7-102.
Keystrokes Display
() 3. You will be using the [SST] (single step) key to display each step of
the program.
J (D]
(12C])
aBE
2 X s /CFo ZSEREa
DATE) 23] END )] IS
HiasNoee e
PRICE YTM ospnscmnoufi
RoEBaE] T
FRAC INTG ADYS D.MY M.DY Y) [
————————CLEAR——————————
PRGM FIN HEG
PREFIX
- Jafealo ks CEET
[
HEWLETT-PACKARD
- a P En) - )
Location of [SST]
Figure 43
8-108
() 4. Press [SST] once. The display will change to:
01- 36
PRGM
() 5. The two digits displayed on the left designate the line number of
program memory. Lines 01 through 99 are available for the program.
The above display designates line 01.
() 6. The two digits displayed on the right designate the keycode of the
instruction stored in that line. The first digit denotes the row of the
key (numbered 1 to 4 from the top to the bottom) and the second digit
the number of the key in that row (numbered 1, 2, ... , 9, O from left
to right). So, 36 tells you that the key is in the third row on the
calculator and that it is the sixth key from the left in that row, the
[ENTER] key.
T
R N
12
X) 12— DATE BEG END MEM
DEPRECIAT{ON—\
PRICE YTM
- -Es sesa
sixth key
E N &= T
HEWLETT-PACKARD
Figure 444
() 7. Each key on the keyboard has a two-digit keycode, except for the
number (digit) keys. For convenience, the digit keys, and their
respective shifted functions, are coded O through 9. All other
keys are coded by their position on the keyboard.
8-109
02- 2
PRGM
() 9. The [BST] (back step) key steps back to display the contents of the
previous line of program memory.
‘ - e}
PRGM
(@]
SEXTTILLLEL
AMORT _INT NPV RND
2 @D
A ——
P/R PRGM FIN REG REFIX
13 GTO E x=0
-Jealg-- a@g@@
HEWLETT-PACKARD
) ) S - )
Location of [g][BST]
Figure 45
01- 36
PRGM
00-
PRGM
8-110
0O12. Pressing [SST] (single step) while the calculator is in program mode
advances the calculator to the next line in program memory, then
displays that line number and the keycode of the instruction stored
there.
()13. Pressing [g][BST] (back step) while the calculator is in program mode
sets the calculator back to the previous line in program memory, then
displays that line number and the keycode of the instruction stored
there.
()14, If either the [SST] or the [BST] key is held down, the calculator
displays all of the lines in program memory. Press [SST], holding it
down until program line 07 is displayed.
Keystrokes Display
Program line 07 contains the last instruction you keyed into program
memory. However, if you press [SST] again, you will see that there
is another line stored in program memory:
Keystrokes Display
()15. The instruction in program line 08 is [g] [GTO] 00. This tells the
calculator to "go to" program line 00. Although line 00 does not
contain a regular instruction, it does contain a "hidden" instruction
that tells the calculator to halt program execution.
()16. Thus, after the program is run, the calculator goes to program line 00
and halts, ready for you to key in new data and run the program again.
0O17. When you press [f] [P/R] to set the calculator from program mode to
run mode, the calculator is also automatically set to program line 00.
8-111
()19. When you clear the calculator of previous programs ([f] CLEAR [PRGM]),
you have eight lines of program memory available and 20 data storage
registers. The memory is allocated like this:
Figure 46
8-112
()20. As you key in the ninth program line, storage register R.9 (recall from
Chapter 1 that R.9 is the last storage register) is converted to seven
lines of program memory. The instruction you key in is stored in
program line 09, and the instruction [g] [GTO] 00 is already stored
in program lines 10 through 15. The memory allocation would then look
like this:
09- Register .6 (R g)
10- Register .7 (R 7)
11- Register .8 (R g)
12- Register .9 (R o)
L
13-
14-
15-
Figure U7
8-113
0O21. Each time you use seven more lines of programming, the calculator
automatically converts the bottom storage register into program memory.
()22. The [MEM] (memory map) function describes the current memory
allocation.
L &
AMORT INT NPV RND R
BEEE
(12 X)) - S|
DATE BEG =N MEM
n@nmg%@@@E
PR|CE YTM
rh‘DEPRECIATION
L INTG NS IS T YD G
eB EEEE
T
P/R PRGMFINREG
REFIX
o Ecloome
-
HEWLETT-PACKARD
Y [ T T | )
Figure 48
P-08 r-20
()24. As long as you are pressing [MEM] the memory allocation will be
displayed. When you let go of the [MEM] key, the calculator returns
to the original display.
()a5. The [MEM] function can be used at any time to see the number of lines
available for programming and the number of registers available for
storing data.
8-114
R6 --- available for data storage.
0a7. There may be occasions when you will want to set the calculator to a
particular program line. Although [SST] can be used, as described
previously, you can do so more quickly with the [GTO] (go to) key.
()28. For example, assuming that the calculator is still in program mode,
you can set it to program line 04 as follows:
Keystrokes Display
029. In program mode, pressing [g] [GTO] [.] followed by two digit keys
sets the calculator to the program line specified by the digit keys.
The display shows that line number and the keycode of the instruction
stored there. (If the decimal point key is not used, the [GTO]
instruction will be recorded in program memory.)
()30. In run mode, pressing [g] [GTO] (or [gl[GTOI[.]) followed by two digit
keys sets the calculator to the program line specified by the digit
keys. The line number and keycode are not displayed as the calculator
is not in program mode, but pressing [f][P/R] does display the
specified line number and keycode.
8-115
Chapter 8 Summary
% [SST] can be used (in program mode) to display a program one line at
a time. Reference: Page 8-108, step 3.
% [g] [GTO] can be used to set the calculator to any program line.
Reference: Page 8-115, steps 27-30.
8-116
Review Test for Chapter 8
The answers are on Page 8-118, immediately following this review test.
00-
01- 36
02- 6
03- 25
04- 40
05- 2
06- 48
07- 5
08- 40
8-117
Answers to Review Test for Chapter 8
8-118
NOTES
8-119
Chapter 9
Preview
1 ? ? ? ?
2 ? ? ? ?
3 ? ? ? ?
Y ? ? ? ?
Keystrokes Display
9-120
[PMT] -651.68 The monthly payment amount
is calculated.
Now let's write a short program to replace the last three keystrokes
listed above ( 1 [f][AMORT], [x<>y], [RCLI[PV]). Before running this
program, values for n, PV, and PMT will first be calculated or keyed
in. Then the program will be run over and over again to calculate
succeeding monthly values for interest, principal, and remaining
balance. (Remember, after calculating the first month's interest
payment using 1 [f][AMORT], the second month's interest is also
calculated using 1 [f][AMORT].) Now enter the program by following
these keystrokes:
Keystrokes Display
1 01- 1
9-121
() 7. Each operation, prefixed or not, requires only one line of program
memory.
O 8. To run the program you have just recorded, press the following keys:
Keystrokes Display
The program didn't stop to show the amounts of interest and principal
calculated. The calculator executed each program line sequentially
until it reached the end of the program. Thus, only the final result
is displayed.
()10. There are two operations on your HP-12C that will interrupt program
execution when they are encountered as program instructions: [R/S]
(run/stop) and [g][PSE] (pause).
9-122
AMORT
{[5193399
INT NF'
| &
..
rad e CHJ
LN .
BEG END ) MEM ) ’
DEPREC\ATIONfi
PRICE YTM
fifimI
PRGM
z REG
PREFIX
o EE
PSE BST GTO X $y ) ,r 2 n
BN ED
HEWLETT-PACKARD
RX ) B 4 - ) 4 )
Figure 49
O12. When [R/S] is pressed from the keyboard in run mode, the
calculator resumes program execution sequentially downward.
0O13. Now key in a new amortization program that will display the amount of
interest and principal in each payment, as well as the remaining
balance.
Keystrokes Display
1 01- 1
9-123
()14. Use the program to complete the following amortization schedule for a
$63,000 mortgage at 14.5% interest for 30 years.
1 ? ? ? ?
? ? ? ?
? ? ?
? ? ?
Keystrokes Display
9-124
[R/S] -10.47 Principal.
O17. If the duration of the pause is not long enough to write down the
number displayed, you can prolong the pause by using more than one
[PSE] instruction. Alternatively, you can have the program stop by
using [R/S] as described previously.
()18. To see how [PSE] can be used in a program, rewrite the amortization
program to briefly display the interest and principal for each monthly
payment.
Keystrokes Display
(f] [P/R]
[f] CLEAR [PRGM] 00-
1 01- 1
(0O19. Now return to run mode and execute the program using the example from
step 14.
9-125
Keystrokes Display
-10.22
62,989.78
-10.34
62,979.44
-10.47
62,968.97
-10.59
62,958.38
9-126
Chapter 9 Summary
* Each operation, prefixed or not, requires only one line of program
memory. Reference: Pages 9-121 - 9-122, steps 6-T.
9-127
Review Test for Chapter 9
The answers are on Page 9-131, immediately following this review test.
00-
01~ 4 3
02- us5 2
03- 30
04- 20
05- 36
06- 36
07- u5 1
08- 30
09- 10
112.15 mmmmmmm——m e
98.37 mmmmemmeem e
9-128
3. An annual effective interest rate demonstrates the effect of compoun-
ding, for a full year of compounding periods, at a particular periodic
interest rate. The periodic interest rate to be used is determined by
dividing the stated nominal interest rate by the number of compounding
periods per year. The effect is such that if the nominal rate is held
constant, as the number of compounding periods per year is increased,
the annual effective interest rate will increase.
Keystrokes Display
Now write a program that computes the effective annual interest rate.
The user would follow these instructions to execute the program:
9-129
3. Key in the number of compounding periods per year and press [R/S]
to obtain the effective annual interest rate.
HINT: Compare these user instructions with the keystroke routine shown
a few lines earlier. Notice that the user instructions include
some of the keystrokes shown in the routine. The remaining
keystrokes from the routine should appear in your program.
Next, test your program by using it to solve the above example (what
effective rate corresponds to a nominal rate of 5.25% compounded
quarterly?).
Keystrokes Display
9-130
Answers to Review Test for Chapter 9
[n] 01- 1
(/1] 02- 10
[i] 03- 12
1 04- 1
0 05- 0
0 06- 0
9-131
[CHS] 07~ 16
[ENTER] 08- 36
[PV] 09- 13
[FV] 10~ 15
(+] 1= 140
[(f] [P/R]
Keystrokes Display
9-132
NOTES
9-133
Chapter 10
Editing a Program
Preview
* Change a program.
() 3. For example, if you have a program that calculates the sum of several
numbers and then finds the percent that each number is of the total
sum, you can easily determine whether the program works. Just enter
all like numbers (for example ten 10's) so that the percent total of
each number is the same (10 is 10% of 100).
[SST] Execution
() 5. In run (calculator) mode, [SST] will execute your program one line at a
time. When you hold the [SST] key down, in run mode, the program line
number and keycode are displayed. When you release the [SST] key, the
instruction is executed.
10-134
Keystrokes Display
(f] [P/R]
[ENTER] 01- 36
6 02- 6
(%] 03- 25
[+] 04~ 40
[f] [P/R]
The program assumes that the cost of an item has been keyed into the
display. Step through the program using a value of $200 for the cost
of the item.
Keystrokes Display
200 200.
[SST] (press and hold) 01- 36 The keycode for the first
instruction, [ENTER], is
displayed when [SST] is
held down.
10-135
212.00 When [SST] is released, the
fourth instruction is
executed.
You can see that it would be easy to spot a mistake in your program
using the [SST] key.
2. Use [SST1, [BST], or [GTO] [.] to set the calculator to the program
line preceding the line containing the instruction to be changed.
For example, in the previous program, change the sales tax rate at
line 02 to 7%.
Keystrokes Display
. Now determine the total price to pay for a $100 item assuming a 7%
sales tax.
Keystrokes Display
(f] [P/R]
10-136
Adding Instructions at the End of a Program
()10. To add one or more instructions at the end of the last program stored
in program memory:
2. Press [g] [GTO] [.] followed by two digits that specify the last
line you keyed into program memory (that is, the highest numbered
line --- not necessarily the line most recently keyed in).
Keystrokes Display
3.5 05- 3
06- 48
07- 5
[+] 08- 40
(f] [P/R]
O12. Determine the total price (including 7% tax and handling charge) of an
item costing $100.
Keystrokes Display
Multiple Programs
0O13. You can store more than one program in program memory, as long as you
separate them with instructions which halt program execution after
each program is run.
()14, To run the first program, which starts at line 01, press [R/S] in run
mode if you have not run any previous programs. Otherwise, you will
need to press [g] [GTO] 01 [R/S].
10-137
()15. To run programs recorded later in program memory, set the calculator
to the first line of the program (using the [g] [GTO] instruction)
before pressing [R/S].
()16. For example, assuming that program memory still contains the total
cost program, store the amortization program from Chapter 9, step 13.
Keystrokes Display
1 10-
[R/S] 12- 31
[x<>y] 13- 34
[R/S] 14—~ 31
()17. With the two programs now stored in program memory, find the amount
of interest and principal for the first month of a $45,000 mortgage
at 16.75% interest with monthly payments of $638.10. What is the
remaining balance after the first payment?
10-138
Keystrokes Display
()18. To verify that the first program is still in program memory, determine
the total cost of a jacket listed for $100.
Keystrokes Display
10-139
Chapter 10 Summary
* To run a second program stored in program memory, use [g] [GTO] to set
the calculator to the first line of the program and press [R/3].
Reference: Page 10-138, step 15.
10-140
Review Test for Chapter 10
The answers are on Page 10-143, immediately following this review test.
2. Now edit the amortization program to "pause" the period number of the
next amortization schedule to be computed.
10-141
Write a program which converts a temperature in degrees Fahrenheit to
degrees Celsius. Then write a second program in program memory to
convert degrees Celsius to degrees Fahrenheit. The following formulas
should be used:
F=(18xC)+32
10-142
Answers to Review Test for Chapter 10
3
03- 2
-] 04~ 30
05- 1
/] 06- 48
07- 8
[/] 08- 10
[g] [GTO] 00 09" 43 ’ 33 00
[ENTER] 10- 36
1 11- 1
[.] 12- 48
8 13- 8
[x] 14- 20
3 15- 3
2 16- 2
[+] 17- 40
[f] [P/R]
To convert degrees Fahrenheit to degrees Celsius:
10-143
To convert degrees Celsius to degrees Fahrenheit:
10-144
NOTES
10-145
Chapter 11
Decisions
Preview
* Branching.
* Looping.
* Conditional branching.
Branching
01—(instruction)
02-(instruction)
03-(instruction)
(9] 02 causes program
04-(instruction) execution to branch to line 02.
05-(instruction)
06-(instruction)
07-[g)(GT0])02
Figure 50
11-146
Looping
Keystrokes Display
(f] [P/R]
[f] CLEAR [PRGM] 00-
1 02- 1
[+] 03- 40
Keystrokes Display
1 [R/S] 1.00
2.00
3.00
4,00
5.00
6.00
etc.
11-147
Keystrokes Display
0 01- 0
[nl] 02- 1 The n-register is cleared.
1 03- 1
[f] [AMORT] O4- 42 11 The first month's interest is
calculated.
[x<>y] 06- 34
(g] [PSE] 07- 43 31 The principal is displayed.
1 09- 1
[+] 10- 40 The next period number is
calculated.
. Before running the program, the required data must be stored. Assume
a $61,000 loan for 30 years at 14% interest (payments are made
monthly).
Keystrokes Display
11-148
is calculated and stored.
eéc.
If you wish to write down the displayed values, you might want to
change each [g] [PSE] program step to [R/S].
Conditional Branching
() 9. There are times when you want a program to make a decision based on
certain conditions. For example, a program used by an accountant to
calculate taxes might need to branch to different program lines
depending on the tax rate for the particular income level.
()10. The HP-12C provides two instructions that are used in programs for
11-149
a branch that depends on the outcome of a test (a conditional branch):
[X=0] (X equal to 0?) and [XY] (X less than or equal to Y?).
|
=
AMORT _INT
IIDII
a3
PRICE YTM
DEPREC\ATION
DATE BEG END MEM
EEE.jeoas
- CLEAR—————————
PRGM FIN REG PREFIX
oo sElosEEg
HEWLETT+-PACKARD
Figure 51
0O11. [X=0] tests whether the number in the display (the X-register) is equal
to zero.
0O12. [X<Y] tests whether the number in the display (the X-register) is less
than or equal to the number in the Y-register. The number in the
Y-register is the number that would have been keyed in first in a
two-number operation. For example, 4 [ENTER] 5 would place 4 in the
Y-register and 5 in the X-register.
0O15. If the answer is NO, the calculator branches around the next
instruction.
11-150
()16. For example:
Conditional Test
Yes
Figure 52
()17. After the conditional test, the calculator will do the next instruction
if the test is true. This rule is easier to recall as the "DO if TRUE"
rule.
()18. The line immediately following the conditional test can contain any
instruction. A commonly used instruction is a [GTO]
instruction. This branches program execution to another section of
program memory if the conditional test is true, and continues with the
next line in program memory if the condition is false.
01-
Condition 02-[g](x=0] Condition
is True 03-[g](GT0J07 is False
04-
05-
06-
07-
Figure 53
()19. Example: The following program counts backward from the number 5
and stops at zero by returning to the top of program memory.
Keystrokes Display
11-151
backward.
Keystrokes Display
[R/S] 5.00
4,00
3.00
2.00
1.00
0.00
NOTE: Before the program is run, the user keys into the display (the
X-register) the income whose tax is to be calculated. The user does
not press [ENTER]; [R/S] is pressed to start the program.
Keystrokes Display
11-152
viously in the X-register, is
moved to the Y-register.
021. Now, store the required numbers in registers RO, R1, and R2, and
calculate the amount of tax on incomes of $16,000, $20,000, and
$31,000.
Keystrokes Display
11-163
()22. Here is a pictorial representation of what the program is doing:
Key in amount
of income
'
— Isincome
over $20,000?
Display tax
Flow Chart
Figure 54
11-154
Chapter 11 Summary
*
[g]l[GTO] is used to branch program execution to a specified line number.
Reference: Page 11-146, steps 2-4.
If the test is false, the program skips the next program line and then
continues execution. Reference: Pages 11-150 - 11-151, steps 15-16.
11-155
Review Test for Chapter 11
The answers are on Page 11-158, immediately following this review test.
11-156
4. Write a program which calculates the sum of the first 15 integers.
That is, what is 1+ 2+ 3+ . . . + 14 + 15? (Use a conditional
test to determine when to stop summing numbers.)
HINT:
a. Store the value of the integer being added in RO.
b. Store the current sum of the integers in R1.
c. Your program should start by putting initial values in RO and R1.
User Instructions: Press [R/S] and see the sum of the first 15
integers in the display when the program stops.
11-157
Answers to Review Test for Chapter 11
2. The tests X=0 and X<Y ask a question when encountered in a program
(is X equal to 0? and is X less than or equal to Y?). If the answer
is YES, the program continues to the next program line. If the
answer is NO, the calculator branches around the next program
instruction. (Page 11-150, steps 11-15)
[ENTER] 01- 36
2 02- 2
0 03- 0
0 04~ 0
0 05- 0
[x<yl 06- 34
1 09- 1
2 10- 2
. 1= 48
5 12- 5
0 15- 0
(%] 16- 25
(f] [P/R]
11-1568
Keystrokes Display
1 01- 1
[STO] O 02- 44 o
[STO] 1 03- 4y 1
1 O4- 1
5 05- 5
[RCL] O 06- 4 0
1 07- 1
[+] 08- 40
[STO] O 09- 44 0
[RCL] 1 13- us 1
[+] 14- 40
[STO] 1 15- 4y 1
[RCL] 1 17- 45 1
(f] [P/R]
11-1569
To run the program, press [R/S].
Keystrokes Display
11-160
NOTES
11-161
Chapter 12
You have learned a lot about the HP-12C, but there are a few more areas
that you might wish to explore. The following topics can be found in the
HP-12C Owner's Handbook and Problem-Solving Guide:
12-162
NOTES
12-163
Index
164
Clearing program memory 7-100, (7-104)
Clearing storage registers 1-9, (1-12)
[CLx] 1-=4, (1-12)
Compound growth 3-41
Compound interest 3-35 - 3-52
Conditional branching 11-149 - 11=154, (11-155)
Continuous Memory 1-2
165
Future dates 2-24, 2-27, (2-29)
Future value 3-35, 3-37, (3-55)
[FV] 3-357 3‘377 (3'55)
Keycodes 8-109
Keying in a number 1-3, (1-12)
Lease 3-11
Lease with buyback 3-41
Line, program 8-109, 8-110, 8-111, 8-113, 8-114, 8-115, (8-116), 9-122,
(9-127), 10-134, 10-136
Loan, direct reduction 3-41, 4-60
Looping 11-147
Mantissa 1-11
[M.DY] 2-24, 2-25, (2-29)
[MEM] 8-114, (8-116)
Memory allocation 8-112, 8-114, (8-116)
Memory, Continuous 1-2
Memory, convert to program 8-113, (8-116)
Memory, program 8-108, 8-109, 8-110, 8-111, 8-112, 8-113, 8-114, 8-115,
(8-116)
Merged keycodes 9-121, (9-127)
Month, day, year format 2-24, 2-25, (2-29)
166
Mortgage 3-41
Mortgage, amortization of U4-60 - U4-64, (4-T4)
Mortgage with balloon 3-41
Multiple programs 10-137, (10-140)
[ON] 1-2
Ordinary annuity 3-41
167
Program memory 8-108, 8-109, 8-110, 8-111, 8-112, 8-113, 8-114, 8-115,
(8-116)
Program memory, beginning of 8-108
Program mode 8-108, 8-111, 8-115, (8-116)
Programs, multiple 10-137 - 10-139, (10-140)
[PSE] 9-122, 9-125, (9-127)
[PV] 3'35; 3'37’ (3—55)
168
X
169
[40 HEWLETT
PACKARD