82.0k views
0 votes
The dimensions (width and length) of room1 have been read into two variables : width1 and length1. The dimensions of room2 have been read into two other variables : width2 and length2. Write a single expression whose value is the total area of the two rooms.

1 Answer

3 votes

Answer:

width1*length1+width2*length2 = totalArea

Explanation:

To calculate the area of a rectangle you should multiply it's base by it's high.

In this case width times length for a given room

width1 * lenght1 = area of room1

width2 * lenght2 = area of room2

totalArea = area of room1+area of room2

This asumes that there is no overlaping between the rooms and that the rooms are rectangular

User Wael Assaf
by
8.6k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.