Create a user-friendly application

Assignment Help Basic Computer Science
Reference no: EM131518394

Java language:

You have been asked by your manager to create a user-friendly application that will present a survey to your customers. The application will compile and analyze the results entered by the survey respondents who are customers who have shopped at your online store. You will deliver your working application with a design document and test results for the final task in this course.

As you progress through each phase in the course, the tasks you complete will provide you with code that will help you build your survey application. You are to begin the design of the application in this first task.

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.

2. Enhance your 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.

Reference no: EM131518394

Questions Cloud

Reasons for relatively fast eigrp neighbor : What are the reasons for relatively fast EIGRP neighbor loss detection on point-to-point subinterfaces?
Describe the three basic types of network topologies : Describe the three basic types of network topologies and provide a sample diagram of each type.
Describe the current rate of obesity in the united states : Describe the current rate of obesity in the United States and how it is expected to change in the next 10 to 20 years
Which of the concepts does it exemplify : Why is it compelling? Which of the concepts does it exemplify? How have these concepts been challenged by the advent of immediacy in news release?
Create a user-friendly application : You have been asked by your manager to create a user-friendly application that will present a survey to your customers.
The extent of researcher interference : How should a researcher proceed, given this scenario? How might the results be different with different approaches?
Focus on migration issues : How can the business's needs be addressed by the system you recommend?
What would be your recommendation for attempting to correct : What would be your recommendation for attempting to correct (over a period of time) the damage done in the business office
What opposing viewpoint or viewpoints does writer include : What opposing viewpoint or viewpoints does the writer include? Evaluate the effectiveness of the writer's reasons in support of his or her assertions.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Country of cuba for the purposes of negotiating

The Governor of the State of Florida traveled to the country of Cuba for the purposes of negotiating a treaty to promote the trade and importation of tobacco into his state for the benefit of Florida's cigar industry.

  Asciidoctor with the asciidoctor gradle plugin

Converting an AsciiDoc to PDF and HTML5 using Asciidoctor with the Asciidoctor Gradle plugin. SO I changed the CSS in the code it only updated in the pdf not the HTML5 looking for some help from the experts out there to see if you can help me get ..

  Management the two types of documents

Management wants to know the best document to use to obtain information in order to make a decision on a system. As a systems analyst, explain to management the two types of documents available and what they are used for.

  Develop a contingency plan for ipremier

Develop a contingency plan for iPremier to be better prepared for similar future events

  How it relates to the concept of integrity

Define negative responsibility and explain how it relates to the concept of integrity, according to Bernard Williams?

  Enter international markets

Explain the five modes firms use to enter international markets.

  Method for making wise decisions in the face of uncertainty

Comment on the statement bringing out clearly how does statistics help in business decision-making.

  Explain differences between ipv4 and ipv6

Write the memo to Mary Jane Newman, communications manager for Beautivision. When preparing the memo, keep in mind that Ms. Newman has some knowledge of information technology but is not an expert.

  What is the objective of tcp congestion control

For congestion control, TCP uses methods like AIMD (Additive increase, multiplicative decrease), slow start and congestion avoidance.

  Determine the mean effective pressure

An ideal diesel engine has a compression ratio of 20 and uses air as the working fluid. The state of air at the beginning of the compression process is 95 kPa and 208°C.

  Regional meat wholesaler and retailer

Sherry's Meats, a regional meat wholesaler and retailer, needs to collect up-to-date information on how much of each meat product it has in each store. It will then use that information to schedule deliveries from its central warehouse.

  Internet for articles on computer crime prosecutions

Search the Internet for articles on computer crime prosecutions. Write a short, 1-page summary of the case including information on the outcome of the case and how digital forensics contributed to either the successful prosecution or acquittal of ..

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