Project 1

A traveller want to find out the distances he travelled. He save the data in a file named position.txt. The file looks like this
5.2,3.1
10.2,7.9
11.3,44.5
31,77.11
9.1,60.12
11.22,30.11
1.1,31.4
5.6,22.22
4.45,7.1
The first column is the x-coordinates, the second column is the y coordinates. The distance is given by the formula

Write the output the a file named out.txt. Here is a sample output
The total distance is 175.03785106369511
You can assume