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
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
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
 « Next Oldest | Next Newest »

 Messages In This Thread HP12c Credit Card Payment Calculation - vrenaut74 - 01-24-2018, 08:38 PM RE: HP12c Credit Card Payment Calculation - Gamo - 01-25-2018, 03:52 AM RE: HP12c Credit Card Payment Calculation - acapde - 01-25-2018, 04:02 AM RE: HP12c Credit Card Payment Calculation - vrenaut74 - 01-25-2018, 04:21 AM RE: HP12c Credit Card Payment Calculation - acapde - 01-25-2018, 03:59 AM RE: HP12c Credit Card Payment Calculation - vrenaut74 - 01-25-2018, 04:19 AM RE: HP12c Credit Card Payment Calculation - Carsen - 01-25-2018, 05:11 AM RE: HP12c Credit Card Payment Calculation - Dieter - 01-25-2018 08:11 AM RE: HP12c Credit Card Payment Calculation - Dieter - 01-25-2018, 08:29 AM RE: HP12c Credit Card Payment Calculation - SlideRule - 01-25-2018, 04:42 PM RE: HP12c Credit Card Payment Calculation - Dave Britten - 01-25-2018, 04:58 PM RE: HP12c Credit Card Payment Calculation - Gerson W. Barbosa - 01-25-2018, 05:51 PM RE: HP12c Credit Card Payment Calculation - vrenaut74 - 01-25-2018, 05:55 PM RE: HP12c Credit Card Payment Calculation - DavidM - 01-26-2018, 04:42 PM RE: HP12c Credit Card Payment Calculation - Carsen - 01-25-2018, 07:36 PM RE: HP12c Credit Card Payment Calculation - Bill (Smithville NJ) - 01-26-2018, 06:06 PM RE: HP12c Credit Card Payment Calculation - Csaba Tizedes - 01-26-2018, 05:37 PM RE: HP12c Credit Card Payment Calculation - Gamo - 02-07-2018, 10:24 AM RE: HP12c Credit Card Payment Calculation - gpltaylor - 04-06-2019, 01:45 PM

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