Question: Write a Java class called Iso Triangle that reads from the user an integer (h) represents the length of the hypotenuse of an isosceles


Write a Java class called Iso Triangle that reads from the user

Write a Java class called Iso Triangle that reads from the user an integer (h) represents the length of the hypotenuse of an isosceles right triangle. Then calculates and prints the area of this triangle (rounded to 2 decimal places) according to the following formula: area = Note: h2/4 If the user enters any non-positive value (i.e. less than or equal to zero), an error message should be displayed and nothing should be calculated.

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!