Given an array temps of Doubles, 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 Integer variable k and a Double variable named total, which have been declared.

Given an array temps of Doubles, 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 Integer variable k and a Double variable named total, which have been declared.

LANGUAGE: Visual Basic

CHALLENGE:

Given an array temps of Doubles, 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 Integer variable k and a Double variable named total, which have been declared.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level