5 A continuous random variable, \(X\), has probability density function given by
$$f ( x ) = \begin{cases} \frac { 1 } { 4 } ( x + 1 ) & 0 \leqslant x \leqslant 2
0 & \text { otherwise } \end{cases}$$
- Find \(\mathrm { E } ( X )\).
................................................................................................................................. . - Find the median of \(X\).