Question: Given an array of temperatures - 76, 81, 55, 84, 70, 82, 77, 88, 90, 78. Using a for loop to iterate through the

Given an array of temperatures - 76, 81, 55, 84, 70, 82,

Given an array of temperatures - 76, 81, 55, 84, 70, 82, 77, 88, 90, 78. Using a for loop to iterate through the array, find the average of all the temperatures and print only their average in this format: "The average temperature is ". public class soll { public static void main(String[] args) { int temps[] = {76, 81, 55, 84, 70, 82, 77, 88, 90, 78}; } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!