The situation in the question can be represented by a right triangle with a hypotenuse of 45 feet and one of the angles as 50 degrees. We are to find the side opposite angle 50 degrees, hence we make use of sine of angles.
Let the height of the building be x, then
![sin(50^o)=\cfrac{opp}{hyp}=\cfrac{x}{45}\\ \\ \Rightarrow x=45sin(50^o)=34.47](https://img.qammunity.org/2019/formulas/mathematics/middle-school/hckas065ah5gajgxbwpc9k3bggyahnq7ls.png)
Therefore, the height of the building is 34.5 feet to the nearest tenth of a foot.