Question: Please help me write pseudocode, a flowchart drawn out with the appropriate shapes, and a test case matrix for the following Java code: import java.util.Scanner;

Please help me write pseudocode, a flowchart drawn out with the appropriate shapes, and a test case matrix for the following Java code:
import java.util.Scanner;
public class Exercise03_11{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
// Prompt the user to enter the number of sides
// and their length of a regular polygon
System.out.print("Enter the number of sides: ");
int numberOfSides = input.nextInt();
System.out.print("Enter the side: ");
double side = input.nextDouble();
// Compute the area of a regular polygon
double area =(numberOfSides * Math.pow(side,2)/
(4* Math.tan(Math.PI / numberOfSides)));
// Display result
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 Databases Questions!