Just a little simulator I've made that you can play with. It replicates a (stationery) cannon! All you do is drag the muzzle velocity slider to control the speed at which the cannon ball leaves the cannon, and, unless it's not locked on the optimum angle setting, you tilt the cannon using left and right arrow keys!
Trigonometry helped, as well as a bit of elbow grease (just an expression). It took me about... an hour? 50 minutes? (to make) I made this in an IT lesson. sound: youtube