Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Functions for processing animal location data

LocationCount for finding the number of animals at a given distance from a specified location

1) Find the number of animals at a given distance from a specified location (40%) Write a function LocationCount which returns the number of animals found within a specified distance of a given location, the function should take four parameters, a file name containing the data, a distance in kilometres, and the latitude and longitude of the location. It should return the number of animals found within the specified distance of the location.

i) Load the data from the file into a list
ii) For every line in the list Use LineToList function to split each line into its three components, species name, latitude and longitude Use the CalculateDistance function to determine if the animal is within the specified distance of the location and keep a count of the total number who are.

iii) Return the number of animals which were within the specified distance of the location Your script should call LocationCount with the data file “Mammal.txt”, a distance of 10.0, a latitude of 54.988056 and longitude of -1.619444 (Newcastle). The result should be printed to the screen.

Google maps allows you to visualise geographical data by plotting features on the map. These features are specified in a kml file. Information about creating kml files and viewing them with google maps can be found in the handbook and lecture notes.

Write a function PrintLocation which takes four parameters, a file name containing animal location data, a distance in kilometres, and the latitude and longitude of the location. It should output, to a file called “output.kml”, in kml format all animals found within the distance of the specified location. This function will be similar to LocationCount in its logic.

Your script should call PrintLocation with the data file “Mammal.txt”, a distance of 15.0, a  latitude of 51.452884 and longitude of -0.973906 (Reading).

Write a function Biodiversity Count which takes four parameters, a file name containing animal location data, a distance in kilometres, and the latitude and longitude of the location. The function should return the number of unique species found in the area.

Your script should call BiodiversityCount with the data file “Mammal.txt”, a distance of 25.0, a latitude of 51.508129 and longitude of -0.128005 (London). The result should be printed to the screen.

1) Read the assignment thoroughly and follow the instructions carefully.
2) This is not a typing exercise, my solution was around 65 lines of uncommented code, if your solution is significantly longer, you are most likely on the wrong lines.
3) Use the test data and results provided to ensure your program is working correctly, come up
with some sanity checks of your own.
4) Refer to the textbook, previous code, examples and the web when stuck.
5) The program may take a few minutes to run.
6) Parts 1, 2 and 3 are very similar, once you have the logic for part 1 correct it can be adapted for parts 2 and 3.
7) Make sure your work is backed up and archived when makeing changes.

support
Whatsapp
callback
sales
sales chat
Whatsapp
callback
sales chat
close