1. Member
Join Date
Oct 2008
Posts
13
Rep Power
0

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: \$

2. Senior Member
Join Date
May 2008
Location
Makati, Philippines
Posts
234
Rep Power
9
have tried making a code? please post it here.

3. Do you have a specific question that you need answering?

4. Member
Join Date
Oct 2008
Posts
13
Rep Power
0
I don't know where to begin :( I keep reading through my powerpoints...but its not coming to me

5. 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.

Sub tasks could include:

* Getting user input and verifying that it has been obtained correctly and converted into the proper variable type (i.e., ints for integer data).

* Calculating interest on monies and storing this data.

* Calculating the minimum payment based on balance according the formula given.

* Displaying financial ddata with proper formatting.

You may also want to ask questions sooner next time and not wait til the last minute. I know that you already know this, but it has to be said.

Good luck.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•