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
(This is asking to code a program that calculates the floor plan)
Attachments:
Answers
Answered by
0
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
(This is asking to code a program that calculates the floor plan)
Similar questions