Question: IN JAVA PLEASE IN JAVA Assignment 3: Math Class Specification: x2, y2 a A = acos((a * a - b * b-C* c) / (-2
IN JAVA PLEASE
IN JAVA
Assignment 3: Math Class Specification: x2, y2 a A = acos((a * a - b * b-C* c) / (-2 * b* c)) B = acos((b* b - a * a - C* c) / (-2 * a * c)) C = acos((c* c - b* b - a * a) / (-2 * a * b)) B X3, y3 b xl, y1 Write a program that prompts the user to enter the x- and y-coordinates of the three corner points in a triangle and then displays the triangle's angles. Step 1: Ask the user to enter the x- and y-coordinates: A(x1, y1) B(x2, y2) C(x3, y3) Step 2: Estimate the length of each side using the following function: a = length between B(x2, y2) and ((x3, y3) = V(x2 - X3)2 + (y2 73)2 b= length between Alx1, y1) and C(x3, y3) = V(x2 x3)2 + (y1 - y3)2 c= length between A(x1, y1) and B(x2, y2) = V(x1 - x2)2 + (y1 - y2)2 V X- Step 3: Estimate the value for each corner's angle as given in the above picture. Step 4: Display the result of each angle value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
