Question: Simulation of survey data collection. Create this program in Visual Basic Code The purpose of the lab is to simulate 1 0 0 responses to

Simulation of survey data collection. Create this program in Visual Basic Code
The purpose of the lab is to simulate 100 responses to a survey measuring quality of service on a scale of 1-10.Use a collect button to seed a 100 integer array with random integers from 1-10.Use a second array of 10 integers to count the total of each type of response, i.e.the total number of 1s,the total number of 2s,etc. Those in charge of the service want to know the mean, median, and mode of the responses. Please add a reset button, and a tabulate button to neatly zone the output in the listbox. The output of the program should display the results of the total of each response in a table in a listbox. Ex.
Response Frequency.
19
212
37
...
1013 Also, in separate controls, the program needs to output the mean, median, and mode. The mean can be found by averaging the 100 responses. Write a function to return the mean of the entries in the array. Report the result rounded to 1 decimal place. The median is the middle number. Use the frequency array to find the 50th and 51st value. If they are the same, then that is the median. If they are different, then the median is their average. The mode is the most frequent response. Write a function to find the largest value in the 10 integer array and use its return value to determine the mode. Remember, if there is a tie, then you need to report all responses with that frequency. (You should use a listbox for this output, in case there are multiple modes)

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!