Question: JAVA: write a simple polling program that allows users to rate five issues from 1 (least important) to 5 (most important). The five issues are:

JAVA:

write a simple polling program that allows users to rate five issues from 1 (least important) to 5 (most important). The five "issues" are: 1. Global Warming 2.Ending Homelessness 3. Women's Rights 4. Animal Rights 5. BLM Use a one-dimensional array topics (of type String) to store the five causes. To summarize the survey responses, use a 5-row, 5-column two-dimensional array responses (of type int), each row corresponding to an element in the topics array. When the program runs, it should ask the user to rate each issue or use the random number generator to create data. Then have the program display a summary of the results, including:

a)A tabular report with the five topics down the left side and the 5 ratings across the top, listing in each column the number of ratings received for each topic. b)To the right of each row, show the average of the ratings for that issue.

c)Which issue received the highest point total? Display both the issue and the point total.

d)Which issue received the lowest point total? Display both the issue and the point total.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!