Assume you are given an int variable named nElements and a 2-dimensional array that has been created and assigned to a2d. Write
one or more statements that assign to nElements the total number of elements that could be stored in the entire 2-dimensional array.
1 answer:
Answer:
SEE EXPLAIN
Explanation:
public int dimension(int [][]a2d,int nElements)
{
int count = 0;
for(int i = 0;i < a2d.length ; i++)
{
count = count + a2d[i].length;
}
return count;
}
You might be interested in
Pretty sure it's:
D. Earth rotates on its axis
<span>Answer:
Using 1/f = 1/d' + 1/d ...(where d' object distance and d is image distance)
1/4 = 1/7 + 1/d
1/4 - 1/7 = 1/d
3/28 = 1/d
d = 28/3
d = 9.33 cm</span>
i think the answer is B police siren.
Earth quakes are commonly found along fault lines or tectonic plates.
Hope this helped :-) <span />
Explanation:
55×60=3300
2×60=120
3300+120=3420
speed=distance/time
speed=3420/217
x=15.6ms^-1