Program that models the path of a projectile in two dimensions