Question: In C please 1. Please write a program that will a. ask the user for an array size, b. create and fill that array with
1. Please write a program that will a. ask the user for an array size, b. create and fill that array with random numbers varying between 1 and 100, then c. calculate and display the i. mean ii. median, and ii standard deviation of the numbers in the array. The mean is the sum of all the values divided by the number of values. When the elements of the array have been sorted, the median is the middle value (if the array size is odd) or the average of the two middle values (if the array size is even). The standard deviation can be found from the following equation: rt where s is the standard deviation, n is the number of data points, Xi are the individual data points, and X is the mean of the data values. Sample output for this program will look like this: AssignmentA Please enter the size of the random array to be analyzed:100 The mean of your array is 49.04 The median of your array is 49.00 The standard deviation of your array is 26.91. $ AssignmentA Please enter the size of the random array to be analyzed: 1000 The mean of your array is 51.05. The median of your array is 51.00 The standard deviation of your array is 28.83 $ AssignmentA Please enter the size of the random array to be analyzed:100000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
