Results 1 to 6 of 6
  1. #1
    Queenzy is offline Member
    Join Date
    Nov 2008
    Posts
    4
    Rep Power
    0

    Default A little help here.....

    This was the assignment question:
    a)Write a program that captures the price of 100 products. Display the average price on a message dialog.
    b)Write a program that keeps reading the name and score of a list of athletes. Display the captured information on a message dialog. Stop the data reading process if any negative scaore is read.

    The problem is:
    -What does the statement means?
    -What should I do????
    Last edited by Queenzy; 11-05-2008 at 05:13 AM.

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

    Default

    The assignment as written here is a bit vague as it doesn't specify what it means to "capture" a price. Read a text file? Get input from the console? Input from JOptionPanes? Write a Swing app?

    Were you given anything else with this or is this the entire assignment verbatim? Is there any way that you can contact your instructor for clarification?

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by Queenzy View Post
    a)Write a program that captures the price of 100 products. Display the average price on a message dialog.
    captures, what you mean is not clear. May be talking about user inputs. But it can be a horrible application if you going to ask 100 input from the user.


    Quote Originally Posted by Queenzy View Post
    b)Write a program that keeps reading the name and score of a list of athletes. Display the captured information on a message dialog. Stop the data reading process if any negative scaore is read.
    Are you want to write those records into a file?

  4. #4
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    Quote Originally Posted by Queenzy View Post
    This was the assignment question:
    a)Write a program that captures the price of 100 products. Display the average price on a message dialog.
    b)Write a program that keeps reading the name and score of a list of athletes. Display the captured information on a message dialog. Stop the data reading process if any negative scaore is read.

    The problem is:
    -What does the statement means?
    -What should I do????
    I'm sorry, but these sound like questions you should be asking your instructor. If you actually get a job as a developer you will often (almost, if not, always) get requirements that are not, exactly, clear. When that happens, you need to go to the individual/department/company that provided those requirements and ask for clarification (probably multiple times, including clarification of the clarifications). In this case, your instructor is that individual. The instructions may be deliberately vague to force you to either make those decisions on your own, or force you to speak up.

  5. #5
    Queenzy is offline Member
    Join Date
    Nov 2008
    Posts
    4
    Rep Power
    0

    Default

    -The question is really like tat only =.="
    -Thanks wat u guys have make me relise that I'm not the only one who doesn't understand the question XD

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Posting Permissions

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