Implement the enhancements to your Survey class according to the requirements presented in the previous Discussion Board task. Your Survey class will include an attribute, which is a matrix to log survey results. It is expected that at most you will have 10 respondents to 10 survey questions. You must use a 2-dimensional array to represent a matrix.



To accomplish the task of further developing your Survey class from your updated UML Class Diagram, you will need to implement the following attributes and methods:





•2 dimensional array to hold the respondents’ results


•displaySurveyResults() method with an int parameter


•String array to hold 10 questions


•enterQuestions() method


•logResponse() method with 3 parameters




This is what I have so far:



-respondentID:int



-surveyTitle:string



-questions[10]:string



-answers[10]:int



-questionArraySize:int



-resultArraySize:int







+<>survey()



+<>survey(title:string)



+generateRespondentID:()int



+getsurveyTitle():string



+setQuestions():void



+getQuestions():void



+respondeseLog(int id. int questions. int answers):boolean



+getsurveyResults():boolean



+getQuestionstats():boolean

 

    • 12 years ago
    complete solution
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      sfa.zip