Question: For the three points A (Xa, Ya), B (Xb, Yb) and C (Xc, Yc) the equation of the line L parallel to the segment

For the three points A (Xa, Ya), B (Xb, Yb) and C 

For the three points A (Xa, Ya), B (Xb, Yb) and C (Xc, Yc) the equation of the line L parallel to the segment AB and passing by the point C is given by: Y= mX +k where: Ya-Yb m is the slope and computed as : m = Xa-Xb k is the intercept and computed as : k Yc -m.Xc Write a java program that calculane and display the slope, the intercept and the equation of the Line parallel to AB and passing by C for the given values: A(1.5, 2), B (2.5, -4) and C (-1.5, 10.5) Your program should output exactly the following: Sample Run The slope is -6.0 The intercept is 1.5 The equation of the parallel is Y--6.0 X15

Step by Step Solution

3.39 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The java program for the the given below Java Code import javautilScanner public class ... View full answer

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 Programming Questions!