question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :a_mole_of_hydrogen_atoms do 4 kind :numerical 5 describes "The unit of length convenient on the atomic scale is known as an angstrom and is denoted by Å: " \ 6 "1 Å = 10⁻¹⁰ m. The size of a hydrogen atom is about 0.5 Å. %{volume}, in m³?" 7 asks volume: "What is the total atomic volume of a mole of hydrogen atoms" 8 end
1 require_relative "../questions/a_mole_of_hydrogen_atoms" 2 require_relative "../science/units_and_measurement/dimensions" 3 4 solve :a_mole_of_hydrogen_atoms , using: Dimensions do 5 deduce_from "0.5 Å" , r: "0.5 Å" 6 deduce_from "a mole" , n: "1 mol" 7 take volume: :V_N 8 answer find_value ( :volume , figures: 3 ) 9 10 conclusion "Each atom is unimaginably small, but a mole holds so many of them that together they fill " \ 11 "about a third of a cubic centimetre." 12 end
1 require_relative "../solutions/a_mole_of_hydrogen_atoms" 2 3 play_with :a_mole_of_hydrogen_atoms do 4 title "A Mole of Hydrogen Atoms" 5 end