questionwrite down a java program that uses a


Question

Write down a Java program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. The program has to output the average high, average low, and highest and lowest temperatures of the year. Your program must consist of following methods-

a) Method getData: This process reads and stores the data in the 2-dimensional array.

b) Method averageHigh: This process calculates and returns average high temperature of the year.

c) Method averageLow: This process calculates and returns average low temperature of the year.

d) Method indexHighTemp: This process returns the index of highest temperature in array.

e) Method indexLowTemp: This process returns the index of lowest temperature in array.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: questionwrite down a java program that uses a
Reference No:- TGS0444775

Expected delivery within 24 Hours