A 3-kg bar AB is attached by a pin at D to a 4-kg square plate, which can rotate freely about a vertical axis. Knowing that the angular velocity of the plate is 120 rpm when the bar is vertical, determine
(a) the angular velocity of the plate after the bar has swung into a horizontal position and has come to rest against pin C,
(b) the energy lost during the plastic impact at C