Download Print this page

HP 35s Instruction Manual page 6

Using hp 35s flags
Hide thumbs Also See for HP 35s:

Advertisement

hp calculators
HP 35s Using HP 35s Flags
It is best to clear flag 5 at the end of the program, so the calculator will behave the usual way after the
program is finished.
Answer:
This example shows how flag 5 can be useful in a program.
Example 6: A program that uses temperatures must work with degrees Fahrenheit or degrees Celsius. Use flag 0 to
make the program work with both temperature scales.
Solution:
The program is written so that it checks flag 0. If flag 0 is set, it converts from Fahrenheit to Celsius, if flag 0
is clear, it assumes the temperature is already in Celsius. In the program, these steps are typed:
¹·30º½
If flag 0 is set at step D016, then the answer to the test is YES, and step D017 is carried out. If flag 0 is
clear then the answer to the test is NO and step D017 is skipped. The answer YES or NO is not displayed
when a program is running. Instead, the rule "do the next step only if the answer is YES" is followed.
To use the program, the user sets flag 0 if measurements are in degrees Fahrenheit. The little 0 is
displayed at the top of the screen, to remind the user that flag 0 is set and that measurements in degrees
Fahrenheit are expected. The zero looks like a degrees symbol, which is a useful reminder at times when
the user is working with temperatures. The user must clear flag 0 if measurements are in degrees Celsius,
and the zero will disappear.
Answer:
When the program is used with measurements in degrees Fahrenheit, the user must set flag 0. Step D017
of the program converts the measurement to degrees Celsius before the measurement is used. When the
program is used with measurements in degrees Celsius, the user must clear flag 0. At step D016 the flag is
not set, so step D017 is skipped, and the temperature is not converted to Celsius, as it already is in
Celsius.
These examples show just some of the ways in which flags can be used in programs. Some of the other
training aids show other uses of flags on the HP 35s.
hp calculators
Figure 12
- 6 -
HP 35s Using HP 35s Flags - Version 1.0

Advertisement

loading