question.rb
solution.rb
playground.rb
1 require_relative "../physics" 2 3 question :the_specific_heat_of_a_metal do 4 kind :numerical 5 describes "In an experiment on the specific heat of a metal, a %{metal_mass} block of the metal at %{hot} is " \ 6 "dropped in a copper calorimeter (of water equivalent %{equivalent}) containing 150 cm³ of water at " \ 7 "%{cool}. The final temperature is %{final}. Taking the specific heat capacity of water as " \ 8 "%{water_heat}, %{heat_capacity}, in J g-1 K-1?" 9 given metal_mass: "0.20 kg" 10 given hot: "150 °C" 11 given equivalent: "0.025 kg" 12 given cool: "27 °C" 13 given final: "40 °C" 14 given water_heat: "4.186 J g-1 K-1" 15 asks heat_capacity: "what is the specific heat of the metal" 16 end
1 require_relative "../questions/the_specific_heat_of_a_metal" 2 require_relative "../science/thermal_properties_of_matter/calorimetry" 3 4 solve :the_specific_heat_of_a_metal , using: Calorimetry do 5 objects :metal , :calorimeter , :water 6 7 take metal_mass: metal . mass 8 take hot: metal . temperature_at_first 9 take equivalent: calorimeter . mass 10 take cool: water . temperature_at_first 11 take final: water . temperature_after 12 take water_heat: water . specific_heat_capacity 13 14 deduce_from "150 cm³ of water" , water . mass => "0.150 kg" 15 deduce_from "water equivalent" , calorimeter . specific_heat_capacity => water . specific_heat_capacity 16 deduce_from "copper calorimeter" , calorimeter . temperature_at_first => water . temperature_at_first , 17 calorimeter . temperature_after => water . temperature_after 18 deduce_from "The final temperature" , metal . temperature_after => water . temperature_after , 19 metal . heat_to_warm => - ( water . heat_to_warm + calorimeter . heat_to_warm ) 20 21 heat_capacity = metal . specific_heat_capacity 22 answer heat_capacity :, in: "J g-1 K-1" , figures: 2 23 24 conclusion "The heat the metal gives up warms the water and the calorimeter, which acts like a little " \ 25 "extra water; that heat over the metal's mass and its fall in temperature is its specific heat." 26 end
1 require_relative "../solutions/the_specific_heat_of_a_metal" 2 3 play_with :the_specific_heat_of_a_metal do 4 title "The Specific Heat of a Metal" 5 end