(HP67 app) Pricing Calculation with known Markup for new Price comparison.
|
10-16-2017, 01:38 PM
(This post was last modified: 10-18-2017 10:34 AM by Gamo.)
Post: #1
|
|||
|
|||
(HP67 app) Pricing Calculation with known Markup for new Price comparison.
Here is the Pricing Calculation program for HP67 app for Android that also work on HP-67 or other HP calculator that have Labels. This program came with option for change in Markup to get new update Price answer comparison.
Code:
Example: (A) Cost = $110 (B) Price = $165 (C) Markup = ? (D) Margin = ? 110 A > 165 B > C result 50 > D result 33.33 To see the different for Price result when change the Markup to 75% 75 E result $192.50 Gamo I still can't find the way to do this pricing calculation method just by press the two known variables and get the answer for the other two variables. For example: when you know Cost and Margin you get answer for Price and Markup. Just by input A and D then press B and C for instant answer. |
|||
10-19-2017, 08:03 PM
(This post was last modified: 10-19-2017 08:42 PM by Dieter.)
Post: #2
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
(10-16-2017 01:38 PM)Gamo Wrote: I still can't find the way to do this pricing calculation method just by press the two known variables and get the answer for the other two variables. That's not trivial, for several reasons. For instance there are multiple ways to calculate each of the four variables, depending on which ones are known are which are not. Then there are cases where no unique solution exists (e.g. if only markup and margin are given). Here is a program that does what you want. Enter any two of the four variables, and the other two are calculated. The program uses a method that I already implemented more than 30 years ago for a triangle solver (enter any three... you get the picture). If a variable is entered, a constant of 1 (cost), 2 (price), 4 (markup) or 8 (margin) is added to R0. This way each of the six possible cases produces a unique sum: cost & price => 3 cost & markup => 5 price & markup => 6 cost & margin => 9 price & margin => 10 markup & margin => 12 The last case can be neglected since no unique solution for cost and price exists if only markup and margin are given. Now the program can simply jump to the label with that number to start the calculation. Actually it jumps to a label with that number minus 3 because this way all results are between 0 and 9 and the labels above (LBL A = #10) can be used without interfering with the calculation routines. Pressing [E] initializes the program. After two values have been entered (counted by a DSZ command) the calculation routine at LBL e starts. LBL a and b hold some calculations that appear several times. Afterwards pressing one of the keys [A]...[D] shows the respective result. Here is the listing: Code: 001 LBL E Here is an example: Code: Initialize [E] 0,00 All data can now be recalled by pressing the [A] to [D] keys. Be sure to press none of the number entry keys because else this will be considered a new data input. Code: Get cost [A] 110,00 Another example: Code: Initialize [E] 0,00 You can also try any other combination. Including markup & margin. Try it: it will result in an "Error" message. Note: data entry is detected by flag 3 which, on the '67 and '97, is set if you enter data with the number entry keys. It is not set if you recall a value from a register. So if you want to do so press any number key before. If you want you can change this to another method, e.g. consider only non-zero values as data entry. In this case simply replace the double F3? tests (which behaves like a FC?C 03) by an "X=0?" test. Dieter |
|||
10-20-2017, 05:47 AM
(This post was last modified: 10-20-2017 05:58 AM by Gamo.)
Post: #3
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
Hello Dieter
I try the program but not success maybe I didn't input program the right way. How to input LBL c the small c and STO (i) is it key ST I Initialize LBL E Ok and Input LBL A ok when input B return Error Thank You Gamo |
|||
10-20-2017, 06:50 AM
Post: #4
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
(10-20-2017 05:47 AM)Gamo Wrote: How to input LBL c the small c and STO (i) is it key ST I Just type g SST C for LBL c and the buttons STO (i) for STO (i) h ST I is something different. Bernhard That's one small step for a man - one giant leap for mankind. |
|||
10-20-2017, 07:52 AM
Post: #5
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
(10-20-2017 05:47 AM)Gamo Wrote: I try the program but not success maybe I didn't input program the right way. Since the lower case c is an f-shifted function (look at the keyboard), LBL c is entered as [LBL f] [C]. That's [g] [SST] [C]. The same is true for LBL a, LBL b etc. ST I is not STO(i) ! Again, look at the keyboard: there is a big "(i)" key, so simply press [STO] [(i)]. Likewise, RCL(i) is [RCL] [(i)]. For the record, here is an even shorter version that fits on a sigle card track. It also detects input errors if you enter the same variable twice (e.g. 2x cost). Code: 001 LBL E This version uses flag 2 instead of a counter and DSZ, and the steps at LBL A...D are now done in a common routine with indirect addressing. Dieter |
|||
10-20-2017, 09:07 AM
Post: #6
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
Thank You Bernhard
The keystroke in question now resolve. Thank You Dieter Pricing Program work very good and very accurate answer. Only you in this forum that try out on this complete Pricing Program that can input combination of two variables. HP 10BII+ have this features that user can input any two combination of variables except this pair the Margin and Markup. This calculator user input pair of variables and each individual variable can be change with update result that have to re-enter new data again. Gamo |
|||
10-20-2017, 04:58 PM
(This post was last modified: 10-21-2017 08:52 PM by Dieter.)
Post: #7
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
(10-20-2017 09:07 AM)Gamo Wrote: Pricing Program work very good and very accurate answer. Only you in this forum that try out on this complete Pricing Program that can input combination of two variables. Wait until you try the latest version. ;-) This one is more capable, more flexible and even shorter than the previous ones: Edit: corrected an error that caused markup/margin not to be recalculated after cost or price had been changed. Code: 001 LBL E INIT Again, [E] initializes the program. You can then enter two of the four values (as usual, except the combination markup & margin, these are mutually convertible), and the program calculates the remaining two if you press the respective key. And now you can even change data and recalculate without starting over: Code: Initialize [E] 0,00 Now change the markup to 75%: Code: Enter markup 75 [C] 75,00 Note that cost and price must be > 0. BTW, you can also directly convert between markup and margin without entering anything else: Code: Enter markup 30 [C] 30,00 Dieter |
|||
10-23-2017, 01:52 AM
Post: #8
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
Thank You Dieter
Now this is the perfect routine to calculate Pricing. Even the HP 10bII+ can not do between Markup and Margin calculation. Thanks again Gamo |
|||
02-09-2018, 08:14 AM
(This post was last modified: 02-09-2018 08:15 AM by Gamo.)
Post: #9
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
Hello Dieter
I try to adapt this program for HP-11C and still not working. Can you provide this program for 11C ? Thank You Gamo |
|||
02-09-2018, 08:35 AM
(This post was last modified: 02-09-2018 09:06 AM by Dieter.)
Post: #10
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
(02-09-2018 08:14 AM)Gamo Wrote: Hello Dieter Of course it will not work on any calculator other than the 67 or 97. With a minor change (replace flag 3 with flag 22) it probably also runs on the HP41. But on no other device. This program uses a special feature of the 67/97: if you enter a number this automatically sets flag 3. So the program can check whether you want to enter a value or have it calculated. Also the flag test F?3 automatically clears this flags after testing. Since the 11C does not provide a number entry flag there is no way to adapt this program for that calculator. The program may be changed so that it assumes data entry if x is not equal to zero, which should be no problem as the program assumes "no data given" if a value is 0. If this is OK the program version in post #7 can be changed for use with the 11C: - Delete the CF 3 in line 010. - Replace all F3? tests with x≠0?. Then try again if it works. Remember: if you now want to calculate a value, enter 0 and press the respective label key [A]...[D]. So in the first example you would press 0 [C] and 0 [D] to get markup and margin. Dieter |
|||
02-09-2018, 02:20 PM
Post: #11
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
I make change as recommended for
- Delete the CF 3 in line 010. - Replace all F3? tests with x≠0?. That still not work as expected. Gamo |
|||
02-09-2018, 06:51 PM
(This post was last modified: 02-09-2018 07:38 PM by Dieter.)
Post: #12
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
(02-09-2018 02:20 PM)Gamo Wrote: I make change as recommended for Come on, Gamo – what exactly does not work as expected? Where exactly is the problem? I tried the modified program on my HP67 emulator and it works fine. Edit: also tried in on HP's 15C emulator, and the program worked correctly again. Be sure to always enter 0 when you want to calculate or recall a result. And now 1. Post your 11C program here. 2. Give an example for input and output, including the exact key sequence. Just to be sure: since there is no LBL e on the Pioneers you have to replace it with a numeric one of course, e.g. LBL 0 or LBL 9. And %CH is labelled Δ%. Edit 2: Ok-ok, here is the complete program. Compare it with your version. Code: 001 LBL E And here is an example: Code: Initialize f[E] 0,00 Dieter |
|||
02-10-2018, 03:04 AM
Post: #13
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
Oops sorry my bad forgot to put 0 then A-D for answer.
Gamo |
|||
02-10-2018, 02:05 PM
Post: #14
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
Never worry, Gamo.
I think Dieter's basic point is a good one for all of us. Whenever something does not seem to work as expected, always, I mean always, given as much information about what did not work, how it did not seem to work, what your inputs were when it did not seem to work, what the outputs showed, and what you were doing just before the part that did not work, etc. etc. Give as much information as possible and it will help others help you... or perhaps... :-) ... help you see where something went wrong on your own! |
|||
06-18-2019, 01:12 PM
(This post was last modified: 06-18-2019 01:17 PM by Gamo.)
Post: #15
|
|||
|
|||
RE: (HP67 app) Pricing Calculation with known Markup for new Price comparison.
Special Thanks to Dieter
Who help make me successfully Create "Profit on Pricing" program For HP-11C or 15C Based on his idea this same program Also can be adapted to work on HP-12C https://www.hpmuseum.org/forum/thread-13043.html https://www.hpmuseum.org/forum/thread-12947.html I'm sad that he didn't see this program and Help improve further. RIP Gamo 2019 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)