I have this homework exercise and I need some quidelines in order to solve it.
Let $f : \mathbb{R} \rightarrow \mathbb{R}$ be continuous.
(a) If $f(0) > 0$, show that $f(x) > 0$ for all $x$ in some open interval $(-a , a )$.
(b) If $f(x ) \geq 0$ for every rational $x$, show that $f(x ) \geq 0$ for all real $x$ . Will this result hold with $\geq 0$ replaced by $>0$? Explain.