question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :room_in_a_mole do 4 kind :numerical 5 describes "A mole of hydrogen gas fills about 22.4 litres at room pressure and 0 °C. Take a hydrogen atom to be a ball of radius 0.5 Å. %{times}?" 6 asks times: "How many times the room taken by the atoms themselves is the room the gas fills" 7 end
1 require_relative "../questions/room_in_a_mole" 2 require_relative "../science/units_and_measurement/dimensions" 3 4 solve :room_in_a_mole , using: Dimensions do 5 deduce_from "0.5 Å" , r: "0.5 Å" 6 deduce_from "A mole" , n: "1 mol" 7 deduce_from "22.4 litres" , V_m : "0.0224 m3" 8 take times: :R_V 9 answer find_value ( :times , figures: 2 ) 10 11 conclusion "A gas is almost all empty space, and that is why it can be squeezed and a solid " \ 12 "cannot." 13 end
1 require_relative "../solutions/room_in_a_mole" 2 3 play_with :room_in_a_mole do 4 title "Room in a Mole" 5 end