answer.
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
KIM [24]
2 years ago
7

Why is thesize saved prior to entering the for loop? 2. what is the running time of removefirsthalf if lst is an arraylist? 3. w

hat is the running time of removefirsthalf if lst is a linkedlist?
Physics
1 answer:
Mrac [35]2 years ago
8 0
<span>After entering the loop, it should use the correct list size and the loop will be affected if the remove call changes the size of the list. If lst is an Arraylist the running time of removefirsthalf is O (n^2). So when the beginning is removed the next element will move forward. If lst is a LinkedList which is a dynamic structure the running is O (n) for removefirsthalf</span>
You might be interested in
A man climbs a ladder. Which two quantities can be used to calculate the energy stored of the man at the top of the ladder.
Dvinal [7]

Answer:The answer must be The weight of the man and the vertical distance moved.

Explanation: you calculate it by the force you applied times the distance you moved

8 0
2 years ago
Look at the two question marks between zinc (Zn) and arsenic (As). At the time, no elements were known
marissa [1.9K]

Answer:

Mendeleev predicted the atomic mass of each element along with compounds they each should form.

Explanation:

Based on other elements in the same group he predicted the existence of eka-aluminum and eka-silicon, later to be named gallium (Ga) and germanium (Ge).

6 0
2 years ago
A box of mass 8 kg slides across a frictionless surface at an initial speed 1.5 m/s into a relaxed spring of spring constant 69
Sav [38]

Answer:

1.1 sec

Explanation:

m = mass of the box = 8 kg

k = spring constant of the spring = 69 N/m

v = initial speed of the box = 1.5 m/s

t = time period of oscillation of box in contact with the spring

Time period is given as

t = \pi \sqrt{\frac{m}{k}}

Inserting the values

t = (3.14) \sqrt{\frac{8}{69}}

t = 1.1 sec

5 0
2 years ago
The energy transfer diagram shows energy transfer in an MP3 player. Useful energy is transferred away from the MP3 player by lig
OLEGan [10]

Answer:

heat and sound.

Explanation:

Though some would argue that the heat is not useful. I guess it depends on if your hands are cold.

4 0
2 years ago
A Porsche 944 Turbo has a rated engine power of 217hp . 30% of the power is lost in the drive train, and 70% reaches the wheels.
scZoUnD [109]

Explanation:

(a)  It is given that two-third of weight is over the drive wheels. So, mathematically, w = \frac{2}{3}mg.

Hence, maximum force is expressed as follows.

                F_{max} = \mu_{s} \times w

           m \times a_{max} = \mu_{s} (\frac{2}{3} mg)

Hence, the maximum acceleration is calculated as follows.

             a_{max} = \frac{2}{3} \mu_{s} \times g

                          = \frac{2}{3} \times 1.00 \times 9.8 m/s^{2}

                          = 6.53 m/s^{2}

Hence, the maximum acceleration of the Porsche on a concrete surface where μs = 1 is 6.53 m/s^{2}.

(b)  Since, 30% of the power is lost in the drive train. So, the new power is 70% of P_{max}.

That is,   new power = 0.7 \times P_{max}

Now, the expression for power in terms of force and velocity is as follows.

                      P = F_{max} \nu

              0.7 P_{max} = ma_{max} \nu

Therefore, speed of the Porsche at maximum power output is as follows.

            \nu = 0.7 \times \frac{P_{max}}{ma_{max}}

                      = 0.7 \times \frac{217 hp \times \frac{746 W}{1 hp}}{1500 kg \times 6.53 m/s^{2}}

                      = 11.568 m/s

                      = 11.57 m/s

Therefore, speed of the Porsche at maximum power output is 11.57 m/s.

(c)   The time taken will be calculated as follows.

             time = \frac{\text{velocity}}{\text{acceleration}}

                     = \frac{11.57 m/s}{6.53 m/s^{2}}

                     = 1.77 s

Therefore, the Porsche takes 1.77 sec until it reaches the maximum power output.

6 0
2 years ago
Other questions:
  • On which planet would a spaceship need the largest force to take off
    14·2 answers
  • A sound wave traveling eastward through air
    8·2 answers
  • A power drill runs at a voltage of 120 V and draws a current of 4 A. What is the wattage of the drill?
    11·1 answer
  • Which formula can be used to calculate the horizontal displacement not of a horizontally launched projectile
    10·1 answer
  • student uses a magnet to move a 0.025 kg metal ball magnet exerts a force of 5N which causes the ball to begin moving what is th
    11·1 answer
  • a student wants to push a box of books with the mass of 50 kg in 3 m horizontally towards the location of the shelves where the
    11·1 answer
  • An object of mass 8.0 kg is attached to an ideal massless spring and allowed to hang in the Earth's gravitational field. The spr
    5·2 answers
  • A 59.7 g piece of metal that had been submerged in boiling water was quickly transferred into 60.0 mL of water initially at 22.0
    14·1 answer
  • Of the three primary forms of subaerial volcanoes, ________ are large cone-shaped mountains that consist of alternating layers o
    5·1 answer
  • The average standard rectangular building brick has a mass of 3.10 kg and dimensions of 225 m x 112 m x 75 m. The gravitational
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!