Question: 4. Write a program that computes the area of a circular region (the shaded area in the diagram) given the radii of the inner
4. Write a program that computes the area of a circular region (the shaded area in the diagram) given the radii of the inner and the outer circles, r; and ro, respectively. We compute the area of the circular region by subtracting the area of the inner circle from the area of the outer circle. Define a Circle class that has methods to compute the area and circumference. You set the circle's radius with the setRadius method or via a constructor.
Step by Step Solution
3.54 Rating (157 Votes )
There are 3 Steps involved in it
Python import math class Circle def initself radius ... View full answer
Get step-by-step solutions from verified subject matter experts
