Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use java You've been tasked to perform some basic analytics on data containing information about the largest cities in the us. The following files have
use java
You've been tasked to perform some basic analytics on data containing information about the largest cities in the us. The following files have been provided to you: Cities.txt: a list of the largest cities in the U.S. Population.txt: a list of populations that correspond to the cities list Lat.txt: a list of latitudes that correspond to the list of cities Long.txt: a list of longitudes that correspond to the list of cities Required Submission Read the cities.txt and population.txt files and identity the largest city (by population) and the second largest city (by population). You must store all data from these two files into two separate arrays and operate on those arrays. Display the results as follows: U.S. Cities Analytics Largest city: New York (population 8405837) Second largest city: Los Angeles (population 3884307) Note: The determination of the largest and second largest cities and associated populations should be strictly determined programmatically (do not hard code these determinations). You've been tasked to perform some basic analytics on data containing information about the largest cities in the us. The following files have been provided to you: Cities.txt: a list of the largest cities in the U.S. Population.txt: a list of populations that correspond to the cities list Lat.txt: a list of latitudes that correspond to the list of cities Long.txt: a list of longitudes that correspond to the list of cities Required Submission Read the cities.txt and population.txt files and identity the largest city (by population) and the second largest city (by population). You must store all data from these two files into two separate arrays and operate on those arrays. Display the results as follows: U.S. Cities Analytics Largest city: New York (population 8405837) Second largest city: Los Angeles (population 3884307) Note: The determination of the largest and second largest cities and associated populations should be strictly determined programmatically (do not hard code these determinations)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started