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

Describe how energy is transferred in one of the sequences? [3]

Answers

Answer:

Thermal energy transfers occur in three ways: through conduction, convection, and radiation. When thermal energy is transferred between neighboring molecules that are in contact with one another, this is called conduction.

Explanation:

What is the relationship between Earth’s revolution and seasons. What evidence can you provide to explain how Earth’s revolution determines the seasons?

Think!!!! Write Claim, Reasoning and add evidence.

Answers

Answer:

Earth's tilted axis causes the seasons. Throughout the year, different parts of Earth receive the Sun's most direct rays. So, when the North Pole tilts toward the Sun, it's summer in the Northern Hemisphere. And when the South Pole tilts toward the Sun, it's winter in the Northern Hemisphere.

Explanation:

It's all about Earth's tilt!

Claim:- Many people believe that Earth is closer to the Sun in the summer and that is why it is hotter. And, likewise, they think Earth is farthest from the Sun in the winter.

Although this idea makes sense, it is incorrect.

It is true that Earth's orbit is not a perfect circle. It is a bit lop-sided. During part of the year, Earth is closer to the Sun than at other times. However, in the Northern Hemisphere, we are having winter when Earth is closest to the Sun and summer when it is farthest away! Compared with how far away the Sun is, this change in Earth's distance throughout the year does not make much difference to our weather.

There is a different reason for Earth's seasons.

Reasoning:- earth's axis is an imaginary pole going right through the center of Earth from "top" to "bottom." Earth spins around this pole, making one complete turn each day. That is why we have day and night, and why every part of Earth's surface gets some of each.

Earth has seasons because its axis doesn't stand up straight.

But what caused Earth to tilt?

Long, long ago, when Earth was young, it is thought that something big hit Earth and knocked it off-kilter. So instead of rotating with its axis straight up and down, it leans over a bit.

By the way, that big thing that hit Earth is called Theia. It also blasted a big hole in the surface. That big hit sent a huge amount of dust and rubble into orbit. Most scientists think that that rubble, in time, became our Moon.

As Earth orbits the Sun, its tilted axis always points in the same direction. So, throughout the year, different parts of Earth get the Sun’s direct rays.

Sometimes it is the North Pole tilting toward the Sun (around June) and sometimes it is the South Pole tilting toward the Sun (around December).

It is summer in June in the Northern Hemisphere because the Sun's rays hit that part of Earth more directly than at any other time of the year. It is winter in December in the Northern Hemisphere, because that is when it is the South Pole's turn to be tilted toward the Sun.

Earth's lopsided orbit

Evidence- Earth's perihelion (point closest to Sun) = 91,400,000 miles from Sun

Earth's aphelion (point farthest from Sun) = 94,500,000 miles from Sun

While that is a difference of over 3 million miles, relative to the entire distance, it isn’t much.

And, believe it or not, aphelion (when Earth is farthest from the Sun) occurs in July, and perihelion (when we are closest) occurs in January. For those of us who live in the Northern Hemisphere where it's summer in July and winter in January, that seems backwards, doesn't it? That just goes to prove that Earth's distance from the Sun is not the cause of the seasons.

Answer:

Earth's tilted axis causes the seasons. Throughout the year, different parts of Earth receive the Sun's most direct rays. So, when the North Pole tilts toward the Sun, it's summer in the Northern Hemisphere. And when the South Pole tilts toward the Sun, it's winter in the Northern Hemisphere.

Hope it helps..

PLEASE HELP

Which of the following is best determined by applying the principles of
relativity and uncertainty, rather than Newtonian physics?
A. The speed of a truck
B. The length of an object at rest
C. The position of a bird flying overhead
D. The position of an electron

Answers

By applying the principles of relativity and uncertainty, rather than Newtonian physics,  the position of an electron is best determined. The correct option is D.

What is principle of uncertainty?

It states that position and the velocity of an object can't be measured exactly at the same time. One of them may have the approximate value, using the principle of uncertainty.

Every object is moving relative to some frame of reference. So, exact velocity and at what position an object is, can't be find by theory of Newtonian physics. Speed of a truck, length of object at rest and position of a flying bird flying overhead can be found using the Newtonian physics.

An electron is very minute particle whose velocity is unpredictable at any location.  So, the position of an electron is best determined by the theory of relativity and uncertainty.

Thus, The correct option is D.

Learn more about principle of uncertainty.

https://brainly.com/question/13050159

#SPJ1

A magnetic field of 0.0037 T is measured at a distance of 2 cm from a long
straight current carrying wire. What is the magnitude of the current flow in the
wire?

Answers

Hi there!

We can use Ampère's Law to derive an expression for the magnetic field strength produced by an infinitely long current-carrying wire:

[tex]\oint B \cdot dl = \mu_0 I_{encl}[/tex]

B = Magnetic Field Strength (T)
dl = Differential length along path

μ₀ = Permeability of Free Space (Tm/A)

I = Enclosed current (A)

The integral is a cross product, so the cosine of the angle between the magnetic field and the path of integration is used. However, for a straight current-carrying wire, the path is ALWAYS parallel to the magnetic field, so since cos(180) = 1, we can disregard the cross product.

Additionally, the path of integration is equivalent to:

[tex]l = 2\pi r[/tex]

[tex]B \cdot l = \mu_0 I_{encl}\\\\B * 2\pi r = \mu_0 I_{encl}\\\\B = \frac{\mu_0 I_{encl}}{2\pi r }[/tex]

Rearrange to solve for enclosed current:

[tex]I_{encl} = \frac{2\pi rB}{\mu_0} = \frac{2\pi (0.02)(0.0037)}{(4\pi *10^{-7})} = \boxed{370 A}[/tex]

Where would sound NOT be
able to travel?

A. through the ground
B. through the ocean
C. through the air
D. through outer space

Answers

The answer is D, or Outer Space.

Explanation:

Sound is implemented through mechanical wave transferral, which requires a medium (solid, liquid, or gas) to travel through. Because sound is a mechanical wave, it cannot travel through vacuums (space).

Two spherical objects have masses of 8.1 x 10^2kg and 4x.5 10^8kg. The gravitational attraction between them is 1.9 x 10^-3 N.

Answers

Let's see

We need distance between them?

[tex]\\ \rm\Rrightarrow F=\dfrac{GMm}{r^2}[/tex]

[tex]\\ \rm\Rrightarrow r^2=\dfrac{GMm}{F}[/tex]

[tex]\\ \rm\Rrightarrow r^2=\dfrac{6.673\times 10^{-11}\times 8.1\times 10^2\times 4.5\times 10^8kg}{1.9\times 10^{-3}}[/tex]

[tex]\\ \rm\Rrightarrow r^2=128.02\times 10^{2}[/tex]

[tex]\\ \rm\Rrightarrow r^2=12802[/tex]

[tex]\\ \rm\Rrightarrow r=\sqrt{12802}[/tex]

[tex]\\ \rm\Rrightarrow r=113.14m[/tex]

To which group/family does each of these belong? A. Sulfur _________ B. Sodium _________ C. Argon _________ D. Silicon _________ E. Chlorine _________ F. Phosphorus_________

Answers

Answer:

A. Sulfur _________ group 16 chalcogens

B. Sodium _________ group 1 alkali metals

C. Argon _________ group 18 noble gases

D. Silicon _________ group 14 carbon family

E. Chlorine _________ group 17 halogens

F. Phosphorus_________ group 15 pnicogens

Q32.4 Sometimes neon signs located near a powerful radio station are seen to glow faintly at night, even though they are not turned on. What is happening?

Answers

Neon lamps located near a powerful radio station are seen to glow faintly at night because radio waves may generate a potential difference in the neon gas.

What is a neon lamp?

A neon lamp is a lamp containing neon gas as well as other types of gases and two electrodes.

In a neon lamp, the electricity is generated by striping negative electrons from neon atoms, which ionize these atoms.

The radio waves can also ionize atoms in the neon lamp by generating a potential difference in the neon particles of the lamp, thereby glowing faintly at night.

In conclusion, neon signs located near a powerful radio station are seen to glow faintly at night because radio waves may generate a potential difference in the neon gas.

Learn more about neon lamps here:

https://brainly.com/question/14149718

#SPJ1

How could you reduce the cost of lighting? Explain your answer

Answers

Answer:

Don't over-light roomsInstall dimmers on your lightsTurn lights off

Which type of evidence was used to tie Ted Bundy to the murder of Lisa Levy?

Answers

Explanation:

identified by one of the Chi Omega survivors as the assailant, and hair and fiber evidence tied him to the Leach murder. His trial for the Florida attacks in June 1979 was the first-ever nationally televised trial in the United States.

what is the formula to calculate area of sphere

Answers

Answer

A=4 Pie R square

explanation

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

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

Which circuit contains the smallest voltage?

- A circuit with a current of 20amps and a resistance of 15 ohms?

- A circuit with a current of 10 amps and a resistance of 10 ohms?

- A circuit with a current of 25 amps and a resistance of 10 ohms?

- A circuit with a current of 20 amps and a resistance of 10 ohms?

Answers

Answer:

10 amps   10 ohms      ( 100 v)

Explanation:

Voltage = current * ohm

  the smallest of those listed is    10 amps   10 ohms

A bug starts from point A, crawls 15cm due east, then 5cm due west, 7cm due south, 3.0cm due west and 5.0cm due north to point B. Calculate the north and east distance of point B from A​

Answers

Answer:

let i represent due East and j due north

X (displacement) = (15 - 5) i - 7 j - 3 i + 5 j = 7 i - 2 j

Total displacement = (7^2 + 2^2)^1/2 = 7.28     vector displacement

tan θ = -2 / 7 = -15.9 deg     or 15.9 deg S of E

note N distance was -2 cm

E distance was 7 cm

Which of the following is an example of in-group bias? A. Avery, who loves to go to car shows B. Shelly, who thinks her cheerleading team is better than any other school's team C. Zoe, who likes to shop more than anything else D. Matt, who loves to watch his favorite team play football

Answers

Answer:

B because since SHE is in the team she is in group and it is bias because she treats the other teams as competition. Hope this helps!

Explanation:

How long will it take for a person walking at 8 Km per hour to cover a distance of 56 Kilometers?

Answers

Answer:

7 hrs

Explanation:

56 km / 8 km/hr = 7 hr

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

A 3.0kg weight W is initially at rest on incline AB, which is raised 40° above the horizontal. The effective coefficient is
mu = 0.3 . Through frictionless pulley and strings of negligible mass, a small mass P, 400g, is at rest on a 200g weighting pan.
Draw a free body diagram representing the situation, and use it to determine the acceleration of the system. Use the value of acceleration calculated to determine the relative weight of P in pounds.

Answers

(a) The acceleration of the system is determined as 1.58 m/s².

(b) The relative weight of P is pounds is determined as 0.14 lb.

Acceleration of the system

The acceleration of the system is calculated as follows;

W - T = m₂a --- (1)

T = m₁a ----(2)

μmgsinθ - m₁a = m₂a

(0.3 x 3 x 9.8 x sin40) - (0.4 + 0.2)a = 3a

5.67 - 0.6a = 3a

5.67 = 3.6a

a = 5.67/3.6

a = 1.58 m/s²

Relative Weight of P

W = ma

W = 0.4 x 1.58

W = 0.632 N = 0.14 lb

Learn more about weight here: https://brainly.com/question/2337612

#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

The contents of your résumé should always be:
o relevant
the same
personal
current

Answers

The contents of your résumé should always be relevant.

What is resume?

A resume is a brief information about a person's academic life achievements and organizational experience stated in short in order to get a highly paid job.

A resume should include all the relevant information that help the employers easily shortlist candidates of their choice relating the job profile. It is understandable by resume that who you are and why you're a good fit for the job.

Thus, the contents of your résumé should always be relevant.

Learn more about resume.

https://brainly.com/question/862477

#SPJ1

a circuit has two 11.4 volts batteries and a bulb with a resistance of 18.7 ohms calculate the current flowing through the circuit

Answers

The current flowing through the circuit would be 19.2

A wave that requires a medium through which to travel



chemical wave


mechanical wave


pitch


electromagnetic wave

Answers

Answer:

Explanation:
Answer: B mechanical waves.

Waves that do require a medium are called mechanical waves.

PLEASE HELP 100 POINTS! Please fill in the scale distance from sun and diversion factor, listing off the numbers works

Answers

We will take it Cm

Scale factor

1km=10^5cm

So

1cm=10^{-5}km

#Mercury

580cm

Ven us

1080cm

Earth

1500cm

Mars

2280cm

Jupiter

7780cm

Saturn

14300cm

#Uranus

28700cm

Neptune

45000cm

What is the angle of refraction for a beam of light moving from air (n =1.00) into a prism if the angle
of incidence is 70° and the prism's index of refraction is 1.73?

Answers

big sorry for this

imma follow you

A book weighing 1.2 kg stands on the table. We place our hand on the book with a force of 15.3 N. The reaction force of the table base to the book is: a) 12 N b) 15 N c) 22 N d) 27 N e) 33 N​

Answers

Answer:

27 N

Explanation:

It will be the force of the book  1.2 kg * 9.81 m/s^2   PLUS the force of your hand  15.3 N    ..... it will be in the OPPOSITE direction

1.2 * 9.81 + 15.3 = ~27.1 N

What do these two have an common ? A slice of banana turning brown, A banana getting ripe on the counter

Answers

Answer:

After some time on the counter, ripe bananas will develop a brown peel. Bananas contain the enzyme polyphenol oxidase, and when the enzyme interacts with oxygen, it causes a chemical reaction. This chemical reaction, known as enzymatic browning, changes the banana's peel and fruit to brown

Explanation:

what is kinematics ?
name its father and explain its history !

ty ~​

Answers

Hello There!!

1st Question

What is kinematics?

Answer

=> Let The Answer be "x"

________________________________

2nd question

Name it's father

Answer

=> He don't have a child so he is not a father

________________________________

3rd Question

Explain its History

Answer

=> Kinematics is a part of science not history.

__________________________________

Hope this helps :D

Answer:

i just wrote this much hope it will help u little

Explanation:

kinematics is the branch of physical which deals with the study of motion as the function of time.Frank reuleaux is known as the father of kinematics.the word *kinematics" comes from a greek word "kinesis" meaning motion.

What is standard one kilogram?​

Answers

Explanation:

Standard one kilogram is the mass of a platinium- iridium cylinder having equal diameter at the height kept at 0⁰C at the International bureau of Weights and Measures, held in paris in France. The accurate copies of atandard one kilogram are prepared to Measures mass in different countries.....

[tex]....[/tex]

It is defined as the mass of a particular international prototype made of platinum-iridium and kept at the International Bureau of Weights and Measures. It was originally defined as the mass of one liter (10-3 cubic meter) of pure water. At the Earth's surface, a mass of 1 kg weighs approximately 2.20 pounds (lb).

22.61 . (a) An insulating sphere with radius has a uniform
charge density P .The sphere is not centered at the origin but at
r->=b->.Show that the electric field inside the sphere is given by
E-> = P(r-> - b->)/3Eo

Answers

Answer:

f

Explanation:

Other Questions
The telltell tale heart A given substance has a melting point of -7 oC and a boiling point of 59 oC. This substance exists as a ____________ at room temperature conditions. Note: room temperature is 25 oC. What is an element of U.S. political culture where are collisions between oceanic plates and continental plates thought to primarily result from What are steins concerns about the safety of the maids How are Glucose, Proteins, and Fats used to make new molecules? And what types of molecules are made? This passage describes the xeroderma pigmentosum trait in humans:Xeroderma pigmentosum is a condition that causes skin to be easily damagedby sunlight. Humans with xeroderma pigmentosum avoid exposure to sunlight bywearing protective clothing, using sunscreen, and not going outside during theday.In a group of humans, some individuals have xeroderma pigmentosum and others do not. Inthis group, the gene for the xeroderma pigmentosum trait has two alleles. The allele E is fornot having xeroderma pigmentosum, and the allele e is for having xeroderma pigmentosum.Hunter, a human from this group, does not have xeroderma pigmentosum. Hunter has twoalleles for not having xeroderma pigmentosum.Based on this information, what is Hunter's genotype for the xeroderma pigmentosum gene?EeEEnot having xeroderma pigmentosumhaving xeroderma pigmentosum identify one positive effect and one negative effect of globalization and explain why each is positive or negative. Which gterm is used in gthe anthropological study of religion to describe religion in practice Find a time where the hour and minute hand are 40 degrees apart. solve for x. Show each step of the solution x/16 = 3/8 Please help!!! Anything is helpful! The temperature of 2,000.0 g water is raised 3.00C. How muchenergy is transferred to the water. Use the formula below and use yournotes. The specific heat (Cp) for water is 4.18 J/g C. Round to threesignificant digits. See your notes and slides. THE REASON WHY CORPORAL PUNISHMENT SHOULD BE RETAINED ONLY FOR THE JUNIOR HIGH SCHOOL DEPARTMENT OF MY SCHOOL Father brought a carton of fruits. Total fruits in it are 150. 15 percent of them are rotten. Find the number of fresh mangoes please help before 11 pm B=? A spreadsheet program allows a user to _______. a. perform complicated calculations automatically b. deliver elegant presentation to a large audience easily c. organize, send, and retrieve e-mails quickly d. keep viruses from infecting their computers please select the best answer from the choices provided a b c d I have this question and I cant figure it out. Which tables could be used to verify that the functions they represent are inverses of each other? select two options. Please solve this puzzle