Write a Java program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. The program should output the average high, average low, and highest and lowest temperatures of the year. Your program must consist of the following methods:
a) Method getData: This method reads and stores the data in the two-dimensional array.
b) Method averageHigh: This method calculates and returns the average high temperature of the year.
c) Method averageLow: This method calculates and returns the average low temperature of the year.
d) Method indexHighTemp: This method returns the index of the highest temperature in the array.
e) Method indexLowTemp: This method returns the index of the lowest temperature in the array.
(Note: These methods must all have the appropriate parameters)
Recently Asked Questions
- An interactive poll found that 314 of 2,278 adults aged 18 or older have at least one tattoo. (a) Obtain a point estimate for the proportion of adults who
- HCl + CH3CH2CH=CH2 yields ____________ CH3CH2CH2CH2Cl CH3CH2CHClCH2Cl CH3CH2CHClCH3 CH3CH2CH2CH3
- Please refer to the attachment to answer this question. This question was created from Assignment 3-FA17 AP2 (1).docx. Additional comments: "Only keep the