Solve the all parts of following question:
Question: A simple pendulum is 6.00 m long.
Part A: What is the period of small oscillations for this pendulum if it is located in an elevator accelerating upward at 7.00 m/s2?
s
Part B: What is the period of small oscillations for this pendulum if it is located in an elevator accelerating downward at 7.00 m/s2?
s
Part C: What is the period of this pendulum if it is placed in a truck that is accelerating horizontally at 7.00 m/s2?
s
If possible just a brief explanation how you got the answer?