heated to a final state where the pressure is 6 bar and the temperature is 160°C. While the ammonia is heated, its pressure varies linearly with specific volume. For the ammonia, determine the work and heat transfer, each in kJ/kg.