Solve the below problem:
Q: One kilogram of ammonia (NH3) is contained in a spring-loaded piston/cylinder as saturated liquid at -20°C. Heat is added from a reservoir at 100°C until a final condition of 800 kPa, 70°C is reached. Find the work, heat transfer, and entropy generation, assuming the process is internally reversible.