An ideal gas is sealed within a container at a temperature of 17°C and a pressure of 101 kPa. The container is heated until the temperature of the gas reaches100°C. A valve in the container is then opened to allow gas to escape until the pressure falls back to 101 kPa at 100°C.
a) Calculate the pressure in the gas just before the valve is opened.
b) Calculate the fraction of the initial mass of gas that was lost as a result of opening the valve