Problem S: Nitrogen gas is contained in a rigid 3 m^3 tank, initially at 10 bar and 300 K. Heat transfer to the contents of the tank occurs until the temperature has increased to 400 K. During the process, a pressure-relief valve allows nitrogen to escape, maintaining a constant pressure in the tank. Neglecting kinetic and potential energy effects and using the ideal gas model with constant specific heats evaluated at 350 K, determine the mass of nitrogen that escapes in kg and the amount of energy transferred by heat in kJ.