Answer:
Considering the fire point at (0,h), x-direction positive to the right (→) and y-direction positive to up (↑) and the only force acting after fire is the projectile weight = -mg in the y-direction.

Explanation:
First, we apply the Second Newton's Law in both x and y directions:
x-direction:

Integrating we have

Taking into account that a=(dv/dt) and v=(dx/dt):

y-direction:

Integrating we have

Taking into account that a=(dv/dt) and v=(dy/dt):
