(Extensions of continuous functions) If \(f: A \rightarrow \mathbb{R}, g: B
\rightarrow \mathbb{R}\) \(A \subset B\), and \(f(x)=g(x)\) for all \(x \in A\), then
the function \(g\) is said to be an extension of the function \(f\). Prove each of
the following:
(a) A function that is continuous on a closed set \(A\) can be extended to a
function that is continuous on \(\mathbb{R}\).
(b) A function that is uniformly continuous on a set \(A\) can be extended to a
function that is uniformly continuous on \(\bar{A}\).
(c) A function that is uniformly continuous on an arbitrary nonempty subset of
\(\mathbb{R}\) can be extended to a function that is uniformly continuous on all
of \(\mathbb{R}\).
(d) Give an example of a function \(f\) that is continuous on \((0,1)\) but that
cannot be extended to a function continuous on \([0,1]\).