Question: I am working on my rectanglar calculator in Java. I was comparing my code mport java.util.Scanner; public class RectangleCalculator { public static void main (
I am working on my rectanglar calculator in Java. I was comparing my code mport java.util.Scanner;
public class RectangleCalculator
public static void mainString args
Scanner input new ScannerSystemin;
System.out.printlnWelcome to the Area and Perimeter Calculator";
boolean continueCalculations true;
while continueCalculations
System.out.printEnter length: ;
double length input.nextDouble;
System.out.printEnter width: ;
double width input.nextDouble;
double area width length;
double perimeter width length;
System.out.printlnArea: area;
System.out.printlnPerimeter: perimeter;
System.out.printContinueyn: ;
String userChoice input.next;
continueCalculations userChoice.equalsIgnoreCasey;
with the example given and the example is also incorrect, please help???
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
