![HP 0012C-90001 User Manual Download Page 98](http://html.mh-extra.com/html/hp/0012c-90001/0012c-90001_user-manual_18915098.webp)
98
98
98
98 Section 8:
Section 8:
Section 8:
Section 8: Programming Basics
Programming Basics
Programming Basics
Programming Basics
File name: HP 12c+_user's guide_English_E_HDP0F12AE03_062608 - Modified.doc
Page: 98 of 213
Printed Date: 2021/6/16
Dimension: 14.8 cm x 21 cm
Example:
Example:
Example:
Example: Create a program that calculates the entries in the AMOUNT, TAX, and
TOTAL columns for each item on the jewelry distributor’s invoice shown on the next
page, and also calculates the total in each of these columns for all items on the
invoice. Assume the sales tax is 6
3
/
4
%.
To conserve lines of program memory, instead of keying in the tax rate before the
b
instruction we’ll store it in register R
0
and recall it before the
b
instruction.
Before storing the program in program memory, we’ll calculate the required
amounts for the first item on the invoice manually. The keystroke sequence will use
storage register arithmetic (described on page 24) in registers R
1
, R
2
, and R
3
to
calculate the column sums. Since these registers are cleared when
f
CLEAR
²
is
pressed, we’ll press those keys before beginning the manual calculation — and
also later, before running the program — to ensure that the column sums are
“initialized” to zero. (Pressing
f
CLEAR
H
would clear registers R
1
through R
3
,
but would also clear R
0
, which will contain the tax rate.)
Summary of Contents for 0012C-90001
Page 1: ...hp 12c financial calculator user s guide H Edition 5 HP Part Number 0012C 90001 ...
Page 14: ......
Page 15: ...Part I Part I Part I Part I Problem Solving Problem Solving Problem Solving Problem Solving ...
Page 86: ......
Page 87: ...Part II Part II Part II Part II Programming Programming Programming Programming ...
Page 123: ...Part III Part III Part III Part III Solutions Solutions Solutions Solutions ...
Page 169: ...Appendi Appendi Appendi Appendixes xes xes xes ...