102 Section 8: Programming Basics

Keystrokes

Display

 

24\85

85.

Third item.

t

2,040.00

AMOUNT for third item.

t

137.70

TAX for third item.

t

2,177.70

TOTAL for third item.

5\345

345.

Fourth item.

t

1,725.00

AMOUNT for fourth item.

t

116.44

TAX for fourth item.

t

1,841.44

TOTAL for fourth item.

:1

5,967.70

Sum of AMOUNT column.

:2

402.82

Sum of TAX column.

:3

6,370.52

Sum of TOTAL column.

Program execution is also automatically halted when the calculator overflows (refer to page 73) or attempts an improper operation that results in an Error display. Either of these conditions signifies that the program itself probably contains an error.

To determine at which program line execution has halted (in order to locate the error), press any key to clear the Error display, then press fs to set the calculator to Program mode and display that program line.

You may also want to display the current program line (by pressing fs) if your program has halted at one of several t instructions in your program and you want to determine which one that is. To continue executing the program afterward:

1.Press fsto set the calculator back to Run mode.

2.If you want to resume execution from the program line at which execution halted rather than from line 00, press gifollowed by two digit keys that specify the program line desired.

3.Press tto resume execution.

Stopping Program Execution Manually. Pressing any key while a program is running halts program execution. You may want to do this if the calculated results displayed by a running program appear to be incorrect (indicating that the program itself is incorrect).

To halt program execution during a pause in a running program (that is, when

uis executed), press any key.

After stopping program execution manually, you can determine at which program line execution has halted and/or resume program execution as described above.

File name: hp 12c_user's guide_English_HDPMBF12E44

Page: 102 of 209

Printered Date: 2005/7/29

Dimension: 14.8 cm x 21 cm