Question: I need to write a program that will create a LeterSize object. I'll be specifying the objects width and height in the constructor in inches
I need to write a program that will create a LeterSize object. I'll be specifying the objects width and height in the constructor in inches. I should then call accessor methods that will give me width & height in mm. After that, I should write test code (Main.java) that will test the case for a letter that has the dimensions of 8.5 x 11 inches. Be sure to print it out so that there are two numbers after the decimal point for the conversions.
To solve this problem utilize the method signatures given in the UML diagram below.
LetterSize widthinlnches: double heightlnlnches: double +LetterSize(widthlnlnches: double, heightininches: double): void +getWidthinMillimeters0: double +getHeightinMillimeters0: double Main +main(arge: String): void
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
