Nitrogen at an initial state of 300 K,150 kPa and 0.2 m3is compressed slowly in an isothermal process to a final pressure of 800 kPa. Determine the work done to the nitrogen and the amount of heat transfer during this process.