Let $f, g, h$, and $k$ be defined on $[0,1]$ as follows:
$$
\begin{array}{ll}
f(x)= \begin{cases}0 & \text { if } x \notin \mathbb{Q} \\
1 & \text { if } x \in \mathbb{Q}\end{cases} & h(x)= \begin{cases}1-x & \text { if } x \notin \mathbb{Q} \\
x & \text { if } x \in \mathbb{Q}\end{cases} \\
g(x)= \begin{cases}0 & \text { if } x \notin \mathbb{Q} \\
x & \text { if } x \in \mathbb{Q}\end{cases} & k(x)= \begin{cases}0 & \text { if } x \notin \mathbb{Q} \\
1 / n & \text { if } x=m / n \in \mathbb{Q} \\
& \text { (in lowest terms). }\end{cases}
\end{array}
$$
Prove that $f$ is not continuous at any point in $[0,1]$, that $g$ is continuous only at $x=0$, that $h$ is continuous only at $x=1 / 2$, and that $k$ is continuous only at the irrational points in $[0,1]$.