Results 1 to 2 of 2

Thread: Java Assignment

  1. #1
    lance215 is offline Member
    Join Date
    Jun 2012
    Rep Power

    Default Java Assignment

    Hi. Can someone please help me with this Java assignment I am doing? I am having a lot of trouble with it. Here is the description of the assignment:

    Design and implement a class to represent a multiple-choice question on an exam. Each question consists of a section that asks the question, and then four choices of answer, each of which is a letter followed by the answer. For Example:

    What type of method is typically declared as private and static?
    a. Contructor
    b. Instance
    c. Class
    d. Helper

    The class should have attributes for the question, the four answers, and the correct response.
    An example call to a contructor for this class would be

    ExamQuestion q17 = new ExamQuestion("What type of method is typically declared as private and static?", "Contructor", "Instance", "Class", "Helper", 'd') ;

    The class should supply observers that return each of the attributes as well as supply a method that prints the question on System.out in the format shown above. Develop a driver that tests the class.

    Thanks for any help you can offer.

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    New Zealand
    Rep Power

    Default Re: Java Assignment

    Please ask a specific question to avoid giving the impression that you are dumping your homework here. See this and read a few other threads here for examples of what will, and what will not, elicit productive replies.

Similar Threads

  1. java assignment
    By Tuz in forum New To Java
    Replies: 28
    Last Post: 02-16-2012, 08:39 PM
  2. java assignment
    By drewjordan in forum New To Java
    Replies: 9
    Last Post: 01-15-2012, 11:44 PM
  3. need help with a java assignment.
    By Z-slasher in forum New To Java
    Replies: 7
    Last Post: 04-17-2011, 11:05 PM
  4. Need Help with Java Assignment
    By smurf67 in forum New To Java
    Replies: 4
    Last Post: 03-26-2011, 10:25 AM
  5. Java assignment
    By xtianah77 in forum New To Java
    Replies: 1
    Last Post: 02-17-2008, 11:54 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