Find the angle of launch required to hit the target with the following variables predefined. :P Have fun.
Here are your variables.
$${\mathtt{V}} = {\mathtt{500}}\left[{\frac{{m}}{{s}}}\right]$$ Round Velocity
$${\mathtt{G}} = {{\left({\mathtt{9.81}}\left[{\frac{{m}}{{s}}}\right]\right)}}^{{\mathtt{2}}}$$ Gravitational Acceleration
$${\mathtt{X}} = {\mathtt{1\,934.34}}{m}$$ Range From Launch To Target
$${\mathtt{Yo}} = {\mathtt{100}}{m}$$ Altitude From Launch To Target
Here is your formula.
$${\mathtt{Angle}} = {\frac{\underset{\,\,\,\,^{\textcolor[rgb]{0.66,0.66,0.66}{360^\circ}}}{{tan}}^{\!\!\mathtt{-1}}{\left(\left(\left({{\mathtt{V}}}^{{\mathtt{2}}}\right){\mathtt{\,-\,}}{\sqrt{\left({{\mathtt{V}}}^{{\mathtt{4}}}\right){\mathtt{\,-\,}}{\mathtt{G}}{\mathtt{\,\times\,}}\left({\mathtt{G}}{\mathtt{\,\times\,}}{{\mathtt{X}}}^{{\mathtt{2}}}\right){\mathtt{\,\small\textbf+\,}}\left({\mathtt{2}}{\mathtt{\,\times\,}}{\mathtt{Yo}}{\mathtt{\,\times\,}}\left({{\mathtt{V}}}^{{\mathtt{2}}}\right)\right)}}\right)\right)}}{\left({\mathtt{G}}{\mathtt{\,\times\,}}{\mathtt{X}}\right)}}$$
Math Time :P, Good luck.