- Joined
- Oct 27, 2019
- Messages
- 1
- Reaction score
- 0
How do I fix this error
• Write/define a function area_circle that takes in the radius to calculate and return the area of a circle. (Note: You can take pi to be 3.142)
• Write/define a function area_triangle that takes in the base and height to calculate and return the area of a triangle. (Note: Area of triangle = (base * height) /2)
• Use the above functions to calculate the total area of the shaded region in the figure below and print the result.
• Write/define a function area_circle that takes in the radius to calculate and return the area of a circle. (Note: You can take pi to be 3.142)
• Write/define a function area_triangle that takes in the base and height to calculate and return the area of a triangle. (Note: Area of triangle = (base * height) /2)
• Use the above functions to calculate the total area of the shaded region in the figure below and print the result.