question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :skin_of_a_cube do 4 kind :numerical 5 describes "Each edge of a cube is measured as %{length}. %{area}, in square " \ 6 "metres, to as many significant figures as the measurement allows?" 7 given length: "7.203 m" 8 asks area: "What is its total surface area" 9 end
1 require_relative "../questions/skin_of_a_cube" 2 require_relative "../science/units_and_measurement/dimensions" 3 4 solve :skin_of_a_cube , using: Dimensions do 5 take length: :l 6 take area: :S 7 answer find_value ( :area , figures: 4 ) 8 9 conclusion "An answer can be no surer than the measurement it came from. The edge's figures " \ 10 "decide the area's." 11 end
1 require_relative "../solutions/skin_of_a_cube" 2 3 play_with :skin_of_a_cube do 4 title "The Skin of a Cube" 5 end