1 Replies - 515 Views - Last Post: 19 April 2012 - 09:42 AM Rate Topic: -----

#1 allizzel777  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 19-April 12

Do not understand This assignment.

Posted 19 April 2012 - 09:08 AM

First off let me just say I'm not asking you to do my homework i would just like a few pointers or help because honestly my teacher doesn't know how to teach at all and makes no since, my whole group doesn't understand and we actually sit and listen to her(she splits everything up and thinks we understand it all already). My teacher gave us this assignment and none of my group can figure it out.

Steps:

1. Design your Question class

-  Design your base and subclasses.

- Idenfity attributes and methods needed

2. Implement your Question class and subclasses

- Create and validate your base class

- Create and validate each sub-class

3. Create a separate program to create questions for the question bank.

Descripiton:

The purpose of this program is to introduce you to classes, subclasses, and inheritance in object-oriented programming.
For this project, you will create a study/quiz tool for students or instructors to enter, save, and retrieve different types of questions.
 
Question Types:
Create your Question class and sub-classes to fit the following requirements:
Question Types
   1. simple flashcard
question
explanation
   2. true/false
question
answer
explanation
   3. multiple choice (fix the number of choices to four (4))
question
4 potential answers
answer
explanation
    4.      fill-in-the-blank
question (the FULL question without a blank)
answer
explanation




she gave us this little base example

/**
* Program Name: ___________
* Program Description: 
*  _________________________________
*  _________________________________
* @author _________________________
* Date created: _______________________
* Last date modified: ____________________
*/
public class Question
{
private String question;
private String explanation;
public Question ()
{
question = "no question";
explanation = "no explanation";
}
public Question (String newQuestion, String newExplanation)
{
question = newQuestion;
explanation = newExplanation;
}
/***************************/
/** METHODS                */
/***************************/
/** METHOD: setQuestion    */
public void setQuestion (String newQuestion)
{
question = newQuestion;
}
/***************************/
/** METHOD: getQuestion    */
public String getQuestion ()
{
return question;
}
/***************************/
/** METHOD: setExplanation */
//  your code here...
/***************************/
/** METHOD: getExplanation */
//  your code here...
} 


Is This A Good Question/Topic? 0
  • +

Replies To: Do not understand This assignment.

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5480
  • View blog
  • Posts: 11,762
  • Joined: 02-June 10

Re: Do not understand This assignment.

Posted 19 April 2012 - 09:42 AM

For the quiz homework: Look at my signature block. See the link for "multi-choice quiz homework"? click it.

As for understanding the assignment as given: It is really well phrased. A LOT better than many we see. There isn't much vagueness to it. So what what part of all of that don't you understand? If you don't understand the terms such as 'class', 'method', 'return value' etc.... Well, re-read those definitions in your textbook. We can't help every semester of every school understand the very basics that are laid out in the textbook. We have numerous tutorials here for that. There are several good "Learn C# in 3 weeks" type books out there: Maybe you should pick one up to read in addition to your text book.

But if there are specific parts of that assignment description you don't understand, let us know. If its the whole thing: Read and re-read.



My teacher is a dummy: See FAQ # 26. (Click the SHOW button below)


TOP most asked:
What does this error message mean?
FAQ 2: How do I debug
FAQ 3: How do I make Class1/Form1 talk to Class2/Form2


FAQ (Frequently Asked Questions - Updated Apr 2012
Spoiler



Was This Post Helpful? 0
  • +
  • -

Page 1 of 1