# Programming assighment

*label*Programming

*timer*Asked: Apr 19th, 2015

**Question description**

**
Write a class that has three overloaded static methods for calculating the areas of the following geometric shapes: • circles -- area = π*radius^2 (format the answer to have two decimal places) • rectangles -- area = width * length • trapezoid -- area = (base1 + base2) * height/2 Because the three methods are to be overloaded, they should each have the same name , but different parameters (for example, the method to be used with circles should only take one parameter , the radius of the circle). Demonstrate the methods by adding a main method that prints out the following areas, each on a separate line: • the area of a circle with radius 3 • the area of a rectangle with length 2 and width 4 • the area of a trapezoid with base lengths 3 and 5 and height 5**

### SAMPLE RUN #1

#### --- Prompts For Keyboard/Console/Standard Input ---

### Inputs

### Outputs

#### --- Monitor/Console/Standard Output ---

**28.27**

8.0

17.5

28.27

8.0

17.5

8.0

17.5

### What The Console Looks Like In An Interactive Session:

#### (Note: this combines standard input with standard output )

>java Area28.27

8.0

17.5