ciao a tutti,
I would like to use my HP41C in my everyday work.
One of the things that I have to do more frequently is to evaluate the margin of a sale (yes, I'm a sales guy, sorry for that ...)
I need a program that given any two of these three values :
COST PRICE
SELL PRICE
MARGIN
will return the third value.
Does anyone know where can I find something like this ?
As always, thanks for help, Alberto
Sell, Cost, Margin for HP41
|
|
« Next Oldest | Next Newest »
|
▼
Post: #20
10-29-2012, 07:33 AM
▼
Post: #21
10-29-2012, 09:04 AM
I can't make any promises at the moment. But if I can find time I will write the code for this for you. By the way. I love the HP41C. But I use my HP27S the most when on the job. If you are curious, such a program can be written on it in easily under three minutes. When I was given my first HP27S by a friend who was an engineer at HP it had not been put on the market yet. The first program I wrote for it (he laughed when I requested a manual for it, 'you won't need one', at the time this was a preposterous assertion. Or so I thought.) The first program I wrote for it (with no information on the calculators operations of any kind) was: BIG+BIGGER=BIGGEST This is essentially exactly the same thing you need, ie: SELLPRICE-COST=MARGIN When this program is entered on the 27S it automatically generates a menu at the bottom of the display with the top row of keys being connected to the menu. And critical to a app such as you need the formula can always be used in any order nonlinearity. You may well already be quite familiar with all of that. At the time I was somewhat amazed.
Post: #22
10-29-2012, 10:33 AM
Quote:Bonjour à tous, Quote:That’s a good new,still using a HP-41C today is at you honour. Quote:I have no idea, but as a professional buyer-man for the account of a national institution, I already write a program for buy pricing, cost and estimation of lost. This is a short version of it: --------------------------------------------------------------Usage : In USER mode, enter a value and press the following: [ A ] key : to set margin. A new PRICE is computed and displayed. COST remain constant. [shift]+[ A ] : to display MARGIN. [ B ] key : to set SELL PRICE. A new MARGIN is computed and displayed. COST remain constant. Note that mnemomic B was initially used as Buy Price. [shift] + [ B ] : to display SELL/BUY PRICE. [ C ] key: to set constant COST value. A new MARGIN is computed and displayed. PRICE remain constant. [shift] + [ C ] : to display COSTs.
Note1: Only two registers are used: R00 = (constant cost ) and (R01 = sell/buy price).
Edited: 29 Oct 2012, 12:38 p.m.
Post: #23
10-29-2012, 03:16 PM
This is based on some of the solution book problems such as TVM that use the display as a menu for the top row of keys.
01 LBL "CSM" ▼
Post: #24
10-29-2012, 04:25 PM
Thank you very much to all of you. ▼
Post: #25
10-29-2012, 07:20 PM
Quote:
01 LBL A --- set margin% . Compute new Sell price Same usage as previous version. Enter margin as purcentage: 21.7 for 21.7%
In USER mode : CLRG EDITed : wrong 10 into 20 (see later post from aurelio)
Edited: 1 Nov 2012, 1:36 p.m. after one or more responses were posted ▼
Post: #27
10-31-2012, 08:26 AM
Thank you very much !! ▼
Post: #28
10-31-2012, 01:53 PM
HI, Nothing stupid, except you have to remove Alpha-numeric display. This can make the use of the program a bit confusing. For nonb-alphanuméric system, I will preconise a simpler input/output philosophy :
[ A ] Input Margin %
Edited: 31 Oct 2012, 2:24 p.m.
Post: #29
10-31-2012, 05:27 PM
Thanks Rec, ▼
Post: #30
10-31-2012, 06:08 PM
Yes, sorry, I have bad typo habits! In the HP41/42 listing the quote character ( " ) usually indicate ALPHA mode. I also use the tilt ~ to indicate APPEND character (precede by a quote since it's an ALPHA mode function. In the both listings, I used x:y as a personal representation of X exchange Y key ( X><Y in HP41/42 convention).
Again, apologize my specific use (and miss-use) of program code convention.
▼
Post: #31
11-01-2012, 07:43 AM
ciao Ret, ciao Everyone, ▼
Post: #32
11-01-2012, 08:03 AM
Hi Alberto, not yet, actually I couldn't take even the time to key the program and test.....hope I'll succed in the afternoon, stay tuned.
Post: #33
11-01-2012, 12:26 PM
Quote:Hi Alberto, hi Ret, hi all! I tried and all work great, but......only after a little review
@Ret: In the example CLRG 10 [ C ] COST: $20.00 >>>> should be 20 [ C ] COST: $20.00 75 [ A ] PRICE: $80.00 [shift][ a ] MARGIN 75.0 %
@all: MARGINE HP41-42 >>>>>>>>>>(MARGE) 01 LBL A 02 1 03 X<>Y 04 % 05 - 06 RCL 00 07 X<>Y 08 / 09 STO 01 10 LBL b 11 RCL 01 12 "PRICE" 13 GTO 08 14 LBL B 15 STO 01 16 LBL a 17 RCL 01 18 RCL 00 19 % 20 CHS 21 "MARGE" 22 FIX 1 23 SF 09 24 GTO 09 25 LBL C 26 STO 00 27 RCL 01 28 x>y? 29 GTO a 30 LBL c 31 RCL 00 32 "COST" 33 LBL 08 34 >" $" 35 FIX 2 36 LBL 09 37 ARCL X 38 FS? 09 39 >" %" 40 AVIEW 41 END Thank-you a lot, Ret, for your program!!! @Alberto: sure you found already how to get CLRG >> XEQ "CLRG", otherwise you can assign the command to a key in the "USER" mode I got from the listing a raw file suitable for the emulator (thank-you a lot to Ulisse Quadri and Leo Duran!)
then I printed a code bar to avoid the keying on the real calculator. But now the challenge is to run programs on the not alphanumeric calculators!
Hope it helps, cheers
Edited: 1 Nov 2012, 1:17 p.m. ▼
Post: #34
11-01-2012, 02:22 PM
Thank you aurelio for the careful review of my post and to correct the typo of my listing. Registers:
Edited: 2 Nov 2012, 6:22 a.m. after one or more responses were posted ▼
Post: #35
11-01-2012, 02:55 PM
Quote: Excuse me, Ret, if I maybe completely misunderstood the code, it means that my review was not so careful!
But If there are no problems to key these lines with the 42's menu, I'm not able to do it with the 41's. Edited: 1 Nov 2012, 2:58 p.m. ▼
Post: #36
11-01-2012, 05:31 PM
Yes of course. To key in %CH; [ XEQ ][ALPHA][shift][ % ][ C ][ H ][ALPHA]
To key in FS?C 09 : The HP41 (as the HP42) have more function and instruction than draw on the keyboard. All function/instruction can be spell using [XEQ][ALPHA]. For exemple keying [XEQ][ALPHA][ S ][ I ][ N ][ALPHA] is equivalent to simply pressing the [ sin ] key.
▼
Post: #37
11-01-2012, 05:54 PM
Thank-you, I just forgot the result of the command [ XEQ ]+[ALPHA] Edited: 1 Nov 2012, 5:54 p.m.
Post: #38
11-01-2012, 06:50 PM
WORKS !!! ▼
Post: #39
11-02-2012, 03:20 PM
Hi Alberto, let me know about the 67 performance.
Post: #40
11-01-2012, 01:11 PM
Quote: This maybe is a typo error, should be I think FS? 09, like 19 %CH should be simply 19 %
Edited: 1 Nov 2012, 2:56 p.m.
Post: #41
10-29-2012, 05:08 PM
Quote:
Ciao Alberto, like Telly Savalas, acting in "Capricorn One" movie "I can't help that".................... I would like to ask also where can I find [in the existing library for HP41-42, earlier or newer RPN (RPL) machines], programs fitted to calculate also (MON) EBIT (MOL) EBITDA or like in the example below Statement of Income — Example (from Wikipedia) Revenue Sales Revenue $20,438 Operating Expenses Cost of goods sold $7,943 Selling, general and administrative expenses $8,172 Depreciation and amortization $960 Other expenses $138 Total operating expenses $17,213 Operating income $3,225 Non-operating income $130 Earnings before Interest and Taxes (EBIT) $3,355 Financial income $45 Income before Interest Expense (IBIE) $3,400 Financial expense $190 Earnings before income taxes $3,210 Income taxes $1,027 Net Income $2,183 maybe this can be easyly calculated with excel or similar applications, but like Alberto, I love vintage calculators......;))) Actually I'm not a sales man but in my job since a lot of years we are brought to talk more about money than technical or scientific matter. Thanks in advance.
Edited: 1 Nov 2012, 1:15 p.m.
Post: #42
11-04-2012, 07:36 PM
Alberto, I'm glad to see that you got so much help with the program. I apologize for not getting back to you. I have been very busy. I will have to adjust my thinking in regards to making offers to help when I actually have so little time. |