A piston-cylinder contains 0.8 kg of nitrogen initially at 100 kpa and 27 degrees. The nitrogen is compressed slowly in a polytropic process during which pv^1.3 = constant until the volume is reduced by one-half. Determine the work done and the heat transfer for this process.