Post Reply 
(11C) Compound Calculations
04-10-2018, 06:12 PM
Post: #2
RE: (11C) Compound Calculations
(04-10-2018 12:21 PM)Gamo Wrote:  Provide any three out of four variables for the result of the remaining variable ...

That's a nice program and, as far as I can tell, it seems to work correctly.

But you should remove this line from the example:

(04-10-2018 12:21 PM)Gamo Wrote:  Answer of [FV] 2593.74 on display > input to [FV] > E > 0.00

Unlike the previous pricing program, this one does store a calculated result in the respective register. So you do not have to re-enter it if you want to continue with this value.

In this example a new input isn't required even if the result had not been stored. You just have calculated FV, and now you change the interest rate to calculate a new FV. So the old one is overwritten anyway. You do not need the old FV to calculate a new one. ;-)

(04-10-2018 12:21 PM)Gamo Wrote:  Program:
Code:
...
LBL C    // Reset
REG
CLx
RTN

The code looks very good. However, if possible, I would avoid clearing all registers. This way the user loses all data he may have stored. So it's always a good idea to clear only the required registers. At least on a calculator with constant memory.

Code:
...
LBL C    // Reset
CLx
STO 1
STO 2
STO 4
STO 5
FIX 2
RTN

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(11C) Compound Calculations - Gamo - 04-10-2018, 12:21 PM
RE: (11C) Compound Calculations - Dieter - 04-10-2018 06:12 PM
RE: (11C) Compound Calculations - Gamo - 04-10-2018, 11:48 PM



User(s) browsing this thread: 1 Guest(s)