Question: Need help with intro to java coding question: Download data file (City_Precipitation_Data.txt). The data file contains the precipitation data for 66 US cities. Write a
Need help with intro to java coding question:
Download data file (City_Precipitation_Data.txt). The data file contains the precipitation data for 66 US cities. Write a program as follows.
Read the data from the data file into two arrays, one to store the city names, and another to store the precipitations.
Output the city names and their precipitations.
Find and output the city with the most and the least precipitations.
Format the output appropriately.
This is what I have so far... I am stuck on outputting the city with the highest & lowest precipitation value and formatting.. Thank you
1 import java.util.Scanner; 2 import java.io.*; 3 4 public class PreciptationData 5 { 6 7 static final int SIZE = 66; 8 9 public static void main(String[] args) throws IOException{ 10 11 String [] city = new String [SIZE]; 12 13 String [] precipitation = new String [SIZE]; 14 15 data(city, precipitation); 16 17 for(int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
