Program that creates two rectangles


Draw the UML diagram for the class and then implement the class. Write a program that creates two rectangles objects, one with width 4 and height 40 and the other with width 3.5 and height 35.9. Display the width, height, area, and perimeter of each rectangle in this order. Now I must have two classes with one of the classes being name rectangle. The Rectangle class can be created in the same file as your main class or in a seperate file named Rectangle.java

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Program that creates two rectangles
Reference No:- TGS0534580

Expected delivery within 24 Hours