• 10-23-2008, 01:07 AM
gallimaufry
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, 01:53 AM
Eku
have tried making a code? please post it here.
• 10-23-2008, 02:50 AM
Fubarable
Do you have a specific question that you need answering?
• 10-23-2008, 03:07 AM
gallimaufry
I don't know where to begin :( I keep reading through my powerpoints...but its not coming to me
• 10-23-2008, 03:15 AM
Fubarable
We're pretty good here helping those with specific questions but our track record is not very good for "don't know where to begin" type questions as you don't really need a straight-forward question answered but rather need to study and understand the concepts. Your best bet is to contact your teacher and arrange one-on-one tutoring.

Until then, I suggest you try to break this problem down into small pieces and try to attack each small piece in isolation of the others. Work on these small tasks and come back if you run into specific road blocks.