Question: 1. Write a java program that computes the intersection point of two lines AB and CD. The user will specify the points A, B, C

1. Write a java program that computes the intersection point of two lines AB and CD. The user will specify the points A, B, C and D by clicking. Draw a small circle around the intersection point. If the two lines AB and CD do not have a unique intersection point (because they are parallel or coinciding), display a line of text indicating this. Please capture output screen for each different scenario in your report. 2.

2. Write a program that, for four points A, B, C, and P,

- Draws a triangle formed by ABC and a small cross showing the position of P

- Displays a line of text indicating which of the following three cases applies: P lies (a) inside ABC, (b) outside ABC, or (c) on an edge of ABC.

The user will specify the four points by clicking. Please capture output screen for each different scenario in your report.

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!