Question: Continuing the triangle question Q 1 of this exercise. This time do this as a class using class Point for composition. This question uses class

Continuing the triangle question Q1 of this exercise. This time do this as a class using class Point for
composition. This question uses class Composition like Deitels section 10.7 on age 386(Figure 10.7)
(a) Download and run code of class PointConsole on the Canvas.
(b) Define methods to compute the three sides of the triangle with the three vertices A, B, and C. Also
define methods to compute the three angles.
(c) Test your program by instantiating at least 4 triangle objects, with one of them a non-triangle, and the
other three are right, obtuse, and acute respectively. For example, you may have Triangle T1(A, B, C)
with A =(0,0), B =(0,1), and C =(1,0); Triangle T2(D, E, F) with D =(2,2), E =(5,2), and F =(2,6)
etc.

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 Databases Questions!