Question: Write a public static method named areaOfTee that takes one one argument ( a double ) and returns a value ( double ) . The

Write a public static method named areaOfTee that takes one one argument (a double) and returns a value (double). The argument will be the width of a course hole (see diagram above). When called, this method should compute and return the totalTeeArea for a hole with a width given by the argument value (see the Other Details above). In the body of this method , call the areaOfCircle method (that you wrote for a previous part of this project) to compute the totalTeeArea.Part 5- areaOfTee Method
Write a public static method named areaOfTee that takes one one argument (a double) and returns a value (double). The
argument will be the width of a course hole (see diagram above). When called, this method should compute and return the
totalteeArea for a hole with a width given by the argument value (see the Other Details above). In the body of this method, call the
areaofcircle method (that you wrote for a previous part of this project) to compute the total TeeArea.
Examples
Helpful Hints:
You may include and call any methods that you have defined for the previous parts of this challenge.
You may wish to write some additional code (in the main method) to test your method.
There should be no print (or println or printf) statements in your areaoftee method.
There should be no calls to any scanner methods in your areaOfTee method.
Remember that, in Java, when you divide and int by and int, the result will always be an int. For example (1/3) will evaluate to 0.
Examples
areaOfTee(3.0) should return the approximate value 0.79
areaOfTee(8.0) should return the approximate value 5.59
areaOfTee(7.5) should return the approximate value 4.91
Write a public static method named areaOfTee that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!