Question: Part 5 - areaofTee Method Write a public static method named areaofTee that takes one one argument ( a double ) and returns a value
Part 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 totalTeeArea.
Examples
areaOfTee should return the approximate value
areaOfTee should return the approximate value
areaOfTee should return the approximate value
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 will evaluate to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
