Question: Ask the user for two points: (x1, y1) and (x2, y2). Notice that the input is coming from the keyboard. Compute the slope and save the data into a file named "slope.txt" on the disk. The form in the file should be: (-3, 4) Point 2 : (5, -2) : -0.7500 Point 1 : Slope Note: 1. The slope has 4 decimal places 2. The colons line up 3. The formula is: slope Y2-y1 x2-X2
Question: Ask the user for two points: (x1, y1) and (x2, y2). Notice that the input is coming from the keyboard. Compute the slope and save the data into a file named "slope.txt" on the disk. The form in the file should be: (-3, 4) Point 2 : (5, -2) : -0.7500 Point 1 : Slope Note: 1. The slope has 4 decimal places 2. The colons line up 3. The formula is: slope Y2-y1 x2-X2
Question: Ask the user for two points: (x1, y1) and (x2, y2). Notice that the input is coming from the keyboard. Compute the slope and save the data into a file named "slope.txt" on the disk. The form in the file should be: (-3, 4) Point 2 : (5, -2) : -0.7500 Point 1 : Slope Note: 1. The slope has 4 decimal places 2. The colons line up 3. The formula is: slope Y2-y1 x2-X2
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.