Question: This example reads a text file collected from a GPS unit. The lines in the file represent readings taken from the GPS unit as the

 This example reads a text file collected from a GPS unit.

This example reads a text file collected from a GPS unit. The lines in the file represent readings taken from the GPS unit as the user traveled along an ellipsoidal path. The latitude and longitude are given; the column with header "log" is a random number associated with the time at which the gps recording was made. Write a Python function drawGPS) that reads in the text file, returns nothing, and plots an animation of the user's path using the Turtle module li.e. plots the latitute and longitude at each time/line). The file for this example is called racetrack_gps.txt and it looks something like the text string shown in the image below. Click on this link to the racetrack_gps.txt file to see what the text file actually looks like. (You can download the text file if you want, but this is not necessary). log, lat, lon 0.99704,300,0 0.0043926,299,8. 1582 0.54261,298,11.528 0.86135, 297, 14.107 0.90914,296,16.275 0.84535, 295, 18. 181 0.87887, 294, 19.9 0.74618, 293, 21.476 0.11749, 292, 22.94 0.50902,291, 24.31 0.16883, 290, 25.604 0.83111, 289, 26.831 0.92801, 288, 28 0.16948, 287, 29. 119 0.88374, 286, 30. 192 0.38786, 285, 31.225 0.38257,284,32.221 The animation should resemble the image below: Your code should be written using CIS 210 style guidelines: include in each function a docstring (type contract and examples of use) use whitespace between operators and operands use descriptive variable names add appropriate comments Edit View Insert Format Tools Table 12ptv Paragraph B IV 2 Tev This example reads a text file collected from a GPS unit. The lines in the file represent readings taken from the GPS unit as the user traveled along an ellipsoidal path. The latitude and longitude are given; the column with header "log" is a random number associated with the time at which the gps recording was made. Write a Python function drawGPS) that reads in the text file, returns nothing, and plots an animation of the user's path using the Turtle module li.e. plots the latitute and longitude at each time/line). The file for this example is called racetrack_gps.txt and it looks something like the text string shown in the image below. Click on this link to the racetrack_gps.txt file to see what the text file actually looks like. (You can download the text file if you want, but this is not necessary). log, lat, lon 0.99704,300,0 0.0043926,299,8. 1582 0.54261,298,11.528 0.86135, 297, 14.107 0.90914,296,16.275 0.84535, 295, 18. 181 0.87887, 294, 19.9 0.74618, 293, 21.476 0.11749, 292, 22.94 0.50902,291, 24.31 0.16883, 290, 25.604 0.83111, 289, 26.831 0.92801, 288, 28 0.16948, 287, 29. 119 0.88374, 286, 30. 192 0.38786, 285, 31.225 0.38257,284,32.221 The animation should resemble the image below: Your code should be written using CIS 210 style guidelines: include in each function a docstring (type contract and examples of use) use whitespace between operators and operands use descriptive variable names add appropriate comments Edit View Insert Format Tools Table 12ptv Paragraph B IV 2 Tev

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!