A frictionless piston-cylinder device contains 2 kg of air at 100 kPa and 300 K (state 1). Air is now compressed until it reaches a final temperature of 360K (state 2). During the process, the pressure of the air inside the piston-cylinder device varies with the volume according to the equation:
PV^1.2 = C,
Where C is a constant. Determine:
A) The magnitude and direction of the work during this process
B) The magnitude and direction of the heat transfer during this process