Program: Write a program that creates an array of 200 random real numbers between 0 and 200. Using the statistics library, calculate and output the following: mean, median, variance, standard deviation, maximum value, and minimum value.
You have to add a function that has the array and the size of the array as inputs, along with a threshold value. The function should output an integer that shows the number of values in the array that are less than the threshold value. Show the result.
Note: The median function will probable return the wrong result -- that's fine for now - It have to compile with no errors and follow the specific directions.