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 Q of this exercise. This time do this as a class using class Point for
composition. This question uses class Composition like Deitels section on age Figure
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 triangle objects, with one of them a nontriangle, and the
other three are right, obtuse, and acute respectively. For example, you may have Triangle TA B C
with A B and C ; Triangle TD E F with D E and F
etc.
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
