19.08.2013 Views

HP·38E/38C - Slide Rule Museum

HP·38E/38C - Slide Rule Museum

HP·38E/38C - Slide Rule Museum

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 8<br />

Editing a Program<br />

Even the most experienced programmer finds errors in his programs.<br />

These errors range from mistakes in the original formulas to mistakes<br />

in recording the program. Whenever they occur they need to be found<br />

and corrected, and your calculator is designed to make this error-checking<br />

process as easy as possible.<br />

Finding the Error<br />

One of the easiest ways to find out if your program is working properly<br />

is to work a test case in which you either know the answer or the answer<br />

can easily be determined. For example, if you have a program that<br />

calculates the sum of several numbers and then finds the percent each<br />

number is of the total sum, you can easily determine whether the program<br />

works by entering all like numbers (for example ten 10's) so that the<br />

percent total of each number is the same (10 is 10% of 100).<br />

I SST I Execution<br />

In longer programs a wrong test-case answer will seldom pinpoint a<br />

mistake. For these cases, you can slow down program execution by<br />

using I SST I (single step) in run mode. In run mode, I SST I will execute<br />

your program instructions one at a time. When you hold the I SST I key<br />

down in run mode, the program line number and keycode are displayed.<br />

When you release the I SST I key, the instruction is executed. Use I SST I on<br />

the program shown below to familiarize yourself with its operation.<br />

Example Program: This program computes the net amount of an item<br />

when the sales tax is 7% . Toggle into program mode and clear program<br />

memory to display line 00. Then key in the list of keys shown below.<br />

Keystrokes Display<br />

IENTER_I 01- 31<br />

7 02- 7<br />

00 03- 23<br />

CD 04- 51<br />

118

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!