Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The area of a pentagon: Area=4tan(5)5s2 Write a method that returns the area of a pentagon using the following header: public static double area(double side)
The area of a pentagon: Area=4tan(5)5s2 Write a method that returns the area of a pentagon using the following header: public static double area(double side) Write a main method that prompts the user to enter the side of a pentagon and displays its area (format area in main method for 3 decimal places). Here is sample run: Enter the side: 6.5 The area of the pentagon is 72.690
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