Question: python screen shots CSC106labThree 7. Write the following program and display the result number = int(input(Enter an integer: )) di = number % 10 number

python screen shots python screen shots CSC106labThree 7. Write the following program and display the

CSC106labThree 7. Write the following program and display the result number = int(input("Enter an integer: ")) di = number % 10 number = number // 10 8. Write a program that prompts the user to enter the coordinates of two points (x1, y1) and (x2, y2), and displays the slope of the line that connects the two points. The formula of the slope is (V2 - y1)/(x2 - x1). Here is a sample run: Enter the x-coordinate for point1: 4.5 Enter the y-coordinate for pointi: -5.5 Enter the x-coordinate for point2: 6.6 Enter the y-coordinate for point2: -6.5 The slope for the line that connects two points (4.5, -5.5) and (6.6, -6.5) is - 0.47619

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!