In triangle \( \triangle ABC \), let \( D \) be the foot of the altitude from \( A \) to \( BC \). If \( \angle BAC = 40^\circ \) and \( \angle ACB = 50^\circ \), find the measure of the exterior angle \( \angle BDC \). Let's think step by step and output the final answer within \boxed{}.
user