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 Exercise
public static void mainString args
Scanner input new ScannerSystemin;
Prompt the user to enter the number of sides
and their length of a regular polygon
System.out.printEnter the number of sides: ;
int numberOfSides input.nextInt;
System.out.printEnter the side: ;
double side input.nextDouble;
Compute the area of a regular polygon
double area numberOfSides Math.powside
Math.tanMathPI numberOfSides;
Display result
System.out.printlnThe area of the polygon is area;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
