Question: Show me the steps to solve. In C# Write a program that prompts the user to enter X and Y coordinates for 2 points on

Show me the steps to solve. In C#
Write a program that prompts the user to enter X and Y coordinates for 2 points on the Cartesian plane. The program then calculates the slope of the line connecting these two points.
The slope of a line is the "rise" divided by the "run". Or the change in height divided by the change in width
slope =(Y2- Y1)/(X2- X1)
Here is a sample execution of the program. User entered values are in red.
Enter the X coordinate of the 1st point: -1
Enter the Y coordinate of the 1st point: 2.3
Enter the X coordinate of the 2nd point: 3.1
Enter the Y coordinate of the 2nd point: 4.2
The slope of the line connecting these two points is: 0.463414

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!