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, 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Applied Statistics And Probability For Engineers
Authors: Douglas C. Montgomery, George C. Runger
6th Edition
1118539710, 978-1118539712
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App