1require_relative "../physics"23question :air_shared_with_an_evacuated_vessel do4 kind :scq5 describes "A vessel containing %{volume} of air at %{pressure} is connected to an evacuated vessel of capacity " \6 "%{capacity}. The resultant air pressure is"7 given volume: "0.1 m3"8 given pressure: "76 cm of Hg"9 given capacity: "0.09 m3"1011 option "20 cm of Hg"12 option "30 cm of Hg"13 option "40 cm of Hg"14 option "60 cm of Hg"15end
1require_relative "../questions/air_shared_with_an_evacuated_vessel"2require_relative "../science/kinetic_theory/ideal_gas"34solve :air_shared_with_an_evacuated_vessel, using: IdealGas do5 objects :air, :spread, :empty67 take volume: air.volume, pressure: air.pressure, capacity: empty.volume89 deduce_from "is connected to an evacuated vessel", spread.volume => air.volume + empty.volume,10 spread.amount => air.amount11 assume air.temperature => "300 K", spread.temperature => air.temperature1213 answer find_value(spread.pressure, in: "cm of Hg")1415 conclusion "The same air at the same temperature now fills 0.19 m³ instead of 0.1 m³, so its pressure falls in " \16 "the same proportion, from 76 to 40 cm of mercury."17end
1require_relative "../solutions/air_shared_with_an_evacuated_vessel"23play_with :air_shared_with_an_evacuated_vessel do4 title "Air Shared With an Evacuated Vessel"5end