Help Me (begging on knees)!

• 10-23-2008, 12:54 AM
gallimaufry
Help Me (begging on knees)!
Computing a Charge Account Statement

Write a program to prepare the monthly charge account statement for a customer of CS CARD International, a credit card company. The program should take as input the previous balance on the account and the total amount of additional charges during the month. The program should then compute the interest for the month, the total new balance (the previous balance plus additional charges plus interest), and the minimum payment due. Assume the interest is 0 if the previous balance was 0 but if the previous balance was greater than 0 the interest is 2% of the total owed (previous balance plus additional charges). Assume the minimum payment is as follows:

new balance for a new balance less than \$50

\$50.00 for a new balance between \$50 and \$300 (inclusive)

20% of the new balance for a new balance over \$300

So if the new balance is \$38.00 then the person must pay the whole \$38.00; if the balance is \$128 then the person must pay \$50; if the balance is \$350 the minimum payment is \$70 (20% of 350). The program should print the charge account statement in the format below. Print the actual dollar amounts in each place using currency format from the NumberFormat class—see Listing 2.12 of the text for an example that uses this class.

CS CARD International Statement

===============================

Previous Balance: \$

Interest: \$

New Balance: \$

Minimum Payment: \$
• 10-23-2008, 02:49 AM
Fubarable
Do you have a specific question? some part of your program that you're having trouble with?
• 10-23-2008, 02:50 AM
Fubarable
Note: cross-posted. Let's keep all of the posts in one thread, probably best in the "New to Java" section.
• 10-23-2008, 05:12 AM
fishtoprecords
This is not advanced. Should be in "new to java"
• 10-23-2008, 05:24 AM
Fubarable
Quote:

Originally Posted by fishtoprecords
This is not advanced. Should be in "new to java"

He already has a thread on this there, and in fact it probably was posted before this cross-post was deposited.