Question: Write a Java class. The class name must be ShapeMetrics, which means the file name must be ShapeMetrics.java. All of the required formulas may be
Write a Java class. The class name must be ShapeMetrics, which means the file name must be ShapeMetrics.java. All of the required formulas may be found in Wikipedia. Satisfy the following requirements by including the required comment and providing the following methods:
getDiagonalOfRectangle(), with two float arguments, width and height, in that order, returning a float value which is the diagonal of the rectangle having those dimensions.
All functions must be public and static. Do not put a main() function or any print statements in your class. They are not needed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
