Solve the below problem:
Q: Block A of mass m is attached to a cord which is wrapped around a uniform disk of mass M. The block is released from rest and falls through a distance h before the cord becomes taut. Derive expressions for the velocity of the block and the angular velocity of the disk immediately after the impact. Assume that the impact is
(a) Perfectly plastic,
(b) Perfectly elastic.