01:59:00
FSKT-047 - … Assignment 5: Write a program to find the distance between two points. The formula is: p = (x₂ - x₁)² + (y₂ - y₁)² The points are two point b and c [(x₁, y₁), (x₂, y₂)] Step 1: Write an equation for the program. Step 2: Enter the points by the user entering the input and use distance formula. Step 3: See the output of the formula.## How to find the distance between two points### Step 1: Write a program to find the distance between two pointsAssume that the distance is distance between two point b and c [(x₁, y₁), (x₂, y₂)] and it is p = (x₂ - x₁)² + (y₂ - y₁)². Let's write an equation for the program to find distance between two points### Step 2: Write values for the programWrite the value for the program for the points [(x₁, y₁), (x₂, y₂)] to find the distance between two points (x₂ = 2, x₁ = 0, y₂ = 4, y₁ = 0)### Step 3: Work out the formulaWrite an equation for the program to find the distance between two points (x₂ = 2, x₁ = 0, y₂ = 4, y₁ = 0) based on the formula p = (x₂ - x₁)² + (y₂ - y₁)²### Step 4: Find the distance between two pointsLet's find the distance between two points [(x₁, y₁), (x₂, y₂)] = (2, 0), (0, 0) in the program which is p = (0 - 2)² + (0 - 0)² = 4### Step 5: Find the distance between two pointsLet's find the distance between two points [(x₁, y₁), (x₂, y₂)] = (2, 0), (0, 0) in the program which is p = (0 - 2)² + (0 - 0)² = 4### Step 6: Find the distance between two pointsLet's find the distance between two points [(x₁, y₁), (x₂, y₂)] = (2, 0), (0, 0) in the program which is p = (0 - 2)² + (0 - 0)² = 4### Step 7: Find the distance between two pointsLet's find the distance between two points [(x₁, y₁), (x₂, y₂)] = (2, 0), (0, 0) in the program which is p = (0 - 2)² + (0 - 0)² = 4### Step 8: Find the distance between two pointsLet's find the distance between two points [(x₁, y₁), (x₂, y₂)] = (2, 0), (0, 0) in the program which is p = (0 - 2)² + (0 - 0)² = 4### Step 9: Find the distance between two pointsLet's find the distance between two points [(x₁, y₁), (x₂, y₂)] = (2, 0), (0, 0) in the program which is p = (0 - 2)² + (0 - 0)² = 4### Step 10: Find the distance between two pointsLet's find the distance between two points [(x₁, y₁), (x₂, y₂)] = (2, 0), (0, 0) in the program which is p = (0 - 2)² + (0 - 0)² = 4### Step 11: Find the distance between two pointsLet's find the distance between two points [(x₁, y₁), (x₂, y₂)] = (2, 0),
2019年1月27日