A projectile is fired from a gun at an angle of 45° with respect to the horizontal. Given that g is 10 meters per second squared, what is the magnitude and direction of the acceleration, in meters per second squared, of the projectile when it reaches its maximum height?