Solve the below problem:
Q: A piston/cylinder contains 1 kg of liquid water at 20°C and 300 kPa. There is a linear spring mounted on the piston such that when the water is heated the pressure reaches 3 MPa with a volume of 0.1 m3.
a. Find the final temperature and plot the P-v diagram for the process.
b. Calculate the work and heat transfer for the process.