HP 12c financial calculator Manuale Utente

Pagina di 211
 
88 
File name: hp 12c_user's guide_English_HDPMBF12E44 
Page: 88 of 209   
Printered Date: 2005/7/29   
Dimension: 14.8 cm x 21 cm 
 
Section 8 
Programming Basics 
Why Use Programs? 
A program is simply a sequence of keystrokes that is stored in the calculator. 
Whenever you have to calculate with the same sequence of keystrokes several 
times, you can save a great deal of time by incorporating these keystrokes in a 
program. Instead of pressing all the keys each time, you press just one key to start 
the program: the calculator does the rest automatically! 
Creating a Program 
Creating a program consists simply of writing the program, then storing it: 
1.  Write down the sequence of keystrokes that you would use to calculate the 
quantity or quantities desired. 
2. Press fs to set the calculator to Program mode. When the calculator is 
in Program mode, functions are not executed when they are keyed in, but 
instead are stored inside the calculator. The PRGM status indicator in the 
display is lit when the calculator is in Program mode. 
3. Press fCLEARΠto erase any previous programs that may be stored 
inside the calculator. If you want to create a new program without erasing a 
program already stored, skip this step and proceed as described in Section 
11, Multiple Programs. 
4.  Key in the sequence of keystrokes that you wrote down in step 1. Skip the 
beginning keystrokes that enter data, which would differ each time the 
program is used. 
Example: Your office supplies dealer is selling selected stock at 25% off. Create 
a program that calculates the net cost of an item after the discount is subtracted 
and the $5 handling charge is added. 
First, we’ll manually calculate the net cost of an item listing for $200. 
Keystrokes Display 
 
200 
200. 
Keys in cost of item. 
200.00 
Separates cost of item from 
percentage to be keyed in next. 
25b 
50.00 
Amount of discount.