A piston/cylinder assembly contains 1 kg of liquid water at $20^{\circ} \mathrm{C}$ and $300 \mathrm{kPa}$, as shown in Fig. P4.42. There is a linear spring mounted on the piston such that when the water is heated the pressure reaches
$3 \mathrm{MPa}$ with a volume of $0.1 \mathrm{m}^{3}$
a. Find the final temperature.
b. Plot the process in a $P$ -v diagram.
c. Find the work in the process.