![]() |
Sell, Cost, Margin for HP41 - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: Sell, Cost, Margin for HP41 (/thread-233287.html) |
Sell, Cost, Margin for HP41 - Alberto Fenini - 10-29-2012 ciao a tutti, Re: Sell, Cost, Margin for HP41 - Bruce Larrabee - 10-29-2012 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.
Re: Sell, Cost, Margin for HP41 - C.Ret - 10-29-2012 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.
Re: Sell, Cost, Margin for HP41 - Mark Storkamp - 10-29-2012 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" Re: Sell, Cost, Margin for HP41 - Alberto Fenini - 10-29-2012 Thank you very much to all of you. Re: Sell, Cost, Margin for HP41 - aurelio - 10-29-2012 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.
Re: Sell, Cost, Margin for HP41 - C.Ret - 10-29-2012 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
Re: Sell, Cost, Margin for HP41 - aurelio - 10-29-2012 Thak-you, Ret
Re: Sell, Cost, Margin for HP41 - Alberto Fenini - 10-31-2012 Thank you very much !! Re: Sell, Cost, Margin for HP41 - C.Ret - 10-31-2012 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.
Re: Sell, Cost, Margin for HP41 - Alberto Fenini - 10-31-2012 Thanks Rec, Re: Sell, Cost, Margin for HP41 - C.Ret - 10-31-2012 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.
Re: Sell, Cost, Margin for HP41 (God Bless the QWERTY keyboard) - Alberto Fenini - 11-01-2012 ciao Ret, ciao Everyone, Re: Sell, Cost, Margin for HP41 (God Bless the QWERTY keyboard) - aurelio - 11-01-2012 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. Re: Sell, Cost, Margin for HP41 (God Bless the QWERTY keyboard) - aurelio - 11-01-2012 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.
Re: Sell, Cost, Margin for HP41 (God Bless the QWERTY keyboard) - aurelio - 11-01-2012 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.
Re: Sell, Cost, Margin for HP41 (God Bless the QWERTY keyboard) - C.Ret - 11-01-2012 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
Re: Sell, Cost, Margin for HP41 (God Bless the QWERTY keyboard) - aurelio - 11-01-2012 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.
Re: Sell, Cost, Margin for HP41 (God Bless the QWERTY keyboard) - C.Ret - 11-01-2012 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.
Re: Sell, Cost, Margin for HP41 (God Bless the QWERTY keyboard) - aurelio - 11-01-2012 Thank-you, I just forgot the result of the command [ XEQ ]+[ALPHA] Edited: 1 Nov 2012, 5:54 p.m.
Re: Sell, Cost, Margin for HP41 (God Bless the QWERTY keyboard) - Alberto Fenini - 11-01-2012 WORKS !!! Re: Sell, Cost, Margin for HP41 (God Bless the QWERTY keyboard) - aurelio - 11-02-2012 Hi Alberto, let me know about the 67 performance. Re: Sell, Cost, Margin for HP41 - Bruce Larrabee - 11-04-2012 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.
|