Results 1 to 4 of 4
  1. #1
    shin777 is offline Member
    Join Date
    May 2013
    Posts
    43
    Rep Power
    0

    Default what is this question asking?

    Use decision logic to develop a Java application that determines whether a department store customer has exceeded the credit limit on their charge account.

    1. Account number
    2. Balance at the beginning of the month
    3. Total of all items charged by the customer this month
    4. Total of all credits applied to the customer’s account this month
    5. Allowed credit limit

    The program should accept as input (from dialog boxes) all of these facts as integers, calculate the new balance, display the new balance in a dialog box, and determine whether the new balance exceeds the customer’s credit limit. When the customer is within the limit, the program should produce a dialog box providing the account number on one line and the words “Good Credit” on the second line. When the customer is not within the limit, the program should produce a dialog box providing the account number on one line and the words “Credit limit exceeded” on the second line.
    *credit = payment


    does it ask me to make java application that dialog box ask # for each variable and produce result or does it ask me to create java program with preset values(like I use my own numbers for each variable, for example, account # = 123, balance at beginning = $372, etc) and program produce result in 2 seperate dialog boxes(1st box shows account # and new balance, 2nd shows whether my credit is good or not)?

    This is what my teacher replied.
    "You will prompt me for each of the values I listed on the assignment. You will do the calculations, and then provide two separate dialog boxes. The first tells me my balance, the other tells me if I''m under or exceeded my credit limit."


    So how am I suppose to start? I already know how to write these but instruction seems very unclear to me.

  2. #2
    sehudson's Avatar
    sehudson is offline Senior Member
    Join Date
    Mar 2010
    Posts
    357
    Rep Power
    5

    Default Re: what is this question asking?

    Since the user has to provide you data through a dialog, take a look at the JDialog Class.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,453
    Rep Power
    20

    Default Re: what is this question asking?

    Quote Originally Posted by sehudson View Post
    Since the user has to provide you data through a dialog, take a look at the JDialog Class.
    ... but you'll probably find JOptionPane is what is expected.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    shin777 is offline Member
    Join Date
    May 2013
    Posts
    43
    Rep Power
    0

    Default Re: what is this question asking?

    yep. I already know how to write this with JOptionPane. What I was trying to figure out is how many dialog boxes I need. According to instruction, I have to make 5 dialog boxes that accept 5 inputs then another 2 dialog boxes for result. Did I get this wrong?

Similar Threads

  1. Replies: 2
    Last Post: 05-25-2012, 05:00 PM
  2. Java Question [Beginner Question]
    By joker760 in forum New To Java
    Replies: 3
    Last Post: 12-13-2011, 05:01 PM
  3. question posted by indissa: library question.
    By Fubarable in forum New To Java
    Replies: 2
    Last Post: 11-18-2011, 02:14 AM
  4. Question concerning question marks and colons
    By jim01 in forum New To Java
    Replies: 17
    Last Post: 01-14-2011, 01:05 AM
  5. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 09:49 AM

Posting Permissions

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