(Solved) : Someone Please Help Question Know Use Python 27 Completely Miserable Life Pirate Abraham Q42728613 . . .

Can someone please help me with this question. I do not know howto do this.

Use Python2.7

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:

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

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.

The correctroute:

6,4
6,5
10,8
8,8
8,6
7,5
7,3
7,4
5,5
4,2
9,7
10,6
5,3

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

Expert Answer


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…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us