Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started