Problems - HP -67 Owner's Handbook Manual

Hide thumbs Also See for HP-67:
Table of Contents

Advertisement

220
Controlling the I-Register
To see what the amount in the account would be in 1976, you can
key in the number of years from 1624 to 1976 (the number is 352)
and initialize and run the program. (This will take 4-5 minutes to run,
plenty of time to go get a cup of coffee.)
Problems
1.
When you press [, the program below stores in primary regis-
ter Ry a number that you have keyed in, then decrements the
value in Ry using storage register arithmetic. Each time through
the loop, the program pauses to show the current value in R,.
When the value in Ry reaches zero, the program stops. Write,
load, and run a program that uses the I-register and £
instead of Ry and (%
to give the same results.
8 =0
(& 1
RTN
2.
Write and load a program using (5Z] to illustrate how an initial
deposit of $1000 would grow year-by-year at a yearly com-
pound interest rate of 5.5%. The program should display the
current year (and subsequent years), followed by the value of the
account for each year. The program should contain an infinite
loop that you can stop by pressing
from the keyboard
whenever you wish. Run the program to display the years and
amounts for at least 5 years.
3.
Write, load, and run a program that will count from zero up to a
limit using the (5Z] instruction, and then count back down to
zero using the
instruction. The program can contain two
loops, and it can contain a conditional instruction besides the
and
instructions. Use the flowchart on page 221 to
help you.

Advertisement

Table of Contents
loading

Table of Contents