Answer:
The following are the algorithm to this question:
Explanation:
Following are the steps of the algorithm:
step 1:
To calculate the area of the room, firstly we need to divide the given image into parts and calculate the area of the given image.
step 2:
After calculating each part area, we merge all the parts to calculate the areas.
Calculating area of the parts:
In part 1:
It forms the square shape, and the formula of the square is
.
In this diagram we let A=B. that's why the area is
.
In part 2:
In this part also forms the square image. In this, the side is equal to (A-c). so, the area is equal to
.
In part 3:
It forms the triangle shape, and the area of the triangle is
. the value of "b" is E and the "h" is = (A-C). so, the area is
.
The total area is:
