Question: Write a program to give an opinion survey to several users, and print the average results when all users have completed it. Requirements: Each question

Write a program to give an opinion survey to several users, and print the average results when all users have completed it. Requirements: Each question has 1 of 5 possible answers: "Strongly Agree," "Agree," "Neither Agree Nor Disagree," "Disagree," "Strongly Disagree" A survey consists of 3 questions. Make up your own questions. Any number of users can answer the survey. When the last survey is complete, display the average response to each question. Technical Requirements: User input should be a number between 0 and 4, corresponding to the possible answers above, in order. Be sure to handle bad input. Results of each survey are stored in a list of numbers for easy average calculation. Each question and its results are stored in a dictionary. The question/result dictionaries are stored in a list, one element for each question/answer dictionary. So we have a list inside a dictionary inside of a list. Average for each question is calculated in a user-defined function that takes the list of responses as a parameter and returns a properly rounded integer. The average result should be displayed as one of the answer choices above, not just as a number. Include docstrings for the program and for each function you create. You program docstring should include your name, student number, the assignment number and title.

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 Programming Questions!