Programming Basics; Why Use Programs; Creating A Program - HP 12c User Manual

Financial calculator
Hide thumbs Also See for 12c:
Table of Contents

Advertisement

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
200
\
25b
File name: hp 12c_user's guide_English_HDPMBF12E44
Printered Date: 2005/7/29
Section 8
Display
200.
Keys in cost of item.
200.00
Separates cost of item from
percentage to be keyed in next.
50.00
Amount of discount.
88
Page: 88 of 209
Dimension: 14.8 cm x 21 cm

Advertisement

Table of Contents
loading

Table of Contents