Run your program with the earthquake input file "quiz2.atom".there is a commented outline of the code in the Setup method in EarthquakeCityMap that you can uncomment to make this happen earthquakesURL ="quiz2.atom; Call sortAndPrint as appropriate to answer the following question What is the magnitude of the earthquake printed (i.e. the 6th strongest earthquake of the same magnitude,each magnitude will count,For example,if the top 4 magnitudes are( 7,6.9,6.9,and 6),the 4th largest is 6.
Answers
ANSWER
// STEP 1: load country features and markers
List<Feature> countries = GeoJSONReader.loadData(this, countryFile);
countryMarkers = MapUtils.createSimpleMarkers(countries);
// STEP 2: read in city data
List<Feature> cities = GeoJSONReader.loadData(this, cityFile);
cityMarkers = new ArrayList<Marker>();
for(Feature city : cities) {
cityMarkers.add(new CityMarker(city));
}
// STEP 3: read in earthquake RSS feed
List<PointFeature> earthquakes = ParseFeed.parseEarthquake(this, earthquakesURL);
quakeMarkers = new ArrayList<Marker>();
for(PointFeature feature : earthquakes) {
//check if LandQuake
if(isLand(feature)) {
quakeMarkers.add(new LandQuakeMarker(feature));
}
// OceanQuakes
else {
quakeMarkers.add(new OceanQuakeMarker(feature));
}
}
// could be used for debugging
printQuakes();
// (3) Add markers to map
// NOTE: Country markers are not added to the map. They are used
// for their geometric properties
map.addMarkers(quakeMarkers);
map.addMarkers(cityMarkers);
} // End setup
HOPE THIS WILL HELP YOU PLEASE MARK IT AS BRAINLIST