Skip to main content

✍️ Practice Lab 1

Write a C# program that estimates the floor area of Brittain Hall (BH).

Approximate each floor of BH as a trapezoid with bases b1b_1 and b2b_2 plus a triangle with base b3b_3, where both shapes have height ww (the hallway width).

Brittain Hall approximated as a trapezoid and a triangle

With N=4N = 4 floors, the total area is:

AreaBH=N(b1+b22 w+b3 w2)\text{Area}_{BH} = N \left( \frac{b_1 + b_2}{2} \, w + \frac{b_3 \, w}{2} \right)

Your program must print the estimated area of Brittain Hall.