Question: 1. (20%) Create a program that calculates the minimum, maximum, median, and mean of an array of numbers. Sort the array and print the unsorted

 1. (20%) Create a program that calculates the minimum, maximum, median,

1. (20%) Create a program that calculates the minimum, maximum, median, and mean of an array of numbers. Sort the array and print the unsorted and sorted version at the end. (a) The program should read 8 values to compute the statistics on. (b) You must calculate the minimum, maximum, median, and mean using your own code (NO LIBRARIES). (c) You can use float.h for floating point limits. (d) Use proper indentation and formatting in your code. (e) Each statistic must be implemented as a separate function. (f) The functions must take an array as a formal parameter and return a floating point. (8) Output the values as comma separated values in the following order: i. min ii. max iii. median iv. mean (h) Below the statistics, print the unsorted array on one line and the sorted version on the last line. (i) Your code should be properly formatted to reflect the scope of each statement. 6) Save your code as stats_sort.c

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 Databases Questions!