The cows have enrolled in an elementary statistics class and are struggling with their homework. Please help them.
You are given a set of $N$ integers $X_i$ ($1 \le N \le 500$, $-5000 \le X_i \le 5000$). Compute the following two statistics:
Print each statistic rounded to exactly six digits after the decimal point.
For the set ${2, 4, 6, 8, 12}$, the mean is $(12+4+6+8+2)/5 = 6.4$, and because there are five numbers, the median is the middle value after sorting, which is $6$.