Question: Please write a C++ project with Visual Studio. Summary Let /be a line in the x-y plane. If /is a vertical line, its equation is
Please write a C++ project with Visual Studio.

Summary Let /be a line in the x-y plane. If /is a vertical line, its equation is x = a for some real number a. Suppose lis not a vertical line and its slope is m. Then the equation of / is y = mx + b, where b is the yintercept. If /passes through the point (xo yo) the equation of Ican be written as y-yo = m(X-Xo), If(x,y) and (X2,y) are two points in the xy plane and X1 X2, the slope of line passing through these points is m-02-yMx Instructions Write a program that prompts the user for two points in thex-y plane. Input should be entered in the following order: Input x Input y Input xz Input y The program: 1. Outputs the equation of the line 2. Uses if statements to determine and output whether the If , is a non-vertical line, output its equation in the form y= mx + b. Note: Output all numbers with a precision of two decimal places. line is vertical, horizontal, increasing, or decreasing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
