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]
1 year 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]1 year 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
Two billiard balls of equal mass move at right angles and meet at the origin of an xy coordinate system. Initially ball A is mov
frez [133]

Answer:

Speed of ball A after collision is 3.7 m/s

Speed of ball B after collision is 2 m/s

Direction of ball A after collision is towards positive x axis

Total momentum after collision is m×4·21 kgm/s

Total kinetic energy after collision is m×8·85 J

Explanation:

<h3>If we consider two balls as a system as there is no external force initial momentum of the system must be equal to the final momentum of the system</h3>

Let the mass of each ball be m kg

v_{1} be the velocity of ball A along positive x axis

v_{2} be the velocity of ball A along positive y axis

u be the velocity of ball B along positive y axis

Conservation of momentum along x axis

m×3·7 = m× v_{1}

∴  v_{1} = 3.7 m/s along positive x axis

Conservation of momentum along y axis

m×2 = m×u + m× v_{2}

2 = u +  v_{2} → equation 1

<h3>Assuming that there is no permanent deformation between the balls we can say that it is an elastic collision</h3><h3>And for an elastic collision, coefficient of restitution = 1</h3>

∴ relative velocity of approach = relative velocity of separation

-2 =  v_{2} - u → equation 2

By adding both equations 1 and 2 we get

v_{2} = 0

∴ u = 2 m/s along positive y axis

Kinetic energy before collision and after collision remains constant because it is an elastic collision

Kinetic energy = (m×2² + m×3·7²)÷2

                         = 8·85×m J

Total momentum = m×√(2² + 3·7²)

                             = m× 4·21 kgm/s

3 0
2 years ago
You are given two rectangular blocks of shiny metal, Block A and Block B, and are asked to determine which one will float in a b
vladimir2022 [97]

Answer:

Explanation:

Volume of block A = 10 x 6 x 1 = 60 cm³

Mass of block A = 630 g

density of mass A = mass / density

= 630 / 60 = 10.5g / cm³

Volume of block B = 5 x 5 x 3 = 75 cm³

Mass of block A = 604 g

density of mass A = mass / density

= 604 / 75 = 8.05 g / cm³

Since density of both A and B are less than that of mercury , both will float in mercury.

7 0
2 years ago
A flat metal washer is heated. As the washer's temperature increases, what happens to the hole in the center? A flat metal washe
jenyasd209 [6]

answer;

The hole in the center of the washer will expand

explanation;

<em>A flat metal washer is heated. As the washer's temperature increases, what happens to the hole in the center? A flat metal washer is heated. As the washer's temperature increases, what happens to the hole in the center? The hole in the center will remain the same size. Changes in the hole cannot be determined without know the composition of the metal. The hole in the center of the washer will expand. The hole in the center of the washer will contract.</em>

this is an example of area expansivity.

coefficient of area expansivity is change in area per area per degree rise in temperature

a=dA/(A*dt)

as the temperature rises , there will be volumetric and area expansivity on the body. volume also increases because of the intermolecular forces of attraction between the molecule is now getting apart.

7 0
1 year ago
A goat enclosure is in the shape of a right triangle. One leg of the enclosure is built against the side of the barn. The other
san4es73 [151]

Answer:

16,18,22

Or

1,3,7

Explanation:

The detailed explanation is contained in the image attached. The lengths are found using Pythagoras theorem and the two lengths reflects the two values of x yielded by the quadratic equation

8 0
2 years ago
An arrow is shot vertically upward at a rate of 250ft/s. Use the projectile formula h=−16t2+v0t to determine at what time(s), in
SIZIF [17.4K]

Answer:

The arrow is at a height of 500 feet at time t = 2.35 seconds.

Explanation:

It is given that,

An arrow is shot vertically upward at a rate of 250 ft/s, v₀ = 250 ft/s

The projectile formula is given by :

h=-16t^2+v_ot

We need to find the time(s), in seconds, the arrow is at a height of 500 ft. So,

-16t^2+250t=500

On solving the above quadratic equation, we get the value of t as, t = 2.35 seconds

So, the arrow is at a height of 500 feet at time t = 2.35 seconds. Hence, this is the required solution.

6 0
2 years ago
Read 2 more answers
Other questions:
  • While a gymnast is in the air during a leap, which of the following quantities must remain constant for her?A) Angular momentum
    14·1 answer
  • Any kind of wave spreads out after passing through a small enough gap in a barrier. This phenomenon is known as _________. a) di
    11·2 answers
  • If you were to triple the size of the Earth (R = 3R⊕) and double the mass of the Earth (M = 2M⊕), how much would it change the g
    12·1 answer
  • The gravitational field of m1 is denoted by g1. Enter an expression for the gravitational field g1 at position la in terms of m1
    14·1 answer
  • A basketball player grabbing a rebound jumps 76.0 cm vertically. How much total time (ascent and descent) does the player spend.
    7·1 answer
  • What is not a similarity between mars and earth today?
    15·1 answer
  • A mass is oscillating horizontally on a spring. At the locations A, B, C, D, and E, photogates are used to measure the speed of
    7·1 answer
  • One day you are driving your friends around town and you drive quickly around a corner without slowing down. You are going at a
    13·2 answers
  • The refractive index n of transparent acrylic plastic (full name Poly(methyl methacrylate)) depends on the color (wavelength) of
    7·1 answer
  • What type of system would allow light and air to enter and exit?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!