Out of 3 Ratings

Owner's of the HP (Hewlett-Packard) Calculator HP 12C Financial Calculator gave it a score of 4.7 out of 5. Here's how the scores stacked up:
  • Reliability

    5.0 out of 5
  • Durability

    5.0 out of 5
  • Maintenance

    5.0 out of 5
  • Performance

    5.0 out of 5
  • Ease of Use

    3.5 out of 5
of 278
130 Section 9: Branching and Looping
File name: hp 12c pt_user's guide_English_HDPMF123E27 Page: 130 of 275
Printed Date: 2005/8/1 Dimension: 14.8 cm x 21 cm
These rules can be summarized as “DO if TRUE”.
The program line immediately following that containing the conditional test
instruction can contain any instruction; however, the most commonly used
instruction there is
. If a
instruction follows a conditional test instruction,
program execution branches elsewhere in program memory if the condition is true
and continues with the next line in program memory if the condition is false.
The following program calculates income tax at a rate of 20% on
incomes of $20,000 or less and 25% on incomes of more than $20,000. To
conserve program lines, the program assumes that the test value — 20,000 — has
been stored in register R
and the tax rates — 20 and 25 — have been stored in
registers R
and R
, respectively.
Note: If a program requires that certain numbers be in the X- and
Y-registers when instructions such as go are executed, it is extremely
helpful when writing the program to show the quantities in each register after
each instruction is executed, as in the following diagram (which shows an
RPN mode program, although it works in a similar way in ALG mode.).