answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Dmitrij [34]
2 years ago
11

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.
Physics
1 answer:
lozanna [386]2 years ago
8 0

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
A 2.00 kg ball is thrown upward at some unknown angle from the top of a 20.0 m high building. If the initial magnitude of the ve
Charra [1.4K]

Answer: 28.1

Explanation:

5 0
2 years ago
Which one of the following statements is true concerning an object executing simple harmonic motion?
timurjin [86]

Answer:

D) The objects velocity is zero when its acceleration is a maximum

Explanation:

In a simple harmonic motion, the total energy is constant (if we neglect air resistance and friction), and it is equal to the sum of the elastic potential energy U and the kinetic energy K:

E=K+U=\frac{1}{2}mv^2+\frac{1}{2}kx^2 (1)

where

m is the mass

v is the velocity

k is the spring constant

x is the displacement

As a consequence, since E must remain constant, when K increases U decreases, and vice-versa.

Also, in a simple harmonic motion the acceleration of the system is proportional to the negative of the displacement:

a\propto - x (2)

So, combining (1) with (2), we have the following situations:

- When the displacement is zero (x=0), the acceleration is also zero (a=0), and so the velocity is maximum, because the kinetic energy is maximum

- When the displacement is maximum (x=max), the acceleration is also maximum, while the velocity is zero because the kinetic energy is zero

So, the correct statement is

D) The objects velocity is zero when its acceleration is a maximum

4 0
2 years ago
Whipple is confused about the connection between the velocity and acceleration of the tennis ball. he decides to compare the vel
tamaranim1 [39]

The speed of the ball is always zero and the acceleration is always -g when it reaches the top of its motion. This is because when the ball is free, only gravity acts on it which is always downwards, hence g is the net acceleration and it is always negative. However the velocity does not direction change instantly, negative acceleration first slows down the ball with a positive velocity, until that point the ball keeps moving up, then the ball velocity becomes zero just before changing direction and becoming negative after which the ball will now go down along gravity. Hence the ball velocity is zero at the top (neither going up nor down). Mathematically this can be seen as velocity is the integration of acceleration.

7 0
2 years ago
A red ball, initially at rest, is simultaneously hit by a blue ball traveling from west to east at 5 m/s and a green ball travel
andrezito [222]

Answer:

C. Between North and West

Explanation:

Since all have equal masses and the red ball and green ball are moving in south and east direction, the blue ball would most likely be moving between the north and West direction.

8 0
2 years ago
A flywheel of mass M is rotating about a vertical axis with angular velocity ω0. A second flywheel of mass M/5 is not rotating a
Contact [7]

Answer:

0.83 ω

Explanation:

mass of flywheel, m = M

initial angular velocity of the flywheel, ω = ωo

mass of another flywheel, m' = M/5

radius of both the flywheels = R

let the final angular velocity of the system is ω'

Moment of inertia of the first flywheel , I = 0.5 MR²

Moment of inertia of the second flywheel, I' = 0.5 x M/5 x R² = 0.1 MR²

use the conservation of angular momentum as no external torque is applied on the system.

I x ω = ( I + I') x ω'

0.5 x MR² x ωo = (0.5 MR² + 0.1 MR²) x ω'

0.5 x MR² x ωo = 0.6 MR² x ω'

ω' = 0.83 ω

Thus, the final angular velocity of the system of flywheels is 0.83 ω.

5 0
2 years ago
Other questions:
  • Consider a solid, rigid spherical shell with a thickness of 100 m and a density of 3900 kg/m3 . the sphere is centered around th
    5·2 answers
  • An electrical conductor is an element with __________ electrons in its outer orbit.
    14·1 answer
  • Which nucleus completes the following equation?
    5·2 answers
  • A uniform log of length L is inclined 30° from the horizontal when supported by a frictionless rock located 0.6L from its left e
    6·1 answer
  • A brass lid screws tightly onto a glass jar at 20 degrees C. To help open the jar, it can be placed into a bath of hot water. Af
    9·1 answer
  • At time t=0 a proton is a distance of 0.360 m from a very large insulating sheet of charge and is moving parallel to the sheet w
    7·1 answer
  • A charge of 4.9 x 10-11 C is to be stored on each plate of a parallel-plate capacitor having an area of 150 mm2 and a plate sepa
    5·1 answer
  • How can promoting total person development can benefit an organization.
    15·2 answers
  • a horse gallops a distance of 60 meters in 15 seconds. then, he stops to eat some grass for 20 seconds. next, he trots for 25 se
    5·1 answer
  • The diagram shows the field lines near the poles, X and Y, of two magnets.
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!