[Solved]Rectangle Width Double Length Double Rectangle Width Double Length Double Getperimeter Dou Q37060598
In Java please!


Rectangle -width: double -length double +Rectangle (width: double, length: double) +getPerimeter () : double +getArea () double +setWidth (width: double) +setLength (length: double) Question 1, continued (b) Write a program with a main method that creates two rectangle objects from the previous page, one with a width of 7 and a length of 10, and another with a width of 5 and a length of 40. Have your main method output the area of both of these rectangles. Note that you can complete this task without having completed the previous page. (4 marks) Show transcribed image text Rectangle -width: double -length double +Rectangle (width: double, length: double) +getPerimeter () : double +getArea () double +setWidth (width: double) +setLength (length: double)
Question 1, continued (b) Write a program with a main method that creates two rectangle objects from the previous page, one with a width of 7 and a length of 10, and another with a width of 5 and a length of 40. Have your main method output the area of both of these rectangles. Note that you can complete this task without having completed the previous page. (4 marks)
Expert Answer
Answer to Rectangle -width: double -length double +Rectangle (width: double, length: double) +getPerimeter () : double +getArea ()… . . .
OR

