Computer Science, asked by livieliveliv, 2 months ago

You are being contracted to lay flooring in a set of irregular apartments. Different apartments are different sizes, but they are all the same shape. Write a program to calculate the area of this floor plan. A sample run is included here. To get the value of pi, use math.pi. You will also need to use math.pow to perform an exponential operation.

Sample run:
Enter length of side A: 5
Enter length of side B: 2
Enter length of side C: 3
Enter length of side D: 3
The area of the room is 20.534291735288516

Attachments:

Answers

Answered by Madankumar808103
2

Answer:

You are being contracted to lay flooring in a set of irregular apartments. Different apartments are different sizes, but they are all the same shape. Write a program to calculate the area of this floor plan. A sample run is included here. To get the value of pi, use math.pi. You will also need to use math.pow to perform an exponential operation.

Sample run:

Enter length of side A: 5

Enter length of side B: 2

Enter length of side C: 3

Enter length of side D: 3

The area of the room is 20.534291735288516

Similar questions