Solve the below problem:
Q: A piston-cylinder device contains 0.8 kg of nitrogen initially at 100 kPa and 27°C. The nitrogen is now compressed slowly in a polytropic process during which PV1.3 = constant until the volume is reduced by one-half. Determine the work done and the heat transfer for this process.