Convert your Matlab statistics functions to C.
Place all of the function in a single file (as this makes it much easier for me to grade). Convert the top-level routine (e.g., my_stats) to be the main (driver) routine. The main will call (exercise) all of the functions and display the output. Read the file "number_list.txt" to populate the list vector/array.
It will be easiest if you convert the routines one at a time.
mean (my_mean)
maximum (my_max)
minimum (my_min)
range (my_range)
median (my_median)
mode (my_mode)
variance (my_var)
standard deviation (my_std)
Make all of the functions return a double.
Have the mode return only a single mode.
The variance and standard deviation may be for the full population or a sample (to match Matlab use the one for a sample).
If you made use of some of the Matlab functions such as "sum", you will have to replace them with the appropriate code; better yet, replace this kind of function with one of your own much like you did previously with the "sort" function.