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
Time shifting occurs when _______.
Svet_ta [14]
The answer is C, individuals copy works to view at a later time.
4 0
3 years ago
Read 2 more answers
What equation directly defines hookes law?
love history [14]

B. F<em>spring = k(triangle)</em> x

7 0
3 years ago
In an electric header 500w is written. What is its meaning​
Fiesta28 [93]

Answer:

Because it's wattage is 500W.

Explanation:

This is its mearurement

4 0
3 years ago
What formula allows you to calculate the x component of a projectile?
Kay [80]

X-component of a projectile in flight =

(initial x-component)

plus

(initial horizontal component of velocity) x (flight time so far)

8 0
3 years ago
Read 2 more answers
To test the performance of its tires, a car travels along a perfectly flat (no banking) circular track of radius 130 m. The car
marysya [2.9K]

Answer:

0.739

Explanation:

If we treat the four tire as single body then

W ( weight of the tyre ) =  mass × acceleration due to gravity (g)

the body has a tangential acceleration = dv/dt = 5.22 m/s², also the body has centripetal acceleration to the center = v² / r

where v is speed 25.6 m/s and r is the radius of the circle

centripetal acceleration = (25.6 m/s)² / 130 = 5.041 m/s²

net acceleration of the body = √ (tangential acceleration² + centripetal acceleration²) = √ (5.22² + 5.041²) = 7.2567 m/s²

coefficient of static friction between the tires and the road = frictional force / force of normal

frictional force = m × net acceleration / m×g

where force of normal = weight of the body in opposite direction

coefficient of static friction = (7.2567 × m) / (9.81 × m)

coefficient of static friction = 0.739

4 0
3 years ago
Other questions:
  • A box is sitting stationary on a ramp that is 42° to the horizontal. The box has a gravitational force of 112.1 N. What is the m
    5·2 answers
  • If a car used 260.000 W of power to complete a race in 15 s. how much work did the car do?
    9·1 answer
  • About when was the sail developed, making travel possible on the open water?
    5·1 answer
  • A lead pellet of mass 10.0g is shot horizontally into a stationary wooden block of mass 100g. The pellet hits the block with an
    13·1 answer
  • 10. At point A, a runner is jogging 5 m/s. Forty seconds later, at point B
    13·1 answer
  • Tips to get friends?
    10·1 answer
  • What is the equation for finding the amount of inertia in forces and motion? Explain how you solve that equation.​
    5·1 answer
  • When electrons are accelerated by 2450v in an electron microscope they will have wavelengths of
    11·1 answer
  • Temperature of the resistor in an RC circuit. In this problem we will look at the temperature response of the resist
    8·1 answer
  • A spring is 6.0cm long when it is not stretched, and 10cm long when a 7.0N force is applied. What force is needed to make it 20c
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!