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:
1. Enter a new right triangle
2. Print toString for all triangles
3. Print toString for the triangle with smallest area.
4. Print toString for the triangle with largest area.
5. QUIT
height
length
hypotenuse
(If the user selects option 1, 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!