HP 12C Financial 12C manual Keystrokes ALG mode, Program line 005 +

Page 116

116 Section 8: Programming Basics

Keystrokes (ALG mode)

fs

625

Ç

Ç

Ç

Ç

Ç

Ç

Ç

Display

124.25Sets calculator to Run mode and to line 000 in program memory. (Display shown assumes results remain from previous calculation.)

625.Keys in price of typewriter.

001,

30 Program line 001: -

625.00Result of executing program line 001.

002,

2 Program line 002: 2.

2.Result of executing program line 002.

003,

5 Program line 003: 5.

25.Result of executing program line 003.

004,

25 Program line 004: b

156.25Result of executing program line 004.

005,

40 Program line 005: +

468.75Result of executing program line 005.

006,

5 Program line 006: 5

5.Result of executing program line 006.

007,

36 Program line 007: }

473.75Result of executing program line 007 (the last line of the program).

Pressing while the calculator is in Run mode sets the calculator to the previous line in program memory, then displays that line’s number and the keycode of the instruction stored there, just as in Program mode. In Run mode, however, when the Ü key is released the display again shows the same number as it did before was pressed: no instruction in program memory is executed.

File name: hp 12c pt_user's guide_English_HDPMF123E27

Page: 116 of 275

Printed Date: 2005/8/1

Dimension: 14.8 cm x 21 cm

Image 116
Contents Hp 12c platinum financial calculator Printing History Introduction About This HandbookIntroduction For More Solutions to Financial ProblemsFinancial Calculations in the United Kingdom Contents Contents SectionPart II Programming 103 Part III Solutions 155 227 Appendix E Formulas Used 250 267 Making Financial Calculations Easy 48.00 500.0021,396.61 14.0010,371.79 168.0011,024.82 42.03Part Problem Solving Power On and Off Low-Power IndicationAdjusting the Display Contrast Getting StartedGetting Started Keying in NumbersDigit Separators Negative NumbersKeying in Large Numbers 7814Backspacing 123.63KeystrokesDisplay ALG mode 63+Clear Keys Keys ClearsRPN mode ALG mode Undo OperationRPN and ALG Keys Example13.00 Simple Arithmetic Calculations in RPN ModeKeystrokes RPN mode Display Simple Arithmetic Calculations in ALG Mode Chain Calculations in RPN Mode Keystrokes RPN mode22.95 35.3810.14 1053+ 30.00 42.00Chain Calculations in ALG Mode Parentheses CalculationsStoring and Recalling Numbers Keystrokes ALG mode 8zgØ5 1gÙ DisplayStorage Registers Later that same day … Keystrokes Display RPN mode 250.00Keystrokes Display 1250?0 500?258.33 Clearing Storage RegistersStorage Register Arithmetic 13.70 10.14053.00 064.54Percentages in RPN Mode Percentage and Calendar FunctionsPercentage Functions 300Percentages in ALG Mode Percentage and Calendar Functions860.00 21,390.00283.40 22,673.40Keystrokes ALG mode Display Percent Difference58.50 53.25Percent of Total in RPN Mode 29.69Percent of Total in ALG Mode Calendar Functions Date FormatFuture or Past Dates 14.05 11,09,2004Number of Days Between Dates 11.09498.00 491.00Basic Financial Functions Financial RegistersStoring Numbers into the Financial Registers Displaying Numbers in the Financial RegistersClearing the Financial Registers Simple Interest CalculationsBasic Financial Functions 60.00 450.00455.25 455.18Financial Calculations and the Cash Flow Diagram Basic Financial Functions Payment Mode Cash Flow Sign ConventionGeneralized Cash Flow Diagrams Basic Financial Functions Compound Interest Calculations Calculating the Number of Payments or Compounding Periods325.00 Sets the payment mode to End35,000.00 Stores PV 328.00 27.33181.89 143.11327.00 141.87466.87 Recalls payment amountGÂ n Keystrokes ALG mode 775.0050.00 Stores FV58.00 29.0050.00 977.27 4000Keystrokes Display ALG mode 4000 22.73Calculating the Periodic and Annual Interest Rates 10,000.00 Stores FVKeystrokes RPN mode Keystrokes ALG mode Calculating the Present Value9gC 450ÞP 1500+ 12.00 17,500.00540,000.00 369,494.09243,400.00 Stores PV 200.00 60,000.00717.44 Calculating the Future ValueSets payment mode to End 5gA243400$ 243,400.00 1363.29ÞP -1,363.29 222,975.98 Amount of balloon payment24.00 281.3432,000.00 28,346.96Odd-Period Calculations Basic Financial Functions 5gC 012004135.17 Z30+ 950.00 120.00GÒ z30+ §12Basic Financial Functions Keystrokes Display FCLEAR G Enters 25 gC 250000 $ Amortization250,000.00 498.12 970.91245,029.09 238.26093.75 404.37360.00 380.51Additional Financial Functions Discounted Cash Flow Analysis NPV and IRRAdditional Financial Functions Calculating Net Present Value NPVNegative cash flow 130,000.00 212.18Year Cash Flow 79,000.00 14,000.0011,000.00 10,000.00Calculating Internal Rate of Return IRR 13.72Reviewing Cash Flow Entries 100,000.00 500.00 14,000.00 79,000.00 Changing Cash Flow Entries644.75 857.21Bond Calculations Bond Price042018 120.38Total price, including accrued Bond Yield122.13 Depreciation Calculations 400.001f# 2f#3f# 440.00660.00 Additional Operating Features Continuous MemoryAdditional Operating Features Status IndicatorsDisplay Number Display Formats14.8746 14.9 14.87456320 Scientific Notation Display Format487456 1487456320Key in RPN Mode Special DisplaysArithmetic Calculations With Constants Recovering From Errors in Digit Entry 429,000.00Statistics Functions Accumulating StatisticsCorrecting Accumulated Statistics MeanStatistics Functions Register Statistic32.00 40.0038.00 35.00463.00 Standard Deviation820.59 Linear Estimation 28,818.93Keystrokes Display 48 gQ Estimated sales for a 48 hourKeystrokes RPN mode 0gR Display Keystrokes ALG mode 0gR 1gR~d-~ Display001 GR~d~Weighted Mean 100 Mathematics Number-Alteration FunctionsOne-Number Functions 3880000000 Mathematics and Number-Alteration Functions258 Keystrokes To CalculateDisplay ALG mode Power Function in RPN ModePower Function in ALG Mode Part Programming Why Use Programs? Programming BasicsCreating a Program 104Programming Basics 200150.00 155.00Running a Program 001 002 003 004 005 006 007625 473.75159 124.25Program Memory Identifying Instructions in Program LinesNnn Nnn, 44 Nnn,43,33,000Displaying Program Lines Instruction KeycodeMode and displays current line Pressing gÜdoes the reverse Keystrokes Display RPN modeSets calculator to Program Program memoryKeystrokes Display 008,43,33,000 Program line 000 Instruction and Program Line Expanding Program MemoryProgramming Basics Setting the Calculator to a Particular Program Line Executing a Program One Line at a TimeProgram line 002 Program line 003Program line 004 b Program line 006Program line 005 + Pausing During Program Execution Interrupting Program Execution68.5 ?+1 ?+2 ?+3 Keystrokes RPN mode ?+1 ?+2 ?+3 Keystrokes ALG mode119 001 002 004 005 006008 001 002 003 004012, 44 40 950.61890.50 60.11402.82 370.52Stopping Program Execution 003,44 004 005 006FCLEAR² 13\68.5 18\72.9 24\85 Fourth item 125 Branching and LoopingSimple Branching Looping Branching and Looping782.47 007,43,33,002150,000.00 593.75 593.75 005188.72 188.72 007,43,33,002190.22 Conditional Branching592.25 Branching and Looping Recalls test value into X-register Stores income into register R9 004,43,33,007006,43,33,008 006,43,33,009 008,43,33,010010 20,000.0015,000.00 15,000.00 004,43,33,00715,000.00 007 20,00020,000.00 007 25,00025,000.00 25,000.00 00515,000 15,000.00 00515,000.00 006,43,33,009 15,000.00 009012,43,33,000 Line 012 gi000 000.00 005, 43 34 Line 005 go 20,000.0020,000.00 009 Line 00925,000.00 007 25.00 010139 Program EditingChanging the Instruction in a Program Line Program Editing Keystrokes RPN mode Keystrokes ALG mode Fs gi.006 DisplayAdding Instructions at the End of a Program 12,000.00 012013 014Adding Instructions by Replacement Adding Instructions within a ProgramFs 15000t 016 Adding Instructions by BranchingKeystrokes RPN mode Fs gi.000 001,43,33,012011,43,33,000 Gi.010017,43,33,002 012 013014 015,43,33,000 016 020 021,43,33,000 022 017,43,33,000018 019 Program Editing 149 Multiple ProgramsStoring Another Program 018,43,33,000 019 020 021 022023 024 025 026 027,43,33,019033,43,33,025 025 026 027 028029 030 031 032 028 029 030 031 032 033 034,43,33,029034 035 036 037 038 039 040,43 33,035Running Another Program Page Part Solutions 156 Real Estate and LendingAnnual Percentage Rate Calculations With Fees Real Estate and Lending 160,000.00908.46 156,800.00159,250.00 156,050.00Keystrokes Display RPN mode ALG mode 12§ §12³ Keystrokes Display RPN mode ALG mode FCLEARGPrice of a Mortgage Traded at a Discount or Premium 72.00137.17 777.61312.00 657.97300,000.00 Yield of a Mortgage Traded at a Discount or Premium252.00 096.57 210.00Rent or Buy Decision 258,377.2418.00 12.11000 001 002 003 004,44 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021RPN mode Registers Real Estate and Lending 165.00 700.00900.00 270,000.00Keystrokes Display RPN mode ALG mode Yield Deferred Annuities46,048.61 15,218.3512,831.75 600.00750.00 Investment Analysis Partial-Year DepreciationStraight-Line Depreciation 000 001 002 003 004 005 006 007 008 009 010 011012 013 014 015 016 017 018 019 020 021 022 023 024 025,43 026 027 028 029 030 031032,44 033,44036 037 038 039 040 041,43,33036,44 037,43,33Investment Analysis 125,000.00 666.67123,333.33 118,333.33730.00 504.75Declining-Balance Depreciation 000 001 002 003 004 005 006 007 008 009010 011 012 013 014 015 016 017 018 019 020 021,43 022 023 024 025 026 027028,44 029,44034 035 036 034 035 036 037 038 039 04050,000.00 11,458.33 Sum-of-the-Years-Digits Depreciation018 019 020 021 022 023 024 025,43,33026 027 028 029 030 031 035 036 037 038 039 040042 043 044 25n Keystrokes Display RPN mode ALG mode FCLEARG 12000$500M Full- and Partial-Year Depreciation with Crossover ?-0 008 009 010 011008 009 010 011 012 013 014 032,43,33 033 034 035 036 037 038 039040,44 041,44 042057,43,33 058 059 060 061 062063,44 064,43,33080,44 081 082 083 084 085,43,33086 087 088 089 090 091 092 093 094,43,33Keystrokes Display RPN mode ALG mode FCLEAR H 11000 $ 375.00 125.00406.25 804.69Excess Depreciation 10,500.00312.50 531.25Modified Internal Rate of Return Group # of Months Cash Flow $ 200,000.00657,152.37 775,797.83Black-Scholes Formula for Valuing European Options Keystrokes Display Keystrokes Display 065 066 067 068 069 070 071,43,33,077073,44 074 075,44 076 077 078089 090 091 092,44 093 094 095096,44 097 098 099 089,44 090199 113 114,44 115 116 117118,43,33 Program Instructions52.00 20.5414.22 71.1510.00 20.00Leasing Advance PaymentsSolving for Payment 202Leasing 11.6464.45 000 001008 009 010 011 012 013 014 015 016 017 008 009 010 011 012 013 014 015 016 017 018 01965.43 66.86Solving for Yield 57.0023,200.00 600 P17.33 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016Annual yield as a PercentageKeystrokes ALG mode 017,45,4319.48 ? tAdvance Payments With Residual 018 019 020 021 022 023 024 025 026 027 028 029 030 15.00 22,000.00487.29 520.8118.10 710.0034.00 Keystrokes Display RPN mode ALG mode FCLEARG 25\ 25z 4nz¼ SavingsNominal Rate Converted to Effective Rate 213002 003 004 005 006 007 008 009 010 Savings002 003 004 005 006 007 008 Effective Rate Converted to Nominal Rate ³ÞM¼Keystrokes Display RPN mode ALG mode FCLEAR G N100 $ Continuous Rate Converted to Effective Rate105.35 35 +Þ +5.35 ³ÞBonds 30/360 Day Basis Bonds001 002 003 004 005 006 007 008 009 010 011 012 013 217014 015 016 017 018 019 020 021 022 023 024 025 026 027 029 030 031 032 033 034 035 036 037038,43,33 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028039 040 041 042 043 044 045 046 Bonds 219040,43,33 041 042 043 044 045 046 047 048 049102.55 103.41 104.74Annual Coupon Bonds 223 20 ?0 12.01 94.75Page Appendices RPN and the Stack 228Getting Numbers Into the Stack The Key Appendix a RPN and the StackRearranging Numbers in the Stack Termination of Digit EntryStack Lift KeyMathematics Functions One-Number Functions and the StackTwo-Number Functions and the Stack Percentage Functions Calendar and Financial Functions RegisterLast X Register and the Key Arithmetic Calculations with Constants + 5 6 +84,000 168,000.00336,000.00 672,000.00Algebraic Mode ALG 237532.50 Appendix B Algebraic Mode ALGKeying in Negative Numbers Key in ALG Mode History Stack in ALG Mode400.43 737.07 18.5 §8zgØ 1250+7b Percent of Total Power FunctionTo Calculate Keystrokes Display ALG mode More About L 243Appendix C More About L 245 Error ConditionsError 0 Mathematics Error 1 Storage Register Overflow Error 2 StatisticsError 3 IRR Error 4 MemoryError 5 Compound Interest OperationConditionOperation Condition Error 6 Storage RegistersError 7 IRR Pr Error Error 8 CalendarError 9 Service Formulas Used PercentageInterest Simple InterestAppendix E Formulas Used Compound InterestDiscounted Cash Flow Analysis CalendarBonds 200Depreciation DPN J Continuous Compounding Interest Rate ConversionsFinite Compounding Weighted Mean StatisticsLinear Estimation Standard DeviationRent or Buy Decision Battery, Warranty, Service Information BatteryLow-Power Indication 259Appendix F Battery, Warranty, and Service Information Installing a New BatteryVerifying Proper Operation Self-Tests Appendix F Battery, Warranty, and Service Information Warranty Service Regulatory Information USATemperature Specifications Noise DeclarationCanada Japan267 United Kingdom CalculationsMortgages Annual Percentage Rate APR Calculations Appendix G United Kingdom Calculations269 Statistics Function Key IndexFinancial Modes MathematicsNumber Alteration Stack Rearrangement272 Pressed from Keyboard Run Mode Active KeysProgramming Key Index Subject Index 274Subject Index Subject Index Subject Index Subject Index