In a local bar, a customer slides an empty beer mug down the counter for a refill. The bartender is momentarily distracted and does not see the mug, which slides off the counter and strikes the floor at distance d from the base of the counter. The height of the counter is h. (Use any variable or symbol stated above along with the following as necessary: g.)
(a) With what speed did the mug leave the counter?
(b) What was the direction of the mug's velocity just before it hit the floor?