Section 10: Program Editing 141

Note: To add one or more instructions at the end of a program that is not the last program stored in program memory, use the procedure described below under Adding Instructions within a Program.

Example: With the last program from the preceding section stored in the calculator, suppose you wanted to calculate the net income after taxes. In the RPN program, you could add a - instruction at the end in order to calculate the net income after taxes. In the ALG program, the tax computed would need to be subtracted from the income previously stored in R9 (and this will be done by changing the sign of the tax to make it negative and then adding it to the income). You could do this as follows:

Keystrokes (RPN mode)

fs gi.008

-

fs

15000t

Keystrokes (ALG mode)

fs gi.011

Þ

+

:9

}

fs

Display

 

 

 

 

Sets calculator to Program mode.

008,

25

Sets calculator to last line keyed

 

 

into program memory.

009,

30

Keys new instruction into

 

 

program line 009.

25.00Sets calculator back to Run mode.

12,000.00

 

Net income after 20% tax is

 

 

 

subtracted from $15,000

 

 

 

income.

Display

 

 

 

 

 

 

Sets calculator to Program mode.

011,

 

36

Sets calculator to last line keyed

 

 

 

into program memory.

012,

 

16

Keys new instruction into

 

 

 

program line 012.

013,

 

40

Keys new instruction into

 

 

 

program line 013.

014,

45

9

Keys new instruction into

 

 

 

program line 014.

015,

 

36

Keys new instruction into

 

 

 

program line 015.

25.00Sets calculator back to Run mode.

File name: hp 12c pt_user's guide_English_HDPMF123E27

Page: 141 of 275

Printed Date: 2005/8/1

Dimension: 14.8 cm x 21 cm

Page 141
Image 141
HP 12C Financial 12C manual 12,000.00, 012, 013, 014, 015