Today, in a math exam, I had to solve this question:
In the following distribution, write the upper limit of the median class: $$\begin{array}{|c|c|}\hline \text{Class}&\text{Frequency}\\\hline0-5&13\\6-11&10\\12-17&15\\18-23&8\\24-29&11\\\hline\end{array}$$
My solution was:
First we have to find the cumulative frequencies: $$\begin{array}{|c|c|c|}\hline \text{Class}&\text{Frequency}&\text{C.F.}\\\hline0-5&13&13\\6-11&10&23\\12-17&15&38\\18-23&8&46\\24&11&57\\\hline\end{array}$$ Now we know that $n=\Sigma f_i=57$ and that the median class is the class with frequency closest to $n/2=57/2=28.5$. Therefore the median class is $12-17$ and the upper limit is $17$.
But after the exam, some told me that that we had to first convert it to continuous distribution and the correct answer will be $17.5$, not $17$.
So which answer is correct?