Giving examples for real functions with specific parameters Good time of day,
Need some help with my math homework:

Give each an example of a function $f:D\to\Bbb{R}, D\subset\Bbb{R}$ with the given properties. In addition, sketch the graph of the function you have specified.
(a) $D=[0,1]$, $f(0)=1$, $f(1)=2$, there is no $c\in D$ with $f(c)=\frac{3}{2}$
(b) $D=(0,1)$, $f$ is continuous, the interval $f(D)$ is closed and bounded
(c) $D=[0,\infty)$, $f$ is continuous and $f(D)=\Bbb{R}$
(d) $D=[0,1]$, $f$ is bounded and has neither a maximum nor a minimum
(e) $D=(0,1)$, $f$ is continuous and for every $a\in\Bbb{R}$ the set $\{x\in D\mid f(x)=a\}$ has infinitely many elements.


I think I've got the right answers:
a. Doesn't exist, since $D$ is an interval, thus $f(D)$ is an interval and cannot break at any $f(c), c\in{D}$;
b. Doesn't exist, since $(0,1)$ is an open interval and thus $f(0,1)$ cannot be closed;
c. $x*\sin{\root \of{x}}$;
d. Doesn't exist, since $[0,1]$ is closed, and thus $f[0,1]$ cannot be open;
e. Doesn't exist, since $\Bbb{R}$ is unbounded, which means $f(0,1)$ would have to have infinite asymptotes, which breaks the interval $(0,1)$;
Now the problem is that the question specifically states that I need to provide examples and not prove that functions exist and provide examples if they do, and most of these shouldn't even exist in $\Bbb{R}$ in the first place.
I'd like to know if I'm doing it wrong or if the question itself is poorly stated. Attaching image of the original text to show that it's the question that is the problem and not my understanding of it.
Thanks in advance.
 A: Here's some feedback on your proposed answers.
(a) Wrong. What you're saying is true for continuous functions. But notice that this questions does not say that $f$ continuous.
(b) Wrong. A continuous image of a closed interval has to be closed. But the same is not true for open intervals: a continuous image of an open interval doesn't have to be open. It can be open, closed, or neither.
(c) Correct! As a comment, you don't have to have the square root there: $f(x)=x\sin x$ works just as well.
(d) Wrong. See (a).
(e) Wrong. And to be honest, I don't quite understand your reasoning — what does it have to do with asymptotes? A possible idea for constructing an example: to make sure each output value is taken on infinitely many times, we need something oscillating, like a sine function; but so that it oscillates within a bounded interval, we invert its argument and consider $\sin\frac{1}{x}$. It doesn't quite work yet, but we can modify it to get what we want. (As they say in analysis: if you need a nasty counterexample, use $\sin\frac{1}{x}$).
