what are loops and its types

Answers

Answer 1

Answer:

A for loop is a loop that runs for a preset number of times. A while loop is a loop that is repeated as long as an expression is true. An expression is a statement that has value. A do while loop or repeat until loop repeats until an expression becomes false.


Related Questions

pleaseeee help mehhhh​

Answers

A

The answer is a .

Have a great day

a toy car needs a source of energy to move. how could you give gravitational potential energy to a toy car so that it will move when you let it go?​

Answers

Answer:

wait one second im about to go get some milk im thirsty

Explanation:

do you want any chicken on your salad

The magnetic field lines of a bar magnet spread out from the
A. north end to the south end.
B. south end to the north end.
C. edges to the center.
D. center to the edges.

Answers

Answer:

I think the letter B. But I'm not sure pero I try mo Lang po baka Yan po ang tamang sagot kac Yan po Yung nilagay na sagot saakin e Kaya try mo Lang po

Using the formula below, determine how
many seconds it would take for a satellite
traveling at 4 miles per second to travel
11,000 miles across the Pacific Ocean.
speed=
A 27.5 seconds
B 45 seconds
C 2,750 seconds
D 3,000 seconds

Answers

Speed=distance /time
11,000/4 =2,750
Answer=C

A copper atom has an atomic number of 29 and an atomic mass of 64. What
is the structure of this atom?
OA. It has a central nucleus composed of 29 protons and 64 neutrons,
surrounded by an electron cloud containing 29 electrons.
B. It has a central nucleus composed of 29 protons and 35 neutrons,
surrounded by an electron cloud containing 29 electrons.
OC. It has a central nucleus composed of 29 protons and 29 neutrons,
surrounded by an electron cloud containing 35 electrons.
D. It has a central nucleus composed of 35 protons and 29 neutrons,
surrounded by an electron cloud containing 29 electrons.

Answers

Answer:

It has a central nucleus composed of 29 protons and 35 neutrons, surrounded by an electron cloud containing 29 electrons

Explanation:

Atoms Composition:

A atom is mainly composed of a centrally-placed nucleus. A nucleus consists of protons and neutrons with a cloud of electrons surrounding the outside.  A proton is a nuclear particle having a positive charge equal to that of an electron and a mass more than 1800 times the electron. A neutron is a nuclear particle having a mass almost identical to that of an electron, but no electric charge.

Calculation:

Mass number = Proton + Neutron64 = 29 + NeutronCollect like termsNeutron = 64 – 29Neutron = 35

What is the energy of the photon emitted when an electron in a mercury atom drops from energy level f to energy level b?

Answers

The energy emitted by a photon when it falls from level f to energy level b is 2.84 eV.

Energy of photon at level f and level b

The energy of a photon at level F is given as -268 eV and the energy photon at level b is given as -5.52 eV.

Energy emitted by a photon when it falls from level f to energy level b is calculated as follows;

ΔE = -2.68 eV - (-5.52 eV)

ΔE =  -2.68 eV + 5.52 eV

ΔE = 2.84 eV

Thus, the energy emitted by a photon when it falls from level f to energy level b is 2.84 eV.

Learn more about energy of photon here: https://brainly.com/question/7464909

#SPJ1

Vhat are you looking for when you research a potential employer?
personal information about the managers
company history
related industry news
what its product or service is

Answers

B because I had it before

which vector has an x component with a length of 3?

Answers

Answer:

A) b.

Explanation:

all the details are in the attached picture.

When you are making cold calls while job hunting, be
o 20 minutes early
O on time
O prepared with a résumé and cover letter
O casual

Answers

Answer:

The answer is O prepared with a résumé and cover letter

Explanation:

That will get you very far if you are prepared with a résumé and cover letter

prepared with resume and cover letter

Please help!! Look at pic

Answers

Answer:

Explanation:

Voltage and Current relation is given by V=IR
I=9A

R=4Ohm

V=IR
V=9x4=36Volts

Resistance = 4 Ohm

Current = 9 Ampere

Voltage = 36 Volts

When the ultrasound beam strikes the surface at or nearly at right angles, the fraction of sound energy that is reflected (R) at the interface between two materials of acoustic impedance Z1 and Z2, respectively, is given by:​

Answers

Explanation:

the expression of x= -4t+2t^2 where x is displecement?

Find the charge on the capacitor in an LRC-series circuit at t = 0.03 s when L = 0.05 h, R = 6 Ω, C = 0.005 f, E(t) = 0 V, q(0) = 4 C, and i(0) = 0 A. (Round your answer to four decimal places.)
Determine the first time at which the charge on the capacitor is equal to zero. (Round your answer to four decimal places.)

Answers

The charge on the capacitor in an LRC-series circuit is 2.8907 C.

The first time at which the charge on the capacitor is equal to zero is 0.1409s.

What is capacitor?

The capacitor consists of two parallel plates used to store the charge when current flows through it, and provides energy when shuts off.

By the Kirchoff's second  law,

Lq'' +Lq' +q/C =E(t)

Where, L =0.05h, R = 6 Ω, C = 0.005 f, E(t) = 0 V, q(0) = 4 C, and i(0) = 0 A.

Equations becomes q''+120q' +4000 =0

The auxiliary equation is m² +120m+4000 =0

Solving this quadratic equation, we have

m =-6± 20i

Then , q(t) = Ae^(-60t)cos 20t + Be^(-60t)sin 20t    where, A and B are constants.

At t=0, q(0) =7 =A

and q'(t) = A [ -20e^(-60t)sin 20t - 60e^(-60t)cos 20t ] +B  [ 20e^(-60t)cos 20t - 60e^(-60t)sin 20t ]

So, i(0)= q'(0) =0 =-60A +20 B

Putting the value of A=7 above, we have B =21.

So,  q(t) = 7e^(-60t)cos 20t + 21e^(-60t)sin 20t  

The charge on the capacitor at time t =0.015

q(0.015) = 2.8907 C

Thus the charge on capacitor is  2.8907 C.

q(t) = 7e^(-60t)cos 20t + 21e^(-60t)sin 20t  =0

Solve for t, we get

e^(-60t)cos 20t + 3e^(-60t)sin 20t\

-1/3 = sin 20t /cos20t

t =1/20 arctan(-1/3)

As, arctan is defined within -90 to +90,

So, 20t = -0.3218 +π =2.8197

t =0.1409s

Thus the first time at which the charge is zero is 0.1409s.

Learn more about capacitor.

https://brainly.com/question/17176550

#SPJ1

A metallic axle with a diameter of 20mm has to be fitted into a wheel which has a circular hole at its center with diameter of 18.5mm

Answers

The coefficient of linear expansion of the metal at the given length is determined as  3.75 x 10⁻⁴/⁰C.

Coefficient of linear expansion of the metal

The coeffcient of linear expansion of the metal is calculated as follows;

ΔL = αLΔT

α = ΔL/LΔT

Where;

α is the coefficient of linear expansionΔL is change in length = 20 mm - 18.5 mm = 1.5 mmΔT is change in temperature = 0 - (-200) = 200°CL is the original length = 20 mm

α = (1.5)/(20 x 200)

α = 3.75 x 10⁻⁴/⁰C

The complete question is below:

A metallic axle with a diameter of 20mm has to be fitted into a wheel which has a circular hole at its center with diameter of 18.5mm. To fit the axle into the hole, the axle is dipped into liquid nitrogen at a temperature of -200°C. Calculate the coefficient of linear expansion of the metal.

Learn more about coefficient of linear expansion here: https://brainly.com/question/24215446

#SPJ1

BRAINLIEST IF ITS CORRECT HEPL​

Answers

Answer: C.

Explanation: They describe the direction of the magnetic force on a north monopole at any given position.

What kind of object are the light rays interacting with in the model below?

Convex mirror
Convex lens
Concave mirror
Concave lens

Answers

Answer:

Concave lens

.............

The Venus flytrap is known for which of these behaviors?

closing its flower buds at night
snapping a leaf shut around an insect
closing its leaves when touched by a finger
screeching when in danger

Answers

Snapping a leaf shut around an insect, I think.

Why is nuclear energy able to be used for practical purposes? the reactions are controlled to regulate energy output. the reactions are uncontrolled for maximum energy output. all of the products are fed back into the reaction to keep it going. all of the products are immediately removed to inhibit more reactions.

Answers

Nuclear energy is able to be used for practical purposes because ; ( A ) The reactions are controlled to regulate energy output

Nuclear energy generation

Nuclear energy is a clean energy source which has a zero-emission, nuclear energy is used to generate electricity/power following a controlled reaction known as fission of uranium atoms to produce heat energy required to drive a turbine to produce electricity

Hence we can conclude that Nuclear energy is able to be used for practical purposes because ; ( A ) The reactions are controlled to regulate energy output.

Learn more about Nuclear energy : https://brainly.com/question/11963586

#SPJ4

Answer:

option A

Explanation:


Which of the following is a physical change?
sawing a piece of wood in half
O burning a piece of wood
O a copper statue turning from red to green
Orust forming on an iron fence

Answers

Answer:

I think its 'sawing a piece of wood in half'

Explanation:

sry if its wrong

a car weighting, 14500 N skids on ice, which has a kinetic coefficient of friction 0.2. It then hits a patch of dry road area which has a Kinetic coefficient of friction of 0.8. What is the change in friction force experienced by the car?

Answers

The change in friction force experienced by the car is

What is friction?

The friction is caused between two uneven contacting surfaces.

When car is on ice, the friction force is

f = μ N

f₁ = 0.2 x 14500 = 2900N

When the car is on dry road, the friction force is

f₂ = 0.8 x 14500 =11,600 N

The change in friction force =11600 - 2900 = 8700N

Thus, the change in friction force experienced by the car is  8700N.

Learn more about friction.

https://brainly.com/question/13000653

#SPJ1

Conservation efforts have been effective in _______.
a.
increasing the number of endangered species
b.
reducing all the negative impacts of human activity
c.
preserving wildlife habitats
d.
all of the above

Answers

Answer:

The answer is D. All of the above.

Explanation:

All of these were efforts and been effective.

Answer:

c

Explanation:

Determine the CM of the uniform thin L-shaped construction brace shown in (Figure 1) . Suppose that a = 2.20 m and b = 1.63 m Determine the x coordinate of the CM

Answers

By weighted average method, the x-coordinates of the center of mass of the compound figure, the uniform thin L-shaped construction brace is [tex]\bar x = \frac{1.10\cdot m_{A}+2.10\cdot m_{B}}{m_{A}+m_{B}}[/tex] meters.

How to determine the coordinates of the center of mass of a compound figure

Let suppose that the entire construction has a uniform mass, then the coordinates of the center of mass can be determined by definition of weighted average:

[tex]\bar x = \frac{\sum \limits_{i = 1}^{n}x_{i}\cdot m_{i}}{\sum \limits_{i=1}^{n}m_{i}}[/tex]     (1)

[tex]\bar y = \frac{\sum \limits_{i = 1}^{n}y_{i}\cdot m_{i}}{\sum \limits_{i=1}^{n}m_{i}}[/tex]     (2)

If we know that a = 2.20 m and b = 1.63 m, then the x-coordinates of the center of mass of the compound figure is:

[tex]\bar x = \frac{1.10\cdot m_{A}+2.10\cdot m_{B}}{m_{A}+m_{B}}[/tex]

By weighted average method, the x-coordinates of the center of mass of the compound figure, the uniform thin L-shaped construction brace is [tex]\bar x = \frac{1.10\cdot m_{A}+2.10\cdot m_{B}}{m_{A}+m_{B}}[/tex] meters.

To learn more on center of mass: https://brainly.com/question/8662931

#SPJ1

Before Schwarzschild, the understanding of relativity to gravitational force was unknown.

t or f

Answers

Answer:

False

Explanation:

If 20 coulombs of charge move past a given point in 4 s, what is the current?

Answers

Answer:

5A

Explanation:

[tex]=> Current (I) = \frac{q}{t} [/tex]

Here q = 20 C and t = 4sec

=> I = 20/4 = 5A

The horizontal surface on which the block slides is frictionless. The speed of the block before it touches the spring is 5.0 m/s. How fast is the block moving at the instant the spring has been compressed 15 cm? The spring constant k = 2000 N/m.

Answers

The block moving at instant the spring is compressed 15cm is  √[(25m - 45)/m]

What is conservation of energy principle?

When there is no external force acting on the system, the total mechanical energy remains conserved.

K.E i = K.E f + SPE

1/2 mu² =1/2 mv² + 1/2 kx²

Substitute u = 5m/s, k =2000N.m and x =0.15m, we get the final velocity

1/2 mu² =1/2 mv² + 1/2 kx²

v =√[(25m - 45)/m]

Thus, the block moving at the instant the spring has been compressed 15 cm is √[(25m - 45)/m]

Learn more about conservation of energy principle.

https://brainly.com/question/13097206

#SPJ1

HELP MEEE!!!!!!!!!

A series circuit is made up of a battery and 4 Resistors.

The Resistors are:

R1 = 10 ohms

R2 = 20 ohms

R3= 5 ohms

R4= 10 ohms

What is the total resistance in the circuit is...
ohms

Answers

r2 i believe but lmk if i’m wrong

A satellite with a mass of 150 kg fires its engines to increase velocity, thereby
increasing the size of its orbit about Earth. As a result, it moves from a
circular orbit of radius 7.5 x 106 m to an orbit of radius 7.7 x 106 m. What is
the approximate change in gravitational force from Earth as a result of this
change in the satellite's orbit? (Recall that Earth has a mass of 5.97 x 1024 kg
and G = 6.67 x 10-11 N-m²/kg².)
OA. -113 N
OB. -148 N
O C. -216 N
D. -54 N

Answers

The approximate change in gravitational force from Earth as a result of the change in radius of the satellite's orbit is 5. 35N

What is the universal law of gravitation?

The universal law of gravitation states that the particle of matter in the universe attracts another particle with a force directly proportional to the  product of their masses and inversely proportional to the square of the distance between them.

It is written thus;

F = G MIM2÷ r∧2

Where

F = Gravitational force

G = Gravitational constant

M1 and M2 are the masses of the object

r = radius

How to calculate the gravitational force

Formula:

F = G MIM2 ÷ r∧2

Given M1 = 150kg, M2 = 5.97 x 1024 kg, r = 7.5 x 106 m, G =  6.67 x 10-11 N-m²/kg²

For the first orbit, substitute the values

F = 6.67 x 10∧-11 × 150 ×  5.97 x 10∧24 ÷ (7.5 x 10∧6)²

F = 5.95 × 10∧16 ÷ 56.25 × 10∧12 =  105.77 N

For the second orbit of radius 7.7 x 106 m

F =  6.67 x 10∧-11 × 150 ×  5.97 x 10∧24 ÷ (7.7 x 10∧6)²

F = 5.95 × 10∧16 ÷ 59.25 × 10∧12 = 100. 42 N

The approximate change = 105. 77 - 100.42 = 5. 35N

Hence, the approximate change in gravitational force from Earth as a result of the change in radius of the satellite's orbit is 5. 35N

Learn more about gravitational force here:

https://brainly.com/question/19050897

#SPJ1

calculate the work done 36 kg boxes lifted onto a shelf 1.5 m high​

Answers

Answer:

529.2 joules

Explanation:

Work done = force x distance = mass x gravity x distance

= 36x9.8 x1.5 =529.2 joules

.......................................

.

Answers

Explanation:

?????????!!!!!!!??????

when an Earthquake occurs energy radiates in all direction from its source called the

Answers

Answer:

[tex]\huge\boxed{\sf Focus}[/tex]

Explanation:

Focus:The point at which Earthquake occurs is called Focus.It is also called hypocenter.Epicenter:Epicenter is the point on the Earth surface which is just above the focus.

Most of the times, epicenter is confused with focus. However, epicenter lies on the Earth surface and focus is the exact point from where the Earthquake originates.

[tex]\rule[225]{225}{2}[/tex]

Help
Light helps you in so many ways. But, if it is not used properly, it can also be harmful to you. How can you use light safely? Provide at least five (5) ways how you will protect yourself from light energy.

Answers

Answer
1.Limit screen time to reduce harmful blue light
2. Sunglasses and/or blue light reducing glasses to protect your eyes
3. Sunscreen
4. UV protectant clothing (SPF factor material)
5. Wear a hat
6. Check the UV Index before spending time outside
7. Avoid tanning beds
8. Chose shade during high sun hours
9. Use extra caution when near reflective surfaces, like water, snow, and sand
Other Questions
One foreign ally who supported the american colonist please help ILL GIVE BRAINLIESST I NEED TWO PPL TO ANWSER SO I CAN GIVE IT !! EXPLANATION PLEASE Select all the values below that you can find or calculate when given only a dot plot1.) mean2.) median3.) range4.) IQR5.) outliers some people say that playing video games is a waste of time what do you think ? why? In the heat equation what does Q represent What do you like MOST about your chosen learning modality How many floral parts is the flower made up A telescope company needs to choose a cardboard box to ship its product across the country. Use the information to answer each question below. Brainlest to whoever answers with work. A ray gets successively reflected from two mirrors inclined at an angle of 40. If the angle of incidence on the first mirrors is 60, then the net deviation of this ray is -a)40b)280c)80d)160 Campo lxico de tienda compras vendedor clienta What are Metals, Nonmetals and Metalloids? 32 POINTS! i need to know this. Populists believe that the government should not control any aspects of the economy.O TrueO False On a map one inch is equal to 125 miles. There are six inches between Happyville and Glumtown. How many miles are between the two towns?(I will make brainliest) Which of the following countries isNOT part of Central America?A. NicaraguaB. HondurasC. PeruPlease awnser fast. Pleaseeee help school ends tmrw A large three-car detached garage is constructed on a homesite at a cost of $65,000. The appraiser researches the market and finds that this garage only adds $30,000 in value to the property. Which valuation principle does this demonstrate? Visit any retail store in your community and request a 20 minutes appointment to interview the owner or manager so that you can collect relevant information State the name of the business and the year in which it was established 1.1 List and explain any THREE objectives this business is able to meet? 1.2 Use an appropriate example from this retail store and differentiate between total revenue average revenue and marginal revenue. a computer virus cannot be distributed by A persistent state of physiological arousal in response to ongoing or numerous perceived threats is:. PLEASE HELP a41= 5 7 2