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
Pls help will mark Brainliest
BartSMP [9]

Answer: 100 units

Explanation:

8 0
3 years ago
a baby carriage is sitting at the top of a hill that is 21 m high. the carriage with the baby has a mass of 1.5 kg. the carriage
Serga [27]
Height of baby carriage from ground = 21m

Mass of carriage with baby = 1.5 kg

The carriage has potential energy by virtue of its height.

Potential energy = mgh = 1.5×10×21 = 315 J

Hence, potential energy of the carriage is 315 Joule.
7 0
3 years ago
When a satellite is in orbit around the earth the force of gravity on the satellite-
mojhsa [17]

Answer:

Is always towards the center of the Earth

Explanation:

As a satellite moves around the Earth in a circular orbit, the direction of the force of gravity is always towards the center of the Earth. At an altitude of 100 km, you would be so high that you would see black sky and stars if you looked upwards.

5 0
3 years ago
12)A black body is heated from 27°C to 127° C. The ratio of their energies of radiations emitted will be
Nat2105 [25]

Answer:

81:256.

Explanation:

Let T denote the absolute temperature of this object.

Calculate the value of T before and after heating:

T(\text{before}) = 27 + 273 = 300\; \rm K.

T(\text{after}) = 127 + 273 = 400\; \rm K.

By the Stefan-Boltzmann Law, the energy that this object emits (over all frequencies) would be proportional to T^4.

Ratio between the absolute temperature of this object before and after heating:

\displaystyle \frac{T(\text{before})}{T(\text{after})} = \frac{3}{4}.

Therefore, by the Stefan-Boltzmann Law, the ratio between the energy that this object emits before and after heating would be:

\displaystyle \left(\frac{T(\text{before})}{T(\text{after})}\right)^{4} = \left(\frac{3}{4}\right)^{4} = \frac{81}{256}.

4 0
2 years ago
A student is observing a pendulum swinging back and forth. Each time it swings, the pendulum bob reaches a lower maximum, and ev
vodomira [7]

Answer:

the pendulum loses momentum and stops because of gravity and wind resistance. it does not violate the law of conservation of energy because it is not gaining any more momentum than what it had started with

Explanation:

7 0
2 years ago
Read 2 more answers
Other questions:
  • The phrase all men are created equal is from what document
    6·1 answer
  • Ralphie runs north 0.5 km, then turns east and runs 2.0 km, turns south and runs 1.5 km, turns west and runs another 1km. What i
    10·1 answer
  • Which of these is the best explanation for why 2 negatively charged balloons if put close repel
    13·1 answer
  • Copper has a specific heat of 0.386 J/g°C. How much heat is required to increase 5.00 g of copper from 0.0°C to 10.0°C?
    10·1 answer
  • Einstein’s theory of general relativity describes how space and time are connected. What makes this idea a theory?
    9·2 answers
  • Hannah has information about an object in circular orbit around Earth.
    15·2 answers
  • Which equation correctly relates mechanical energy, thermal energy, and total
    15·1 answer
  • URGENT <br> Find the total<br> equivalent<br> resistance for the<br> circuit.
    13·1 answer
  • You and a partner sit on the floor and stretch out a coiled spring to a length of 7.2 meters. You shake the coil so you
    5·1 answer
  • Tuesday
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!