EasyManuals Logo

HP HP-11C User Manual

HP HP-11C
264 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #117 background imageLoading...
Page #117 background image
Section
7:
Program
Decisions
and
Control
115
Keystrokes
Display
1
007-
45
1
008-
42
31
Displays
next
integer.
009-
11
Square
root
of
integer.
010-
42
31
Displays
square
root.
(o](LsTy]
011-
43
36
Recalls
copy
of
integer
from
LAST
X
register.
1
012-
1
Compares
last
integer
to
0
013-
0
highest
integer
allowed
by
014-
42
20
theprogram.
0
015-
22
0
Conditional
branch.
If
last
integer
is
less
than
10,
go
to
[LBL]0
and
resume...
[a](CLy]
016-
43
35
..otherwise,
avoid
another
(9]
017-
43
32
loop,
clear
displayed
X-
register
and
halt
program.
(9](P/R]
Sets
HP-11C
to
Run
mode.
To
run
the
program
press
(f][C].
The
calculator
will
display
a
table
of
integers
from
1
to
10
with
their
corresponding
square
roots.
When
0.0000
is
displayed,
program
execution
is
completed.
How
It
Works:
When
you
press
[C],
the
calculator
searches
through
program
memory
until
it
encounters
the
instruction.
It
executes
that
label
and
each
subsequent
instruction
in
sequential order
through
line
014,
the
conditional
test.
If
the
result
of
the
conditional
test
is
true—that
is,
the
last
integer
used
was
less
than
10—the
following
0
instruction
is
executed,
the
calculator
returns
to
the
0
instruction
at
line
004,
and
execution
resumes
as a
new
iteration
of
the
loop.
However,
if
the
result
of
the conditional
test
is
false,
meaning
the
last
integer
used
was
10,
the
0
instruction
is
bypassed
and
the
loop
is
terminated.
For
an
additional
discusssion
of
looping
and
loop
control
techniques,
refer
to
page
214,
Looping,
in
part
III
of
this
handbook.
Problem.
Write a
program
to
calculate
and
display
sales
commissions.
For
sales
of
less
than
$100
the
commission
should
be
10%
of
the
sale.
For
sales
of
$100
or
more
the
commission
should
be
15%.
Use
a
conditional
branch
in
your
solution.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP HP-11C and is the answer not in the manual?

HP HP-11C Specifications

General IconGeneral
BrandHP
ModelHP-11C
CategoryCalculator
LanguageEnglish

Related product manuals