hello this is a projectile motion question. I need help with a

When a ball is launched with some angle from a point then the components of velocity of ball can be expressed as,
[tex]\begin{gathered} u_x=u\cos \theta \\ u_y=u\sin \theta \end{gathered}[/tex]The displacement of the ball along x-axis and y-axis can be given as,
[tex]\begin{gathered} x=v_xt \\ y=v_yt-\frac{1}{2}gt^2 \end{gathered}[/tex]Plug in the known values,
[tex]\begin{gathered} x=(u\cos \theta)t \\ y=(u\sin \theta)t-\frac{1}{2}gt^2 \end{gathered}[/tex]The final velocity of the ball along y-axis is,
[tex]v_y=u_y-gt[/tex]At the maximum height the final velocity is zero. Substitute the known values,
[tex]\begin{gathered} 0=u\sin \theta-gt \\ t=\frac{u\sin \theta}{g} \end{gathered}[/tex]This time is for motion of ball upto maximum height therefore, the total time is given as,
[tex]T=\frac{2u\sin \theta}{g}[/tex]The horizontal range of the ball can be given as,
[tex]R=xT[/tex]Substitute the known values,
[tex]\begin{gathered} R=(u\cos \theta)(\frac{2u\sin \theta}{g}) \\ =\frac{u^2\sin 2\theta}{g} \end{gathered}[/tex]When the ball is launched diagonally then the angle is 45 degree which makes the range of ball as,
[tex]R=\frac{u^2}{g}[/tex]because, sin90=1.
Plug in the known values,
[tex]\begin{gathered} 1.02\text{ m=}\frac{u^2}{9.8m/s^2} \\ u^2=(1.02m)(9.8m/s^2) \\ u=\sqrt[]{9.996m^2s^{-2}} \\ \approx3.16\text{ m/s} \end{gathered}[/tex]Therefore, the initial velocity of the ball is 3.16 m/s.
The time taken by ball to reach the highest point is,
[tex]t=\sqrt[]{\frac{2h}{g}}[/tex]Plug in the known values,
[tex]\begin{gathered} t=\sqrt[]{\frac{2(1\text{ m)}}{9.8m/s^2}} \\ \approx0.452\text{ s} \end{gathered}[/tex]Thus, the time taken by ball to reach at highest point is 0.452 s.
The final velocity of ball is given as,
[tex]v=u-gt[/tex]Plug in the known values,
[tex]\begin{gathered} v=3.16m/s-(9.8m/s^2)(0.452\text{ s)} \\ =3.16\text{ m/s-}4.43\text{ m/s} \\ =-1.27\text{ m/s} \end{gathered}[/tex]Thus, the final speed of the ball is -1.27 m/s in which negative sign indicates that the ball is deaccelerating.