Dataentryflag - HP -67 Owner's Handbook Manual

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

Advertisement

260
Flags
Data Entry Flag
The data entry flag, flag F3, is a flag that is set for data entry and
cleared upon test. These features of this flag can be used for
interchangeable solutions in a program.
Example: The program below calculates the distance (d), speed (s),
or time () for a moving body according to the following formulas:
d = st
distance = speed X time
speed = distance + time
time = distance + speed
Given any two of the quantities d, s, and ¢, the program will calculate
the third. The program uses the test-clearing feature of data entry
flag F3 to decide whether to store a quantity away or to use pre-
viously stored quantities for calculation. If you recorded the program
on a magnetic card, the card might look like this:
& DISTANCE, SPEED, AND TINE 4
Berdygcr S_e>
As you can see from the flowcharts shown on pages 261 and 262,
when the user-definable key I3, 3, or [@ is pressed, a decision is
made. If you have keyed in a value, that value is stored for further
calculations. If you have not keyed in a value, the program calculates
the desired quantity. The decision to store or to calculate is made
depending upon whetherthe data entry flag, flag F3, is set or cleared.

Advertisement

Table of Contents
loading

Table of Contents