Give one example of a situation in which

Give one example of a situation in which
(i) The mean is an appropriate measure of central tendency
(ii) The mean is not an appropriate measure of central tendency but the median is an appropriate measure of central tendency

(i) Mean is appropriate measure of central tendency in all the cases where it is important to take all observations into account and data does not have any extreme values.
For example, in case of temperature of a month.
(ii) Mean is not suitable in cases where there are very high and low values in a data set.
For example, salary in a company.