Question: Need help implementing the following Java class PE06 [Source: Programming Exercise 3.27 of TB01] Suppose a right triangle is placed in a plane as shown
Need help implementing the following Java class
PE06 [Source: Programming Exercise 3.27 of TB01] Suppose a right triangle is placed in a plane as shown below. The right-angle point (B) is placed at (0, 0), and the other two points (C and A) are placed at (200, 0) and (0, 100). Write a program that prompts the user to enter a point with x- and y-coordinates and determines whether the point is inside the triangle.
|
|
Here are the sample runs:
Enter a point's x- and y-coordinates: 100.5 25.5 The point is in the triangle
and
Enter a point's x- and y-coordinates: 100.5 50.5 The point is not in the triangle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

