Wednesday, August 16, 2017

java code to calculate the distance between any two given points (x1, y1) and (x2, y2)


Problem Specification: Write a java program that calculates the distance between two given points (x1, y1) and (x2, y2). All numbers and return values should be of type double
Input: real variables x1, y1 x2 and y2
Processing: the distance is given by
Output: the distance
Algorithm:
                                              Step 1. Read the four variables x1, x2, y1 and y2 from the user.
                                              Step 2. Initialize variable     
                                              Step 3. Display the
                                              Step 4. End of program

Program Listing:

1 comment:

  1. Men\'s Titanium Wedding Band - Tirana | Titanium Arts
    Men\'s Titanium Wedding titanium max Band - Tirana. The Men's Bronze ceramic vs titanium curling iron Ring at Tirana. titanium quartz crystal Buy Men\'s Titanium Wedding Band, wedding rings, titanium keychain dresses microtouch titanium trim walmart & more.

    ReplyDelete