HP·38E/38C - Slide Rule Museum
HP·38E/38C - Slide Rule Museum
HP·38E/38C - Slide Rule Museum
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
112 Decisions<br />
To input the numbers using a program, we will want to use a fl ag of some<br />
sort to tell the calculator that we have finished entering the series of<br />
numbers. Since x = Q is a conditional on the HP-38E , let' s use zero as<br />
a flag. This means that when the calculator reads a zero entry, it will<br />
branch to the second part of the program.<br />
The fl owchart for the fi rst half of the program looks like thi s:<br />
Begin<br />
calculating<br />
% totals.<br />
Initialize:<br />
Set @QJ to O.<br />
Set 0 to O.<br />
Key in<br />
next number.<br />
No<br />
Store number<br />
with @J.<br />
Add 1 t0 0 .<br />
Add number<br />
to total.