A simple pendulum with a period T = 2.00 s is attached to the ceiling of an elevator which is initially at rest. Calculate the period of oscillations when the elevator begins to accelerate upwards with acceleration a = 1.00 m/s2. Calculate the period of oscillations when the elevator accelerates downwards with acceleration a = 2.50 m/s2.