Question: create a Word document that contains the pseudocode, flowchart, and test plan Project 1 import java.util.Scanner; public class Exercise 0 4 _ 0 5 {

create a Word document that contains the pseudocode, flowchart, and test plan
Project 1
import java.util.Scanner;
public class Exercise04_05{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
// Enter the number of sides
System.out.print("Enter the number of sides: ");
int numberOfSides = input.nextInt();
System.out.print("Enter the side: ");
double side = input.nextDouble();
double area = numberOfSides * side * side
/ Math.tan(Math.PI / numberOfSides)/4;
System.out.println("The area of the polygon is "
+ area);
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!