java test rectangle

Click Here to Download this Answer Instantly

Write a program that calculates the rectangle’s perimeter and area. use set and get methods for both length and width. The set methods will verify that length and width are each floating-point numbers larger than 0.0 and less than 20.0. Write a program to test class Rectangle.