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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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