Can someone please help me with this question. I do not know howto do this.
During his completelymiserable life, pirate Abraham Blaufelt has been in search of thelost treasure of Atlantis. On a very fortunate day in the year ofthe Lord 1642 he enters an abandoned cathedral of a long gone sectin the ancient forests of Poland. Inside he finds a mysteriousancient parchment. The parchment reads:
Abraham Blaufeltimmediately knew what he was dealing with. A puzzle of which theresult is a safe route to the treasure. This route was essential,the sea was crawling with monsters in those days. Since this mostfortunate day, almost four hundred years ago, the European tectonicplate has shifted significantly. As a result all coordinates haveto be shifted by (1, 0).
Write a program thatsolves this puzzle. This has to be done in the following way: Startwith the coordinates on the first row, weave the coordinates of thesecond row through the first row, then weave the coordinates of thethird row through the resulting row etc. Note, if two rows ofunequal length have to be woven, the two rows are woven as far aspossible. After the elements of the shortest row have beenexhausted, the row is completed by adding the remaining elements ofthe longest row.
Make a new Coordinateand CoordinateRow class for this assignment. The latter class has amethod to weave a CoordinateRow into itself. The coordinates of thepuzzle are below:
Thecoordiantes are in a text file. The input:
5,4 4,5 8,7=6,3 3,29,6 4,3=7,6=9,8=5,5 7,8 6,5 6,4
Every CoordinateRow isseperated from another by an ’=’. Every coordinate in a row isseperated by a space. The x and y values of a coordinate areseperated by a comma. After all data has been read, the programwill print the treasure route on the standard output.
Traveler, if riches are to be achieved, the solution only has to be weaved. 5,4 4,5 8,7 Weave 6,3 3,2 9,6 4,3 Weave 7,6 Weave 9,8 | Weave 5,5 7,8 6,5 6,4 Show transcribed image text Traveler, if riches are to be achieved, the solution only has to be weaved. 5,4 4,5 8,7 Weave 6,3 3,2 9,6 4,3 Weave 7,6 Weave 9,8 | Weave 5,5 7,8 6,5 6,4
Answer to Can someone please help me with this question. I do not know how to do this. Use Python 2.7 During his completely misera…