HP 9100B Operating & Programming Manual page 73

Hide thumbs Also See for 9100B:
Table of Contents

Advertisement

PROGRAMMING THE 91008
PROGRAM WRITING
Program writing may be divided, generally, into three ma1n
steps.
a)
def1ne
the
problem;
b)
decide·
how
the
problern is tobe solved;
c)
wnte
the
steps sequentially for the calculator.
Example of program writing:
a)
'define
the problem': write a program to solve
AxB
A+B for any value of A and 8; when the pro·
gram is complete display the result and display
A and 8.
b)
'dec1de
how the problern is to be solved': the
usual way to approach this
is
by means of a
'flow-chart'; the
initial
chart should be as sim-
ple as possible.
(initial flowchart)
Multiply
AxB
~
r
Add
A+B
,,
Divide
AxB
A
+
B
~
,
Display
the
result
Next, draw the
'flowchart'
in
greater
detail
and
then add
specific notes such as
where numbers
are to be
stored, etc.
lt may be
necessary, if
the problern is
complex,
to draw
several ver-
sians of the flow
chart.
WRITING A
ROGRAM
63

Advertisement

Table of Contents
loading

Table of Contents