Question: Please complete this simple Java program: 1. Create an array that will store 7 different temperatures 2. Populate the array with 7 random temperaturs ranging
Please complete this simple Java program:
1. Create an array that will store 7 different temperatures
2. Populate the array with 7 random temperaturs ranging from 1 to 100 degrees (USE A LOOP AND A RANDOM NUMBER GENERATOR OBJECT)
3. Once the 7 temperatures are in the array, calculate the average of the 7 temperatures in the array and print out the average
4. then print out each temperature in a statment comparing the temperature to the average such as :
"The average temperature is 48.94"
"Temperature 1 is 20 and is below average"
"temperature 2 is is 65 and is above average"
etc...
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
