Question
1. You are to write a subroutine named median_sort which will sort an array of integers so that the resulting values will appear from smallest
1. You are to write a subroutine named "median_sort" which will sort an array of integers so that the resulting values will appear from smallest to largest then return the statistical median, which is the center item in the list. If the list has an even number of items, then the median is the average of the two items closest to the center of the list. The subroutine will expect to be passed the address of an array of type "int", and one integer representing the number of items in the array to sort. You may use any sorting algorithm you want. Assume the use of the Freedom KL46Z board and mbed.org compiler tools.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started