I need to create a survey by tonight
- Static class variable for the respondentID
- Instance variable for the Survey title
- Two overloaded constructors
- generateRespondentID() method.
| Survey |
| +survey() +surveyTitle.string; +intial_menu_Choice_:int |
| +gernerateRespondentId.string; +(Constructor).survey(); +(Constructor).surveyTitle.string; +setIntialMenuChoice(inti_menu_choice:int):void |
To accomplish the task of developing your Survey class from your designed UML Class Diagram, you will need to implement the following variables and methods:
- Static class variable for the respondentID
- Instance variable for the Survey title
- Two overloaded constructors
- generateRespondentID() method.
Create a test class that tests your survey class. This should test all of the members added to this point in any way that you desire, as long as it is proven that they function as required
The following are requirements of the Survey class:
- The Survey class will have a static class variable that stores the current respondent’s ID. As respondents complete the survey, this value will be incremented by one.
- The Survey class will have an instance variable to hold the title of the survey.
- The Survey class should have two overloaded constructors.
- The first constructor should take no arguments. It should set the survey title to a default value of “Customer Survey”.
- The second constructor should accept a String value for the survey title. It should reset the static respondent ID to zero. It should set the survey title to the value passed into the constructor.
- The survey class should have a generateRespondentId() method which returns the next value of the respondent ID. This method should increment the static instance variable for the respondent ID by one.
from last week assignments
13 years ago
20
Answer(0)
Bids(0)
other Questions(10)
- STR 581 Strategic Planning and Implementation Entire Class
- Art & Architecture
- bus 308 week 1 assignment (week one problems).doc
- Your company has asked you to analyze two mutually exclusive projects for the coming year. Project A will have an...
- ECO_365_Final_Exam best guidance for students 100% correct result .docx
- Niccolo Machiavelli, author of "The Prince", is considered to be the first modern political theorist. Why is Machiavelli considered...
- Final exam Eco372
- Accounting Problems and Excel Solutions 4
- discussion board responses
- plz respond to theses students about what they write about the assignment