Help?


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.
 

Attachments

  • Screen Shot 2019-10-27 at 12.59.13.png
    Screen Shot 2019-10-27 at 12.59.13.png
    102.4 KB · Views: 117
  • Screen Shot 2019-10-27 at 13.05.57.png
    Screen Shot 2019-10-27 at 13.05.57.png
    42.9 KB · Views: 110
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top