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

    Default Due Tommorow Writing a Program Please Help

    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
    Eku
    Eku is offline Senior Member
    Join Date
    May 2008
    Location
    Makati, Philippines
    Posts
    234
    Rep Power
    7

    Default

    have tried making a code? please post it here.
    Mind only knows what lies near the heart, it alone sees the depth of the soul.

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

    Default

    Do you have a specific question that you need answering?

  4. #4
    gallimaufry is offline Member
    Join Date
    Oct 2008
    Posts
    13
    Rep Power
    0

    Default

    I don't know where to begin :( I keep reading through my powerpoints...but its not coming to me

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

    Default

    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.

Similar Threads

  1. writing to a excel file from java program
    By priyankabhar in forum New To Java
    Replies: 15
    Last Post: 01-17-2014, 01:39 PM
  2. writing a program launcher (or Timer)
    By Farzaneh in forum Threads and Synchronization
    Replies: 3
    Last Post: 02-17-2009, 10:00 AM
  3. Writing a program(HELP!! It's due tommorrow!!!!!)
    By mk3823 in forum New To Java
    Replies: 9
    Last Post: 10-24-2008, 12:13 PM
  4. how begin with writing a new program ?
    By dimitrist in forum New To Java
    Replies: 11
    Last Post: 05-13-2008, 04:49 AM
  5. Help needed writing a program...
    By Francis in forum New To Java
    Replies: 2
    Last Post: 11-22-2007, 03:03 PM

Posting Permissions

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