1require_relative "../physics"23question :two_nuggets_apart do4 kind :numerical5 describes "The two gold nuggets weigh %{heavier} and %{lighter}. %{difference}?"6 given heavier: "20.17 g"7 given lighter: "20.15 g"8 asks difference: "How many grams heavier is the one than the other"9end
1require_relative "../questions/two_nuggets_apart"2require_relative "../science/units_and_measurement/uncertainty"34solve :two_nuggets_apart, using: Uncertainty do5 take heavier: :a, lighter: :b6 take difference: :d7 answer find_value(:difference, in: "g", figures: 1)89 conclusion "A difference keeps the decimal places of what went into it, not its figures: close " \10 "numbers taken apart lose most of their significant figures."11end
1require_relative "../solutions/two_nuggets_apart"23play_with :two_nuggets_apart do4 title "Two Nuggets Apart"5end