Apr-23-2020, 07:20 PM
In CalculateDistance(), there should be no reason to convert the arguments to floats; they should be floats when passed into the function.
In LocationCount(), the FileName parameter isn't being used. No matter what file you declare, it will always pull from Mammal.txt. Plus, the function will always return 0 because animalList is instantiated but nothing is ever appended to it. You want to return LocationCount.
In LocationCount(), the FileName parameter isn't being used. No matter what file you declare, it will always pull from Mammal.txt. Plus, the function will always return 0 because animalList is instantiated but nothing is ever appended to it. You want to return LocationCount.