Create a method in your survey class called logresponse

Assignment Help JAVA Programming
Reference no: EM131188441

Java programming

Enhance your UML Class Diagram for your Survey class to include an attribute, which is a grid 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 grid.

• The Survey class should have a displaySurveyResults() method that prints out the name of the survey and displays the entire grid that holds the results.

• The Survey class should have a displayQuestionStats() method that takes an int value that is the question number and displays the responses entered so far for that question in tabular form.

• Your Survey class should store 10 questions in an array of Strings. Your class should have an enterQuestions() method that allows the user to enter 10 questions for a 10-question survey. This should be done prior to the survey application starting a survey.

• Create a method in your Survey class called "logResponse()." This method should take three arguments. The first argument is an int value (which is the respondent id); the second argument is an int value (which is the question number); and the third argument is an int value, which is the response entered (value from 1 to 5). This method should enter the response into the right location on the survey grid that corresponds to the respondent ID and the question number.

Implement the enhancements to your Survey class according to the requirements presented above. 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

Update your Design Document for this Phase and corrections needed from prior Phases.

Submit your Design Document and zipped NetBeans project.

Reference no: EM131188441

Questions Cloud

Qualified individuals with disabilities : The ADA creates a protected class called "qualified individuals with disabilities." Discuss what this phrase means and how one qualifies for protection. Response has to be at least 150 words.
Strategic role and purpose of organizational behavior : Describe the strategic role and purpose of organizational behavior for the company selected in Week One. Identify the organizational factors of organizational behavior for the company selected in Week One.
Calculate basic earning per share-diluted earnings per share : Hughes Technology has had net income of $450,000 in the current fiscal year. There are 100,000 shares of common stock outstanding along with convertible bonds, which have a face value of $1.2 million. The $1.2 million is represented by 1,200 differen..
International manager for an american mnc : You have a term project due in Unit 8 but it is highly recommended you begin working on this project this week. You are the international manager for an American MNC that specializes in high-end winter sports gear.
Create a method in your survey class called logresponse : Create a method in your Survey class called "logResponse()." This method should take three arguments. Implement the enhancements to your Survey class according to the requirements presented above.
What are the elements of social structures : What is social interaction? What are the elements of social structures? How does this apply to the activity you just completed? What are the functions of social institutions? How do you see this applied in your life?
Problem regarding the immigration enforcement : Immigration enforcement issues have continued to grow in complexity and intensity over the past several years. These debates have stemmed from legal battles, state's rights, and Department of Homeland Security jurisdiction over immigration enforce..
Calculate the standard deviation of escapist : The common stock of Escapist Films sells for $40 a share and offers the following payoffs next year. Calculate the expected return of Escapist. Calculate the standard deviation of Escapist.
Role of department of homeland security in cybersecurity : Describe the role of Department of Homeland Security in cybersecurity for U.S. citizens and U.S corporations with regards to the attacks from WikiLeak supporting hackers. What can the Department of Homeland Security do? What should the Department ..

Reviews

Write a Review

JAVA Programming Questions & Answers

  The menu is displayed and the user must select

The menu is displayed and the user must select an option (a number between 0 and 7). The action corresponding to the selection is performed, then the menu is displayed again and the user can choose another option.

  Count the occurrences of words in a songs lyrics

Count the Occurrences of words in a song's lyrics, State the approach you will use if you get a hard copy of a song's lyrics.

  Method to store the product of the two arrays in third array

Write a method to store the product of the two arrays in the third array

  Create java program to calculate the net pay for an employee

Create a Java Program to calculate the net pay for an employee. In this payroll program, you will need to allow the user to input the following information Input your First Name: Elmer.

  Find factors of a given number

Write a java program to find factors of a given number.

  Program that generates an invoice for a hardware store

You are asked to write a program that generates an invoice for a hardware store.

  Recursion in binary search trees

Assignment is intended to give you practice writing recursive code that traverses a common computer programing structure: a binary search tree.

  A method that takes a two-dimensional array

A method that takes a two-dimensional array of int's as a parameter and searches the array for the second parameter, returning true if the second parameter matches any of the integers in the array, and false otherwise.

  Write a method for the purse class

Write a method for the Purse class public boolean sameContents(Purse other) that checks whether the other purse has the same coins in the same order.

  Print out each word of the input sentence to a separate line

After this, create another program that could be used to take the words in words.txt and recreate the original sentence - this time printing the result to the screen. Please write well commented code.

  Compare the readability and writability of for loop in java

Search the internet about the properties of the for loop in Ada, compare the readability, writability and reliability of the for loop in Ada and Java. Explain your answer

  What is an advantage of executing a process in background

What is an advantage of executing a process in background? How do you execute one program from within another?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd