I worte the code according to the requirement.And also I wrote the code to continue the program until user enters 4 to quit the program. If you want me to do any modifications other than these I will modify. ________________________________________ GeometricShape.java public class GeometricShape { private double side1, side2, side3; //These are the variables necessary to calculat the perimeter of a triangle private double radius; //Radius is needed to calculate the perimeter of a circle private double length, width; //Length and Width are needed to calculate the perimeter of a rectangle private boolean isTriangle = false; private boolean isRectangle = false; private boolean isCircle = false; //Constructor for a triangle public GeometricShape(double aSide1, double aSide2, double aSide3) { side1 = aSide1; side2 = aSide2; side3 = aSide3; isTriangle = true; } //Task #1a - Finish writing an Overloaded Constructor for a rectangle here: (don\'t forget to set isRectangle to true) public GeometricShape(double aLength, double aWidth) { this.length=aLength; this.width=aWidth; isRectangle=true; } //Task #1b - Write an Overloaded Constructor for a circle here: (don\'t forget to set isCircle to true) public GeometricShape(double radius) { this.radius=radius; isCircle=true; } public double getRadius() { return radius; } public double getSide1() { return side1; } public double getSide2() { return side2; } public double getSide3() { return side3; } public double getLength() { return length; } public double getWidth() { return width; } public void setRadius(double aRadius) { radius = aRadius; } public void setSide1(double aSide1) { side1 = aSide1; } public void setSide2(double aSide2) { side2 = aSide2; } public void setSide3(double aSide3) { side3 = aSide3; } public void setLength(double aLength) { length = aLength; } public void setWidth(double aWidth) { width = aWidth; } public double getPerimeter() { double perimeter =0; //Calculate the perimeter of the Geometric object depending on what the object is. //Remember the following formulas: //Perimeter of a Triangle = Side1 + Side2+ Side3 //Perimeter of a Rectangle = (2 * length) + (2 * width) //Perimeter of a Circle = 2 * Math.PI * radius if (isTriangle == true) { //Complete formula for triangle perimeter perimeter = side1 + side2 + side3; } else if (isRectangle == true) { //Task 2a: Complete formula for rectangle perimeter perimeter= (2 * length) + (2 * width); } else if (isCircle == true) { //Task 2b: Complete formula for circle perimeter perimeter=2 * Math.PI * radius; } //Continue with the rest of the else if logic here. //change return statement to match the perimeter of the shape return perimeter; } public String toString() { if (isTriangle == true) { //Return \"It\'s a Triangle: \" and concatenate all the attributes of a triangle return \"It\'s a Triangle, with side1 = \" + side1 + \" side2 = \" + side2 + \" side3 = \"+ side3; } else if (isRectangle == true) { //Task 3a: return \"It\'s a Rectangle: \" a.