Tag: 20710

Given an array temps of double s, containing temperature data, compute the average temperature. Store the average in a variable called avgTemp. Besides temps and avgTemp, you may use only two other variables — an int variable k and a double variable named total, which have been declared.

2
Given an array temps of double s, containing temperature data, compute the average temperature. Store the average in a variable called avgTemp. Besides temps and avgTemp, you may use only two other variables — an int  variable k and a double variable named total, which have been declared.

LANGUAGE: JAVA CHALLENGE: Given an array temps of double s, containing temperature data, compute the average temperature. Store the average in a variable called avgTemp. Besides temps and avgTemp, you may use only two other variables — an int variable k and a double variable named total, which have been declared.

Read More