169k views
5 votes
For this quiz, you will ask the user to enter the values for sides A, B, C, D, and E and print out the total room area according to the diagram below:

Remember the formula for finding the area of a rectangle is length * width and the area of a right triangle is 0.5 * the base * height.

Please note the final area should be in decimal format.

Sample Run
Enter side A: 6
Enter side B: 3
Enter side C: 13
Enter side D: 9
Enter side E: 4
Sample Output
Room Area: 76.5

For this quiz, you will ask the user to enter the values for sides A, B, C, D, and-example-1
User Eli Grey
by
6.3k points

1 Answer

6 votes

Answer:

same run

enter side A:6

Step-by-step explanation:

please note the final area should be in decimal formy

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