Question: Simple Java coding. Instruction provided, my friends and I will be sure to upvote! Thank you so much in advance. Objective: The goal of this

Simple Java coding. Instruction provided, my friends and I will be sure to upvote! Thank you so much in advance.
Objective: The goal of this assignment is to practice file reading, input processing, and working with arrays. Assignment: The input file, input.txt, will have 12 lines, one line for each month. Each line will have three columns, tab-separated: the index of the month starting at 1 ( 1 is January2 is February, etc.), the average windspeed (mph: miles per hour) of the month, and the average rainfall (in inch) of that month. Your program should read the data from the file, store the data in an array, and display the following information: - The average windspeed for that year. - How many months of that year had more than the average windspeed? What are the indices of those months (e.g., 5, 6)? - Based on the indices, what are the names of those months (e.g., 5 would be May)? The average rainfall for that year. - How many months of that year had more than the average rainfall? - What are the indices of those months? - Based on the indices, what are the names of those months? Note that the order of the month starts from one but the index of an array starts from zero. Your program should use a try-catch block properly to handle file reaing. Sample output: The average windspeed for the year is: 8.64 The average rainfall for the year is: 0.6 Months that had more than the average rainfall Index Month Name 7 July August September October November December
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
