HP-65 Financial Software request
|
01-07-2019, 04:26 PM
(This post was last modified: 01-07-2019 11:24 PM by Dieter.)
Post: #5
|
|||
|
|||
RE: HP-65 Financial Software request
(01-07-2019 02:38 PM)albertofenini Wrote: I would like to implement on an HP-65 a software program that given any two of these three values : Cost, Sell, Margin will give in return the third one. That's nothing that could not be done within a few minutes. But I would not call this "financial software". ;-) Here is a possible solution: Edit: the listing has been corrected. I forgot that the x≠y? test skips two steps (and not one) if false, so three NOPs had to be added. Also a missing RTN was added. Code: LBL 23 Initialize (clear all three values) with [E]. Use [A] for cost, [B] for price and [C] for margin. Rule: enter the unknow value as zero. Example: cost=40, price=50, margin=? Start: [E] => 0,00 40 [A] => 0,00 50 [B] => 0,00 [C] => 20,00 So the margin is 20%. Note that there was no need to enter zero as the display already was 0,00. What if the margin is increased to 25%? 25 [C] => 0,00 [B] => 53,33 So the price has to be raised to 53,33. Does this work for you? Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)