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 and

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, ti and te, 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 set Radius method or via a constructor
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
