A quick process is genernally adiabatic and a show process isothermal. Since 100 g ice melts, heat given out by the systme (gas in the cylinder) is equal to the required laten heat.
`:. Delta Q = - 100 xx 10^(-3) xx 336 xx 10^(3)`
`= - 3360 J`
`Delta U = 0` (since it is a cyclic process)
But `Delta Q = Delta U + Delta W` (always)
`:. - 3360 = Delta W`
`:.` Work done on the system `= - Delta W = 3360 J`
