Create a square root function with:

(a) domain of $\displaystyle [3, \infty)$ and a range of $\displaystyle (-\infty, 5]$.

Would this be right? $\displaystyle f(x)=-\sqrt{x+3}+5$

And how would you create a square root function that has a domain of all real numbers?