discuss how you can evaluate the mean,median, mode for an array of numbers. write the C program to evaluate the mean, median and mode for an array of numbers
Answers
Mean, median, and mode, in mathematics, the three principal ways of designating the average value of a list of numbers. The arithmetic mean is found by adding the numbers and dividing the sum by the number of numbers in the list. This is what is most often meant by an average. The median is the middle value in a list ordered from smallest to largest. The mode is the most frequently occurring value on the list.
Step-by-step explanation:
mean:We sum all N elements in the array, divide the sum by N, and print our result on a new line.
median: To calculate the median, we need the elements of the array to be sorted in either non-increasing or non-decreasing order
mode: We can find the number of occurrences of all the elements in the array.
hope it helps....