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 responses to a survey measuring quality of service on a scale of Use a collect button to seed a integer array with random integers from Use a second array of integers to count the total of each type of response, iethe total number of sthe total number of setc. 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.
Also, in separate controls, the program needs to output the mean, median, and mode. The mean can be found by averaging the responses. Write a function to return the mean of the entries in the array. Report the result rounded to decimal place. The median is the middle number. Use the frequency array to find the th and st 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 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
