195k views
5 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. submit

User Vinnyjames
by
8.5k points

1 Answer

5 votes
Let's denote width1 with a and length1 with b. Then, the area of this room is
A_(1) = a*b
Let's denote width2 with c and length2 with d. Then, the area of the second room is
A_(2) = c*d
The total area of the rooms is
A=A_(1)+A_(2)=a*b+c*d
User Vikram Kumar
by
8.1k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.