Question #21320

Lines can be described in 2 dimensions by linear equations. The most common form of the equation is y = mx + b where m is the slope of the line and b is the y-intercept (where x = 0). The intersection of two straight lines is calculated because it is useful in many applications, such as graphics programs, solving systems of linear equations in engineering, statistics, etc. Your job is to write a program that will do it for you.

To find the intersection of two lines, the two lines need to be stated in the slope-intercept form. So you need the formulas for the slope of a line, the y-intercept of a line and the intersection of two lines.

Assume that a line has been determined by giving two points, (x1, y1) and (x2, y2).

Assume that two lines are specified, line1 and line2,

Your program should ask the user to enter the x and y coordinates of two points on the first line. Then it should ask for the coordinates of two po

To find the intersection of two lines, the two lines need to be stated in the slope-intercept form. So you need the formulas for the slope of a line, the y-intercept of a line and the intersection of two lines.

Assume that a line has been determined by giving two points, (x1, y1) and (x2, y2).

Assume that two lines are specified, line1 and line2,

Your program should ask the user to enter the x and y coordinates of two points on the first line. Then it should ask for the coordinates of two po

Expert's answer

Unfortunately, your question requires a lot of work and cannot be done for free.

Submit it with all requirements as an assignment to our control panel and we'll assist you.

## Comments

## Leave a comment