[Solved]Q1 Equation Straight Line Y Mx B M Slope B Y Intercept X1 Y1 X2 Y2 Two Points X Y Plane Xi Q37078992

Q1. Equation of a straight line is y – mx+ b, where m is the slope and b is the y-intercept If (X1,Y1) and (x2 , y2) are two points in the X- Y plane and xi. x2, the slope m of the line passing through these points is m-(y-y)/(xi-xi). NOTE: If the line passes through the point (№ yo), the equation could be written as Prompt the user to input two points in the X-Y plane. The program outputs the equation of the line and uses if statements to determine and output whether the line is vertical, horizontal, increasing, or decreasing. If the line is non vertical, output it’s equation in the form of y mx +b x2y2 NOTE: Line is horizontal when m-0 Line is increasing when m > 0 Line is decreasing when m < 0 Line is vertical whenxiE X2 x1Y1 Show transcribed image text Q1. Equation of a straight line is y – mx+ b, where m is the slope and b is the y-intercept If (X1,Y1) and (x2 , y2) are two points in the X- Y plane and xi. x2, the slope m of the line passing through these points is m-(y-y)/(xi-xi). NOTE: If the line passes through the point (№ yo), the equation could be written as Prompt the user to input two points in the X-Y plane. The program outputs the equation of the line and uses if statements to determine and output whether the line is vertical, horizontal, increasing, or decreasing. If the line is non vertical, output it’s equation in the form of y mx +b x2y2 NOTE: Line is horizontal when m-0 Line is increasing when m > 0 Line is decreasing when m
Expert Answer
Answer to Q1. Equation of a straight line is y – mx+ b, where m is the slope and b is the y-intercept If (X1,Y1) and (x2 , y2) are… . . .
OR

