Question: Define statistical functions that sort an array, find minimum and maximum number in the array, calculate range, mean and median of the numbers in the
Define statistical functions that sort an array, find minimum and maximum number in the array, calculate range, mean and median of the numbers in the array. Write a main program that display menu to do these:
- Insert - to input 20 numbers into one dimensional array,
- Sort - call functions sort that have been defined earlier and display the result
- Mean - call functions mean that have been defined earlier and display the result
- Median - call function median that have been defined earlier and display the result
- Range - call function median that have been defined earlier and display the result
- Exit - will stop the program from running, otherwise the program will continuously running by asking user to input choice from the menu.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
