Answer:
The building is 20.68m high.
Step-by-step explanation:
In order to solve this problem we must first do a drawing of what the situation looks like. (Look at the attached picture). Then, we determine what was the velocity of the ball when it reached the top of the window (let's call this
and when it reached the bottom of the window (let's call this
. We can start by finding the velocity the ball has at the top of the window
when it's falling.
In order to do so, we can use the following equation:

We can now solve this equation for
so we get:

or when simplified we get:

now we can substitute values in the formula so we get:

and solve:

Once we got the first velocity, we can proceed and find the second velocity.
We can find that by using the following formula:

So now we can solve for

When solving for
, we get the following formula:

So we can now substitute some values.

When solving this equation we get an answer of:

Once we got those velocities, we can use them to find the distance from the roof to the highest part of the window and the distance between the
lowest part of the window and the floor.
Let's start with the top portion of the window:

in this case, the initial velocity is 0 because we are dropping the ball from the roof. So we can now substitute values so we get:

when solving this for y we get:
y=-3.17m
Now, we can find the height between the lowest part of the window and the floor, so we get:

In this case the time is 1.11s because it's half of the total time the ball is beneath the window when it's falling. So when substituting values we get:

When solving that expression we get that:

so now we have enough information to solve the problem, notice that the heights appear as negative. This is because the bal is falling at this time. Since we only care about the magnitud, we can make them positive.
So in order to find the height of the building, we must ad the three lengths we just found, so we get:
h=3.17m+1.20m+16.31m=20.68m
So the building has a height of 20.68m