1answer.
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
laiz [17]
3 years ago
8

Consider the program below:public class Test{ public static void main(String[] args) {Int[] a;a = new int[10];for(int i = 0; i &

lt; a.length; i++)a[i] = i + 2;int result = 0;for(inti = 0; i < a.length; i++)result += a[i];System.out.printf("Result is: %d%n", result); } }The output of this program is:a. 62b. 64c. 65d. 67
Physics
1 answer:
ivolga24 [154]3 years ago
6 0

Answer:

c. 65

Explanation:

The output is 65.

An array of length 10 is created first. Then, the first for-loop fill the array with different values; The array element now become: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11. The array element are generated using the equation a[i] = i + 2; so when i is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. i must be less than the array length (10).

a[0] = 0 + 2 = 2

a[1] = 1 + 2 = 3

a[2] = 2 + 2 = 4

a[3] = 3 + 2 = 5

a[4] = 4 + 2 = 6

a[5] = 5 + 2 = 7

a[6] = 6 + 2 = 8

a[7] = 7 + 2 = 9

a[8] = 8 + 2 = 10

a[9] = 9 + 2 = 11

result variable is declared and initialized to 0.

The second for-loop goes through the array and add individual element to result.

You might be interested in
In an intergalactic competition, spaceship pilots compete to see who can cover the distance between two asteroids in the short-
pogonyaev

Answer:

a)  truc is C,  b) correct result is the B

Explanation:

As the speed of the competition is very high, for the judges the speed is

           v = d / t

           v = 3 109 m / 20

           v = 1.5 108 m / s

This is half the speed of light. For these high speeds we must use the relations of special relativity.

For the time          t = to γ

For distance         L = Lo / γ

                            γ = √ (1-v2 / c2)

Own time and distance (to and Lo) corresponds to the observer who is not moving the judges in this case

Let's look for the range value

                     γ = 1 / √ (1 - (1.5 / 3) 2) = 1 / 0.866 = 1.15

The time              t = 20 1.15 = 23 s

The distance       L = 3 10 9 /1.15 = 2.60 109 m

From these results we see that time increases and the distance is shorter.

Let's review the claims

A) False. It's the opposite

B) False

C) True. It is according to the result found

D) False.

In the nuclear fusion process, we will also use the special relativity that has a relationship between energy and mass

         ΔE = c² Δm

As in the process energy is released, for the law of conservation of the mass of energy to be fulfilled, the total mass of the products, He atom, must be reduced.

Therefore the correct result is the B

4 0
3 years ago
Drawing a shows a displacement vector (450.0 m along the y axis). In this x, y coordinate system the scalar components are Ax 0
Alisiya [41]

Answer:

x ’= 368.61 m,  y ’= 258.11 m

Explanation:

To solve this problem we must find the projections of the point on the new vectors of the rotated system  θ = 35º

            x’= R cos 35

            y’= R sin 35

           

The modulus vector can be found using the Pythagorean theorem

            R² = x² + y²

            R = 450 m

we calculate

            x ’= 450 cos 35

            x ’= 368.61 m

            y ’= 450 sin 35

            y ’= 258.11 m

4 0
2 years ago
Which quantity is a scalar quantity?
Vsevolod [243]
The answer is Area ,area
5 0
3 years ago
Please help! its really easy
Dmitry [639]

weather station - an area where weather data...

satellite - sends pictures...

weather balloon - filled with helium...

radar - sends out signals...

5 0
3 years ago
Read 2 more answers
When did ernest rutherford make his discovery
oee [108]

Answer:

1911

Explanation:

"In 1911, he was the first to discover that atoms have a small charged nucleus surrounded by largely empty space, and are circled by tiny electrons, which became known as the Rutherford model (or planetary model) of the atom."

5 0
3 years ago
Other questions:
  • Which two substances have no fixed shape and no fixed volume?
    9·1 answer
  • Which term refers to a quantity that has both magnitude and direction?
    14·2 answers
  • A very large sheet of insulating material has had an excess of electrons placed on it to a surface charge density of –3.00nC/m2
    15·1 answer
  • Arace car starts from rest and accelerates uniformly to a speed of 40 m/s in 8.
    8·1 answer
  • Please help me with physics ks3!! Sound waves and hearding (pic incl)
    13·2 answers
  • 11) A ball is dropped from the roof to the floor. Its' atoms start vibrating faster.in terms
    15·1 answer
  • What is the phase of the Moon if it . . .
    10·1 answer
  • The mass of the moon is 7.36×1022kg and its distance to the Earth is 3.84×108m. What is the gravitational force of the moon on t
    8·1 answer
  • Anyone please help ASAP Why must the volume of a stereo in a room with wall-to-wall carpet be tuned higher than in a room with a
    9·1 answer
  • Pls help me with this question its due tomorrow and I can't find the answer: A person jumped 50cm, the hang time for the jump wa
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!