A force F is exerted by a broom handle on the head of the broom, which has a mass m. The handle is at an angle θ to the horizontal, as shown. The work done by the force on the head of the broom as it moves a distance d across a horizontal floor is

(A) Fd sin θ
(B) Fd cosθ
(C) Fm cosθ
(D) Fm tanθ
(E) Fmd sinθ