A continuous random variable $X$ has probability density function given by
$$
f(x)=
\begin{cases}
0, & x<0,\\
k\mathrm e^{-2x^2}, & 0\leqslant x<\infty,
\end{cases}
$$
where $k$ is a constant.
(i) Sketch the graph of $f(x)$.
(ii) Find the value of $k$.
(iii) Determine $\operatorname E(X)$ and $\operatorname{Var}(X)$.
(iv) Use statistical tables to find, to three significant figures, the median value of $X$.