Suppose temp is an array of 12 double values that holds the average temperatures of the 12 months of the year, January through December, in that order. Use Java to find the average of the temperatures for the 3 summer months, June, July and August only, and set this answer to the variable summerAverage.

What will be an ideal response?


double summerAverage = (temp[5] + temp[6] + temp[7]) / 3.0;

Computer Science & Information Technology

You might also like to view...

Text boxes can also be referred to as word frames.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

When using the tabular or stacked layouts, the controls are positioned and sized as a single group

Indicate whether the statement is true or false

Computer Science & Information Technology

Which network component allows computers to communicate on a network without beingconnected directly to each other?

A. network medium B. interconnecting device C. network server D. device driver

Computer Science & Information Technology

Every organization has a goal or plan that's referred to as its ___________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology