1require_relative "../physics"23question :at_the_top_of_a_throw do4 kind :mcq5 describes "A ball thrown straight up is at its highest point. Which are true?"67 option "Its velocity is zero", as: :still8 option "Its acceleration is zero", as: :no_acceleration9 option "Its acceleration is g, downward", as: :g_down10 option "It is in balance for an instant", as: :balance11end
1require_relative "../questions/at_the_top_of_a_throw"2require_relative "../science/motion_in_a_straight_line/uniform_acceleration"34solve :at_the_top_of_a_throw, using: UniformAcceleration do5 objects :ball6 ball.goes(:rising)78 deduce_from "thrown straight up", ball.acceleration => -g9 deduce_from "at its highest point", ball.final_velocity => "0 m/s"10 assume ball.initial_velocity => "20 m/s"11 assume g => "9.8 m/s2"12 find_value ball.acceleration13 take still: ball.final_velocity == 0, no_acceleration: ball.acceleration == 0,14 g_down: ball.acceleration == -g, balance: ball.acceleration == 015 answer options.select { |o| holds?(o.taken) }1617 conclusion "Gravity does not stop pulling at the top: the velocity passes through zero on its " \18 "way from up to down, and the acceleration is g downward all the time, which is why " \19 "the ball does not stay there."20end
1require_relative "../solutions/at_the_top_of_a_throw"23play_with :at_the_top_of_a_throw do4 title "At the Top of a Throw"5end