Cost/Price/Markup/Margin; 12CP
|
08-20-2017, 09:57 AM
(This post was last modified: 08-20-2017 10:32 AM by Zac Bruce.)
Post: #1
|
|||
|
|||
Cost/Price/Markup/Margin; 12CP
Hi all, in response to Gamo's question in another thread r.e. creating a program to run on the 12c Platinum to calculate Cost/Price/Markup/Margin, I had a go at creating something. I'm pretty inexperienced so if anyone would take the time to look at the program and make suggestions for improvements it would be greatly appreciated.
Also I realise that the calculations themselves are fairly trivial; doing the calculations manually is easy enough to not need a program, but I used this as an exercise in learning to program the calculator. The following registers are used to either store the know information, or to RCL the unknown variables after the program has run. 1= Cost 2= Price 3= Markup 4= Margin Code:
Can P/R be used in place of GTO 000 to end the program? I'm sure also that there is some functions repeated in there that I could have cut out. I cut out a few repeated sections by looping back, but I'm sure there is more I could have done. I think if I was to do this on my old 12C it would actually make the program slower; because it recalculates values that are already there. Probably not a big problem here with a short, simple program, but something for me to think about in the future. Also working through the program I wasn't always aware of the stack and what was in there, so I used RCL a lot rather than trying to remember where numbers were in the stack. I guess if a number is already stored in a register it saves steps to RCL rather than roll the stack, if you need to roll more than once. Thanks to anyone that takes the time to have a look through and make suggestions. Regards, Zac |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Cost/Price/Markup/Margin; 12CP - Zac Bruce - 08-20-2017 09:57 AM
RE: Cost/Price/Markup/Margin; 12CP - Gamo - 08-21-2017, 04:56 AM
RE: Cost/Price/Markup/Margin; 12CP - Zac Bruce - 08-21-2017, 05:28 AM
RE: Cost/Price/Markup/Margin; 12CP - Dieter - 08-21-2017, 07:10 AM
|
User(s) browsing this thread: 1 Guest(s)