Question: ASSIGNMENT (Based on Horstmann, Big Java 4th ed. - Project 4.1) This project requires triangle calculations. A triangle is defined by the x- and y-coordinates






ASSIGNMENT (Based on Horstmann, Big Java 4th ed. - Project 4.1) This project requires triangle calculations. A triangle is defined by the x- and y-coordinates of its three corner points. Consider the following picture: C = (x3, y2) A = (x1, yl) B = (x2, y1) Note that points A and B have the same y-coordinate (not for all possible triangles, but for this assignment). Thus, the height (h) is easily calculated. Also note that sides a, b and c are not necessarily of equal length and angles A, B and C are not necessarily 90 degrees or of equal size
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
