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
Can anybody write a short poem about friction
Luden [163]
Answer:

you will be the clouds
and I will be the sky.
you will be the ocean
and I will be the shore.
you will be the trees
and I will be the wind.

whatever we are, you and I will always collide.

There you go! Let me know if it helped.
:)
8 0
2 years ago
2. A 2000 kg car with speed 12.0 m/s hits a tree. The tree does not move or
krek1111 [17]

a) The work done by the tree is -1.44\cdot 10^5 J

b) The amount of force applied is 2880 N

Explanation:

a)

According to the work-energy theorem, the work done on the car is equal to the change in kinetic energy of the car. Therefore, we can write:

W=K_f - K_i = \frac{1}{2}mv^2 - \frac{1}{2}mu^2

where

W is the work done on the car

m is the mass of the car

u is its initial speed

v is its final speed

For the car in this problem, we have:

m = 2000 kg

u = 12.0 m/s

v = 0 (since the car comes to a stop, after the crash)

Therefore, the work done by the tree on the car is:

W=0-\frac{1}{2}(2000)(12.0)^2=-1.44\cdot 10^5 J

The work is negative because it is done in the direction opposite to the direction of motion of the car.

b)

The work done by the tree on the car can also be rewritten as

W=Fd

where

F is the force applied on the car

d is the displacement of the car during the collision

In this situation, we have:

W=-1.44\cdot 10^5 J is the work done

d=50.0 cm = 0.50 m is the displacement of the car during the collision

Solving the equation for F, we find the force exerted by the tree on the car:

F=\frac{W}{d}=\frac{-1.44\cdot 10^5 J}{0.50}=-2880 N

Where the negative sign means the force is applied opposite to the direction of motion of the car. Therefore, the magnitude of the force applied is 2880 N.

Learn more about work:

brainly.com/question/6763771

brainly.com/question/6443626

#LearnwithBrainly

3 0
3 years ago
A car weighing 14,700 N is speeding down a highway with a velocity of 99 km/h. What is the
tankabanditka [31]

Answer: 148348.6239 kg•m/s

Explanation: Firstly, we need to convert the 14700 N into kilograms, and to do so, use the formula net force is equal to mass times acceleration and rearrange the formula to find mass like shown below...

F = ma

F/a = m

14700/9.81 = 1498.470948 kg, this is your mass

Now that we convert it into kilograms, plug all the numbers into the variable of the momentum formula.

Momentum formula is P = mass x velocity

Like this:

P = 1498.470948 x 99

p = 148348.6239 kg•m/s.

I believe that is your answer, hope that helps you even a bit out.

Thanks.  

7 0
2 years ago
You throw a small rock straight up from the edge of a highway bridge that crosses a river. the rock passes you on its way down,
maw [93]
V^2=u^2 +2aS
U is found first by considering that first 8 secs and using v=u+at. {different v and u though}

V=-u+gt.
Magnitude of u = magnitude of v if there is no resistance ( because the conservation of energy says the k. E. must be the same when it passes you as when it left your hand).... up is negative here, down is positive.
V+v=gt
2v= g x 8
V=4xg.= the initial velocity for the next calculation
V^2=(4g)^2+(2xgx21)

So v can be calculated.

4 0
3 years ago
An object is dropped from rest from the top of cliff 100m he begins his dive by jumping up with velocity of 5ms/s
Pavlova-9 [17]

Answer:

incomplete question?

Explanation:

huh

7 0
3 years ago
Other questions:
  • Physical Science AIS - AE 20-21-Kotal / Unit 2: Reactions and Radioactivity / The Environment
    14·1 answer
  • A student is measuring the circumferences of pine trees for an experiment.
    8·1 answer
  • The downlink frequency is lower than the uplink frequency. True or False
    15·2 answers
  • If this plastic cup is heated to its melting
    13·1 answer
  • HELP ASAP! GIVING BRAINLIEST
    10·2 answers
  • during a space shuttle launch about 830,000 kg of fuel is burned in 8 min. the fuel provides the shuttle with a constant thrust,
    5·1 answer
  • Anyone know how to do this?
    15·1 answer
  • VISUAL 2 GAS LAWS
    8·1 answer
  • If a leaf falls from a tree, has work been done on the leaf? Explain.
    7·1 answer
  • In order to find the resultant of two vectors we must use the pythagoran therom, a +b2-2. Where the crepresents the resultant ve
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!