This is projectile motion. We know that in this kind of motion the maximum height is given by:

and that, when the motion is complete (this means that the object stops at the same height it begins, like in this case) the total time of flight is given by:

In both of this equations the angle theta represents the angle of launch.
Now, in this case the student fires the cannonball upwards, this means that the angle of launch is 90°; since:

Then, for this problem, the equations above reduced to:

and

Now that we know this we can plug the initial velocity of each case in the equations above to determine the maximum height and time of flight. For example, if the initial velocity is 13 m/s then we have that:

With this procedure we have that the table would be: