Solve the below problem:
Q: A piston/cylinder assembly contains 1 kg of liquid water at 20oC and 300 kPa. There is a linear spring mounted on the piston such that when the water is heated the pressure reaches 1 MPa with a volume of 0.1 m3. Find the final temperature and the heat transfer in the process.