In this exercise, you’ll write a simple polling program that allows users to rate five social-consciousness issues from 1 (least important) to 10 (most important). Pick five causes that are important to you (for example, political issues, global environmental issues). Use a one-dimensional array topics (of type String) to store the five causes.  To summarize the survey responses, use a 5-row, 10-column two-dimensional array responses (of type Integer), each row corresponding to an element in the topics array. When the program runs, it should ask the user to rate each issue. Have your friends and family respond to the survey. Then have the program display a summary of the results, including: Data Stephanie: Gun control 8, immigration 10, health care 6, taxes 2, global warming 9 Hassan: Gun control 7, immigration 6, health care 8, taxes 9, global warming 5 Ryan: Gun control 2, immigration 3, health care 8, taxes 9, global warming 1 Lori: Gun control 3, immigration 2, health care 8, taxes 9, global warming 1 David: Gun control 7, immigration 9, health care 8, taxes 6, global warming 10

The task at hand involves creating a simple polling program that allows users to rate five social-consciousness issues on a scale of 1 (least important) to 10 (most important). The program should use a one-dimensional array called “topics” to store the five causes chosen by the programmer. Additionally, a two-dimensional array called “responses” should be used to store the survey responses. Each row in the “responses” array corresponds to an element in the “topics” array.

To begin, the program should prompt the user to rate each of the five causes. This can be achieved by using a loop to iterate through each element in the “topics” array and asking the user to provide a rating. The responses should be stored in the corresponding row of the “responses” array.

Once the survey is complete, the program should display a summary of the results. This can be done by printing out the responses in a specific format. For example, the program could display the responses in the following format:

1. Gun control: 8, 7, 2, 3, 7
2. Immigration: 10, 6, 3, 2, 9
3. Health care: 6, 8, 8, 8, 8
4. Taxes: 2, 9, 9, 9, 6
5. Global warming: 9, 5, 1, 1, 10

In this format, each row corresponds to one of the causes (as specified in the “topics” array), and the numbers represent the ratings provided by each respondent. The first number after each cause corresponds to the rating provided by the first respondent, the second number corresponds to the rating provided by the second respondent, and so on.

To obtain these summary results, the program should iterate through the “responses” array and print out each element in the desired format. This can be achieved by using nested loops, with the outer loop iterating through the rows of the “responses” array and the inner loop iterating through the columns.

In order to fully test the program, it is recommended to have friends and family members take the survey and provide their responses. This will ensure that the program generates accurate and meaningful summary results.

In conclusion, the task is to write a simple polling program that allows users to rate five social-consciousness issues. The program should use arrays to store the causes and survey responses, and it should display a summary of the results in a specific format. It is important to gather a diverse range of responses from multiple individuals in order to obtain meaningful results.

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer