A harmonic oscillator consisting of 50gm mass attached to a massless spring has a quality factor 200 .If it oscillates with an amplitude of 2 cm in resonance with a periodic force of frequency 20 Hz , calculate (1) the avg. energy stored in it and (2) rate of dissipation of energy