Solve the below problem:
Q: A piston-cylinder device contains 50 kg of water at 250 kPa and 25°C. The cross-sectional area of the piston is 0.1 m2. Heat is now transferred to the water, causing part of it to evaporate and expand. When the volume reaches 0.2 m3, the piston reaches a linear spring whose spring constant is 100 kN/m. More heat is transferred to the water until the piston rises 20 cm more. Determine
(a) The final pressure and temperature and
(b) The work done during this process. Also, show the process on a P-V diagram.