Question: Write a second program that conforms to the following: The program imports RightTriangle The program contains a list that stores RightTriangle objects. The program contains
Write a second program that conforms to the following:
The program imports RightTriangle
The program contains a list that stores RightTriangle objects.
The program contains the following menu:
Enter a new right triangle
Print toString for all triangles
Print toString for the triangle with smallest area.
Print toString for the triangle with largest area.
QUIT
height
length
hypotenuse
If the user selects option ask for the length and height to be input.
Create a RightTriangle object and add it to the list described above
Name this program RectangleTest
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
