Help with finding irregularly shape area

javesike1262

New member
Joined
Oct 13, 2019
Messages
1
Hello, I'm having trouble figuring out on how to solve this.
1570989259213.png
For this lab you will find the area of an irregularly shaped room with the shape as shown above.

Ask the user to enter the values for sides A, B, C, D, and E and print out the total room area.

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: 11
Enter side B: 2
Enter side C: 4
Enter side D: 7
Enter side E: 1

Output:
Room Area: 53.5

How do you type the equations in Python Computer Code. I have this due on Monday.
 
Hello, I'm having trouble figuring out on how to solve this.
View attachment 14142
For this lab you will find the area of an irregularly shaped room with the shape as shown above.

Ask the user to enter the values for sides A, B, C, D, and E and print out the total room area.

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: 11
Enter side B: 2
Enter side C: 4
Enter side D: 7
Enter side E: 1

Output:
Room Area: 53.5

How do you type the equations in Python Computer Code. I have this due on Monday.
Can you calculate the area - without using Python?
 
Hello, I'm having trouble figuring out on how to solve this.
View attachment 14142
For this lab you will find the area of an irregularly shaped room with the shape as shown above.

Ask the user to enter the values for sides A, B, C, D, and E and print out the total room area.

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: 11
Enter side B: 2
Enter side C: 4
Enter side D: 7
Enter side E: 1

Output:
Room Area: 53.5

How do you type the equations in Python Computer Code. I have this due on Monday.
To write a formula for this, you will want to first draw a couple extra lines in the figure, perhaps making a large rectangle, a small rectangle, and a right triangle. Then work out expressions for the lengths of the new lines and the short horizontal line in the original.

From those, you can find the three areas, and add them together.

Show your work as far as you can get, and we can help you with the next step.
 
Top