Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Applied Statistics And Probability For Engineers

Authors: Douglas C. Montgomery, George C. Runger

6th Edition

1118539710, 978-1118539712

More Books

Students also viewed these Programming questions

Question

What are environmental impact statements?

Answered: 1 week ago

Question

When do I give in to my bad habit?

Answered: 1 week ago