//Write a file header with your name and class purpose //See Lab0.java for an example of the format we want //Once you have completed both the Rectangle class and this Tester class, //You should be able to run this file, Tester.java and get the following //Output to your terminal. When evaluating your code, we will run our own //version of this tester file and confirm that this is the output we get. /*** 4.0 5.0 2.2 2.2 Height: 2.2, Width: 2.2, Diagonal: 3.111269904655767 Height: 1.0, Width: 1.0, Diagonal: 1.4142135623730951 Height: 2.0, Width: 2.0, Diagonal: 2.8284271247461903 Height: 3.0, Width: 3.0, Diagonal: 4.242640687119285 Height: 4.0, Width: 4.0, Diagonal: 5.656854249492381 Height: 1.0, Width: 1.0, Diagonal: 1.4142135623730951 Height: 2.0, Width: 2.0, Diagonal: 2.8284271247461903 Height: 3.0, Width: 3.0, Diagonal: 4.242640687119285 Height: 5.0, Width: 5.0, Diagonal: 7.0710678118654755 */ //Define a Tester class //Define a static testRectangle method //Define and initialize 1 rectangle with width 3 and height 7 //Set the height to be 4 //Get the height and confirm that it is 4 //by printing it //Call the computeDiagonal method and print the output //Confirm that it is 5 //Initialize 1 square using the second constructor //with width and height of 2.2 //Get the height and width of the square //Confirm they are both 2.2 by printing them //Print the string representation of the square. Don't call //the toString() method directly, instead use the following //line (if your object is named square). Confirm it calls your toString method //System.out.println( square ); //It should print: Height: 2.2, Width: 2.2, Diagonal: 3.111269904655767 //define a static main method //Call the testRectangle method to run your tests //Define an array of Rectangle objects of size 4 //Use an indexed for loop to generate 4 squares of //size 1x1, 2x2, 3x3 and 4x4 and put them in the array //Use another indexed for loop to print each square in order //Change the last rectangle in the list to be of size 5x5 instead of 4x4 //Use another indexed for loop to print each square in order