Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The programming language is JAVA. I need help ASAP, please. 5. Write a program that, for four points A, B, C and P, which a)

image text in transcribed

image text in transcribed

The programming language is JAVA. I need help ASAP, please.

5. Write a program that, for four points A, B, C and P, which a) Draws a triangle formed by ABC and a small cross showing the position of P b) Displays a line of text indicating which of the following three cases applies: P lies Inside ABC Outside ABC On an edge of ABC. The user will specify the four points by clicking. 6. The same as part 5, but, instead of displaying a line of text, the program computes the distances of P to the infinite) lines AB, BC and CA, and draws the shortest possible line that connects P with the nearest of those three lines. 5. Write a program that, for four points A, B, C and P, which a) Draws a triangle formed by ABC and a small cross showing the position of P b) Displays a line of text indicating which of the following three cases applies: P lies Inside ABC Outside ABC On an edge of ABC. The user will specify the four points by clicking. 6. The same as part 5, but, instead of displaying a line of text, the program computes the distances of P to the infinite) lines AB, BC and CA, and draws the shortest possible line that connects P with the nearest of those three lines

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions