I have two functions, $f:\mathbb{Q}\to\mathbb R_+$ given by $f(x) = \frac{1}{5} \sin{\left (\pi x \right )} + 4 $, and $g:\mathbb{Z_+}\to\mathbb{Q}$ given by $g(x) = - \frac{7 x}{2}$. I needed to find the composite function $h(x)=f(g(x))$
and I got the following result: $\frac{1}{5}\sin \left(-\frac{7\pi x}{2}\right)+4$
I know that the function above is not injective since h[1] = h[5] but why isn't this function surjective?
It's not surjective because it's a function between $\mathbb Z_+$ and $\mathbb R_+$. We know that $|\mathbb Z_+| < |\mathbb R_+|$, so there can't be any surjection from the smaller set to the larger.
Another way to actually show that your function is not surjective is to show that $f(g(x))\leq \frac92$, therefore there is no element $x\in\mathbb Z_+$ such that $f(g(x))=10$.