What amount of heat will be generated in a coil of resistance R due to a charge q passing through it if the current in the coil
(a) decreases down to zero uniformly during a time interval Δt;
(b) decreases down to zero halving its value every Δt seconds?