Write a program that calculates the distance between two points whose coordinates are (7, 12) and (3, 9). Use the fact that the distance between two points having coordinates (x1, y1) and (x2, y2) is distance = sqrt([x1 - x2])2 + [y1 – y2]2).

profilerckumhar
 (Not rated)
 (Not rated)
Chat
  1. Write a program that calculates the distance between two points whose coordinates are (7, 12) and (3, 9). Use the fact that the distance between two points having coordinates (x1, y1) and (x2, y2) is distance = sqrt([x1 - x2])2 + [y1 – y2]2).
    • 11 years ago
    A program of distance between two points
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      distance.cpp