Question: I could not able to attach a word document because only picture upload is available on chegg. So, please provide an answer and thanks! D








I could not able to attach a word document because only picture upload is available on chegg. So, please provide an answer and thanks!
D Model.java 3 1 package code; 3 import java . util,HashMap;0 Homework 3, part 2 10 This homework is the second step to a geography-based application and will 11 give you practice with the following concepts: 12 13 14 15 16 17 In this homework you will work with a real-world data set that contains 18 approximately 48,080 city names, locations, and populations from around 19 the world. The data is in the WorldCitiesPop.csv file in the Data folder. 28 21 Each line of this file has the following structure: 22Country, City, AccentCity,Region, Population, Latitude, Longitude 23 24 THE City CLASS 25 26 You will need to keep all the data for a City together in one place. To do 27 this you define a City class that has an instance variable for the following 28 fields: 29 30 31 32 33Population store this as an int 34 35 36 7 Notice that AccentCity is missing you may safely ignore this field 38 39 The City class must have a constructor that accepts these values as Strings reading data from a file structuring data Filtering data Country store this as a String City store this as a String Region store this as a String Latitude - store this as a double Longitude store this as a double Country, City, Region, Population, Latitude, Longitude 1 *and initializes the above instance variables as expected 43 * Define also a simple ecessor. method for each of the instance variables 45 THE CityPair CLASS 7 Sometimes you need to work with pairs of cities rather than just individual 48*cities. The CityPair class has a constructor that takes two City objects and 49 stores each in its own instance variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
