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]
2 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]2 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
a toy propeller fan with a moment of inertia of .034 kg x m^2 has a net torque of .11Nxm applied to it. what angular acceleratio
Harman [31]

Answer:

The  angular acceleration is  \alpha  = 3.235 \ rad/s ^2

Explanation:

From the question we are told that

    The moment of inertia is  I  =  0.034\ kg \cdot m^2

     The  net torque is  \tau  =  0.11\ N \cdot m

Generally the net torque is mathematically represented as

           \tau =  I  *  \alpha

Where \alpha is the angular acceleration so  

        \alpha  =  \frac{\tau }{I}

substituting values

         \alpha  =  \frac{0.1 1}{ 0.034}

        \alpha  = 3.235 \ rad/s ^2

6 0
3 years ago
Does passing a magnet through a coil of wire break off it’s electric current
hichkok12 [17]
A magnetic field is actually generated by a moving current (or moving electric charge specifically). The magnetic field generated by a moving current can be found by using the right hand rule, point your right thumb in the direction of current flow, then the wrap of your fingers will tell you what direction the magnetic field is. In the case of current traveling up a wire, the magnetic field generated will encircle the wire. Similarly electromagnets work by having a wire coil, and causing current to spin in a circle, generating a magnetic field perpendicular to the current flow (again right hand rule).

So if you were to take a permenant magnet and cut a hole in it then string a straight wire through it... my guess is nothing too interesting would happen. The two different magnetic fields might ineteract in a peculiar way, but nothing too fascinating, perhaps if you give me more context as to what you might think would happen or what made you come up with this question I could help.

Source: Bachelor's degree in Physics.
7 0
2 years ago
What is the average power supplied by a 60.0 kg secretary running up a flight of stairs rising vertically 4.0 m in 4.2 s?
gayaneshka [121]

Answer:

9.8kW

Explanation:

Given data

Mass= 60kg

Hieght= 4m

Time= 4.2seconds

We know that the energy possessed is given as

PE=mgh

PE=60*9.81*4

PE= 2354.4 Joulse

Also, the expression for power is

Power=Energy*Time

Power= 2354.4*4.2

Power=9888.48 watt

Power= 9.8kW

4 0
3 years ago
supose you have two wires of equal length made from same material. how is it possible for the wires to have different resistance
Ivenika [448]
I'm not sure but I had this question on a benchmark I think its the density of the wire  you need to  find the density or the mass I'm not sure but i do remember this question 
6 0
2 years ago
What is an example of kinetic energy
Olenka [21]

An airplane has a large amount of kinetic energy in flight due to its large mass and fast velocity.

6 0
2 years ago
Other questions:
  • You are walking on a beach and find a mystery piece of metal. You take it back to your lab and measure its mass to be 0.5 kg. In
    15·1 answer
  • Which type of electromagnetic radiation cannot be focused?
    8·2 answers
  • How does earths atmispher help it to sustain life
    7·1 answer
  • NEED HELP!!!!!! CAN SOMEBODY HELP ME?
    15·1 answer
  • Two sides of a parallelogram are in the ratio 5 : 3. If its perimeter is 64 cm, find the lengths of its sides.​
    10·1 answer
  • If an object has the same number of positive and negative changes, it’s electrical charge is ?
    6·1 answer
  • The angular velocity of an object is given by the following equation: ω(t)=(5rads3)t2\omega\left(t\right)=\left(5\frac{rad}{s^3}
    6·1 answer
  • A film of soapy water ( n= 1.33 ) on top of a plastic cutting board has a thickness of 233 nm. What color is most strongly refle
    8·1 answer
  • Which one will have more pressure? Explain
    14·2 answers
  • The volume of a gas is increased six times the original volume by heating it. If the original temperature of
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!