Results 1 to 5 of 5
  1. #1
    gallimaufry is offline Member
    Join Date
    Oct 2008
    Posts
    13
    Rep Power
    0

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

    Additional Charges: $

    Interest: $



    New Balance: $



    Minimum Payment: $

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Do you have a specific question? some part of your program that you're having trouble with?

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Note: cross-posted. Let's keep all of the posts in one thread, probably best in the "New to Java" section.

  4. #4
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    6

    Default

    This is not advanced. Should be in "new to java"

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Quote Originally Posted by fishtoprecords View Post
    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.

Posting Permissions

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