Solve the below problem:
Q: A piston/cylinder contains 2 kg water at 5 MPa, 800°C. The piston is loaded so pressure is proportional to volume, P = CV. It is now cooled by an external reservoir at 0°C to a final state of saturated vapor. Find the final pressure, work, heat transfer and the entropy generation for the process.