Final answer:
The velocity and acceleration of a cannonball shot directly upwards can be calculated using known kinematic equations. The maximum height is achieved when velocity equals zero, and the time it hits the ground can be found by setting the height equation to zero.
Step-by-step explanation:
When a cannonball is shot directly upwards, the position, velocity, and acceleration at any point in time can be determined using kinematic equations. The height s(t) after t seconds is given by s(t) = 160t - 16t2. The velocity v(t) after t seconds is v(t) = 160 - 32t, and the acceleration a(t), which is due to gravity, is a constant at -32 ft/s2. To find the maximum height reached by the cannonball, we set the velocity v(t) to zero and solve for t, then substitute this value back into s(t).
To determine when the cannonball hits the ground, we solve s(t) = 0 for t. It is known that the maximum height the cannonball reaches is 400 ft and it hits the ground after 10 seconds as per the provided information.