Post Reply 
HP12c Credit Card Payment Calculation
01-25-2018, 08:11 AM (This post was last modified: 01-25-2018 08:17 AM by Dieter.)
Post: #8
RE: HP12c Credit Card Payment Calculation
(01-25-2018 05:11 AM)Carsen Wrote:  IT IS IMPERATIVE THAT THE [RND] FEATURE IS USED. Because paying 2.7 percent of the current balance every month will never pay off the balance. Unless we round (with RND) to the nearest cent.
(...)
Before running the program, make sure REG 0 is empty. Or your answer will be wrong.

Since this is essential for a correct result, why doesn't the program make sure this is observed?
Include a CLX STO 0 and a FIX 2 at the beginning. This adds three steps so that the final GTO 01 becomes GTO 04.

Is the answer supposed to be recalled from R0? Then your program should do this as well, and instead of exiting with a GTO 00 it should jump beyond the last step and do a RCL 0 to display the result.

BTW, I have no idea if this approach is correct since I'm not sure about the original problem. Where do the 18% go in your program? What has to be entered in which way before the program is run? And maybe "vrenaut74" can give a numeric example.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP12c Credit Card Payment Calculation - Dieter - 01-25-2018 08:11 AM



User(s) browsing this thread: 8 Guest(s)