Solve the each part of given question:
Question: A wheeled car with spring-loaded cannon fires a metal ball vertical.
Part I: If the vertical initial speed of the ball is 5.0m/s as the cannon moves horizontally at a speed of 0.80m/s, how far from the launch point does the ball fall back into the cannon?
Part II: What would happen if the cannon were accelerating?
Show how you get the answer, so that I can better understand how to do it for above question.