Question: Exercise: Build the following program. Classes: Triangle, llegalTriangleException and Client (Main class) The logic of this assignment is the following. The Client solicits three numbers

Exercise: Build the following program. Classes: Triangle, llegalTriangleException and Client (Main class) The logic of this assignment is the following. The Client solicits three numbers from the console meant to be the three sides of a triangle. Client Instantlates a Triangle object passing the sides to the constructor The object calls the computeAreamethod of the Trangle class and displays the return value hested try prints relevant messages and calls computeArea1. The catch needs another name for the llesalIriangleException reference. Repeats the fail messages updated to the second attempt. Nests the entire try-catch again, new input data aa,a. Note that this cannot fail unless a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
