Answer
The pressure of the rigid container increases. The density of the rigid container remains constant.
The pressure of the flexible container remains constant. The density of the flexible container decreases.
Work Step by Step
By Gay-Lussach's law, an increase in temperature results in an increase in pressure with volume and the number of moles constant. Furthermore, the volume of a rigid container does not increase with temperature increase, and the number of moles does not change in this scenario. Therefore, the density remains constant.
In the flexible container, because the container increases in size to maintain the same pressure as the atmosphere, the pressure inside the container remains constant. Furthermore, because the volume increases to keep the pressure constant, the container experiences a decrease in density as the number of moles remains constant but there is now a larger volume.