An ideal diatomic gas is enclosed in an insulated chamber at temperature
300 K. The chamber is closed by a freely movable massless piston, whose initial height from the base is
1 m. Now the gas is heated such that its temperature becomes
400 K at constant pressure. Find the new height of the piston from the base.
If the gas is compressed to initial position such that no exchange of heat takes place, find the final temperature of the gas.