Required Skills Inventory * Write a method according to given specifications * Write a method that takes arguments and returns a value * Use parameter variables in a method body * Write a return statement Use math operators to construct an expression Copyright 2021 Arizona State University - THIS CONTENT IS PROTECTED AND MAY NOT BE SHARED, UPLOADED, SOLD, OR DISTRIBUTED. Problem Description and Given Info Gene's Green Golf Center is remodeling their golf course, and has hired you to help write a program that will be used to determine what materials will be needed to complete the project. There are 18 holes on the golf course, but Gene likes to keep things simple, so every hole looks very similar. A typical Hole at Gene's Green Golf Center looks like the image below - only the length and width change. Smooth Sod Brick Retaining Wall Bushes Smooth Sod Exit Trail Entry Trail Width LCITE LG Length Given the length and width of a hole (in yards), Gene needs to know the following: 1. Total square yards of rough sod, rounded up to the nearest square yard. 2. Total square yards of smooth sod, rounded up to the nearest square yard. 3. Tons of sand needed for the sand trap (US tons), rounded up to the nearest ton. 4. Number of bushes needed, rounded down to the nearest bush. Other Details . Gene will provide the length and width of the hole in yards. . The Tee area is a circle with a diameter that is always one-third of the course width. . The Putting Green is a circle with a diameter that is always two-thirds of the course width. The Sand Trap is a circle with a diameter that is always one-quarter of the course width. . The Sand Trap is always two foot deep. . Sand weighs 80 Ibs. per cubic foot. . The course is surrounded on all sides by Bushes. Gene wants to plant one bush for every yard of the course perimeter, leaving two openings - one for the Entry Trail, and one for the Exit Trail. These two openings are both one yard wide. No oA wN S In preparation for this project, you will need to implement some basic methods that we will use to make things easier when you are completing the final part of this project. For this Individual Assignment you must implement the following method. Part 1 - area0OfRectangle Function Write a public static method named areaOfRectangle. This method should have two double parameters named width and height (in that order). When called, this method should compute and then return the area (as a double) of a rectangle with the given width and height. Here is some code to start with: public static double areaOfRectangle(
) { double area = return area; ) Examples areaOfRectangle(3.0, 5.0) should return the value 15.0 areaOfRectangle(8.0, 3.0) should return the value 24.0 areaOfRectangle(7.5, 5.5) should return the value 41.25 Helpful Hints: You may wish to write some additional code (in the main method) to test your method. o There should be no print (or printlnor printf) statements in your areaOfRectangle method. There should be no calls to any Scanner methods in your area0OfRectangle method. Need Help? Additional help resources are available by clicking on the words "Need Help?" at the bottom of this page, and search for help or ask a question! B m O History ' Tutorial GenesGreen.java & 1, public class GenesGreen { 2 public static void main(String args) { 3 // you may wish to write some code in this main method 4 // to test your areaOfRectangle method. 5 } 6 g // complete the function definition below 8 public static double areaOfRectangle () T 9 double area = 10 11, return area; 12 ) 13 1