Examlex

Solved

The Method FindLargest Should Return the Largest of Any Number

question 115

Multiple Choice

The method findLargest should return the largest of any number of double values. For example, the call findLargest (3.4, -2.6, 2.9) should return 3.4 and the call findLargest (9.2, 17.6, 3.4, -2.6, 2.9) should return 17.6. Partial code to do this is given below: double findLargest (double... values)
{
Double max = values[0];
// New code goes here
Return max;
}
What code will complete this method?


Definitions:

Benthic Zone

The ecological region at the lowest level of a body of water such as an ocean or a lake, including the sediment surface and some sub-surface layers.

Profundal Zone

A deep zone in a body of water, such as a lake, where sunlight does not penetrate, affecting the types of organisms that can live there.

Limnetic Zone

The open surface waters in a lake, away from the shore, where sunlight penetrates, supporting planktonic and free-swimming aquatic life.

Lakes

Inland bodies of standing freshwater or, in some cases, saline water, usually larger than ponds and contained by land.

Related Questions