Question: write code in c + + You are provided with the co - ordinates of three points, 2 ) and C ( x 3 ,
write code in cYou are provided with the coordinates of three points,
and is a directed segment. So imagine you are walking
along the directed line segment Is point to your left? On the sam
e line of your walk? Or to your right? Answer LEFT, SAME or RIGHT corr
espondingly.
Input
Three lines of input. Each line has integers separated by a white spa
representing the coordinate and coordinate of a point.
The first line of input is x y point A
The second line of input is x y point
The third line of input is point
Output
One line of output as text.
LEFT if is on the left of directed segment
SAME if is on line
RIGHT if is on the right of directed segment
Sample Input
Sample Output
Hint
Sampe
is on the left of directed line segment when and
lies on the line when and
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
