Problem

Let l be a line in the x-y plane. If l is a vertical line, its equation is x = a for som...

Let l be a line in the x-y plane. If l is a vertical line, its equation is x = a for some real number a. Suppose l is not a vertical line and its slope is m. Then the equation of l is y = mx +b, where b is the y-intercept. If l passes through the point (x0, y0,), the equation of l can be written as yy0 = m(xx0). If (x1, y1) and (x2, y2) are two points in the x-y plane and x1x2, the slope of the line passing through these points is m = (y2y1) / (x2x1). Write a program that prompts the user to enter two points in the x-y plane. The program outputs the equation of the line and uses statements to determine and output whether the line is vertical, horizontal, increasing, or decreasing. If l is a nonvertical line, output its equation in the form

y = mx +b.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT