(Solved):Write a program in a class NumberAboveAverage that counts the number of days that the temperature is above average. Read ten temperatures from the keyboard and place them in an array. Compute the a… View Answer…

 

Question

Write a program in a class NumberAboveAverage that counts the number of days that the temperature is above average. Read ten temperatures from the keyboard and place them in an array. Compute the average temperature and then count and display the number of days on which the temperature was above average.

Your interaction with this program might look as follows:

> java NumberAboveAverage

Please enter ten temperature values:

30

40.5

32.3

50

60

70

55

40

50

63.92

The average temperature is: 49.172000000000004

Day 3

Scroll to top