Draw the UML diagram for the class then implement the class.Write a test program that creates two Rectangle objects – one withwidth 4 and height 40, and the other with width 3.5 and height35.9. Intro to Java programming Display them.
Here is a sample run in console:
The area of the rectangle with width 4.0 and height 40.0 is160.0
The perimeter of the rectangle is 88.0
The area of the rectangle with width 3.5 and height 35.9 is160.0
The perimeter of the rectangle is 78.8
Answer
`Hey,
Note: Brother in case of any queries, just comment inbox I would be very happy to assist all your
OR
OR