In "Rabbitville", the rabbit population squares each year. e.g. If you start with 4 rabbits, you'll have 16 in 1 year, and 256 in 2 years. Once the population exceeds 10,000 bunnies, food will be scarce, and population will begin to decrease.


Write a function years_till_no_carrots that includes a WHILE loop. Given a single integer (# of starting rabbits) as an input, your function should output the number of whole years until the number of rabbits becomes larger than 10000. e.g. years_till_no_carrots(4) = 3 (start with 4 rabbits, population greather than 10000 & food scarce in 3 years)

Answers

Answer 1

Answer:

In Python:

def years_till_no_carrots(n):

   year = 0

   while(n <= 10000):

       n=n**2

       year = year + 1

   

   return year

Explanation:

First, we define the function

def years_till_no_carrots(n):

Next, the number of years is initialized to 0

   year = 0

The following while loop is iterated until the population (n) exceeds 10000

   while(n <= 10000):

This squares the population

       n=n**2

The number of years is then increased by 1, on each successive iteration

       year = year + 1

   

This returns the number of years

   return year

To call the function from main, use (e.g): print(years_till_no_carrots(4))


Related Questions

Which is the best description of power? A. the amount of kinetic energy lost during motion
B. a measure of how fast an object can travel
C. the amount of energy transfer during motion
D. a measure of how fast a machine performs work​

Answers

Answer:

D. a measure of how fast a machine performs work​

Explanation:

Power can be defined as the energy required to do work per unit time.

Mathematically, it is given by the formula;

[tex] Power = \frac {Energy}{time} [/tex]

Hence, the best description of power is that, it is a measure of how fast a machine performs work.

This can be calculated by using the mathematical expression below;

[tex] Power = \frac {Work done}{Time} [/tex]

But we know that, [tex] Workdone = force * distance [/tex]

Which of the following formulas would you use to calculate power requirements of an electrical load

Answers

What are the following formulas?
hello, I’m going to need to know the following questions in order to answer your question .

In addition to bandages and gauze, it's recommended that a first aid kit also contain

Answers

Disinfectant supplies, such as wipes of gel.

What problem is HTTP solving?

Answers

Answer:

HTTP is solving the problem of how to ask for that file. Your computer and that server communicate using a protocol called HTTP.

It's a protocol for computer servers

Which of the following characteristics is a feature of all planets?

They all have atmospheres.
They all make their own light.
They all have rings of rock and gas.
They all are round and made up of rock.

Answers

Answer:

They all are round and make up of rock

Answer:

a. They all have atmospheres - I took the test on FLVS

Explanation:

You are diving a car out in rural America and suddenly you get a flat tire. you pull off to the side of the road. you check your cell reception and dont have a single bar of signal (your cell phone won't work). you look around and there is no other cars or houses anywhere in sight and you do not remember the last time you saw a passing car or house. you are absolutely alone. the sun is setting and it is just starting to get dark. you get out and jack up the car, loosen the 4 nuts, take off the wheel with the flat tire. you grab the spare from the trunk and slide it onto the axle- you then look around for the 4 nuts and they are no where to he found. you search everywhere and cant find them. its gettint cold and dark. you look at the car, what can you do? all four of the nuts from the wheel have vanished snd are just gone. explain what you can do and why? remember, you cant call anyone because there is no reception, there is no one else on the road and you havent seen anyone in hours, its getting dark and cold, the 4 nuts from the wheel are gone, the car cannot drive safely with only 3 wheels​

Answers

Answer:

Walk to saftey!

Explanation:

Stakeholders are people or organizations who do what?
are partners with a vested interest
are landscape workers on the school grounds
fund the project
are part of the school media platform
are part of the school's new Web site

Answers

Answer:

B. fund the project

D. are partners with a vested interest

Explanation:

If you look at the definition of the word stakeholder, these options match the definition which is why I chose B and D

A B D E

are part of the school media platform

fund the project

are part of the school’s new Web site

are partners with a vested interest

WHICH OF THIS PLS FAST!!!
What does it mean if E˂1?
a)
demand is perfectly inelastic
b)
price change draws smaller change in demand
c)
demand is more elastic than the price change
d)
demand is unitary elastic

Answers

Answer:

A

Explanation:

can i have a answer

best answer gets brainliest

Answers

Answer: the square root of 25 is 5.

3 x 1,000 = 3,000

1,000,000 + 2,934 x 10 = 1,002,934,000

45 + 2,034 + 20 + 78 = 2,177

M a t h

Explain:

(Sorry it’s not all of them)

45 + 2,034 = 2,079 + 20 = 2,099 + 78 = 2,177

The square roots of 25 are √25=5 and −√25=−5 since 52=25 and (−5)2=25 . The principal square root of 25 is √25=5.

1,000 + 1,000 + 1,000 = 3,000 using multiplication makes it faster by saying 3 1,000 times is 3,000.

Which of the following is a question of interest to a software engineer


0 Did the system install correctly on the mainframe?
0 Is the project on schedule?
0 Are the customers using the software correctly
0 Is the software supported effectively?

Answers

Answer:

the answer is A.

Explanation:

It shows the main frame which is a big part of software engineers. I also just took the test and got it right.

PLEASE ANSWEAR FAST!!!
What does it mean if E˂1

Answers

Scientific notation is another way to write a number. In scientific notation, the letter E is used to mean "10 to the power of." For example, 1.314E+1 means 1.314 * 101 which is 13.14 . Scientific notation is merely a format used for input and output.

What characteristic makes a plaster tender a Job Zone One occupation?

Answers

Occupational


Good luck I just copied the guy I front lol

Answer:

They are basically unskilled laborers.

Explanation:

Drag the tiles to the correct boxes to complete the pairs.

Which measuring device would one use for a particular scenario.

altimeter

digital micrometers

charge-coupled devices

magnetic resonance imaging

Mia wants to measure charge and convert

it into electrical signals.

arrowRight

Dr. Jerry wants to measure the damages in the

tissue of the body and thus diagnose illnesses.

arrowRight

John wants to measure the length, diameter, or

thickness of objects in mechanical engineering.

arrowRight

Mario is a pilot and wants to measure altitude of

the plane flying in the air.

arrowRight

Answers

Answer:

Check image, right on PLATO

Mia wants to measure charge and convert it into electrical signals it is charge-coupled devices. Dr. Jerry wants to measure the damages in the tissue of the body and thus diagnose illnesses. is magnetic resonance imaging, John wants to measure the length, diameter, or thickness of objects in mechanical engineering.

What are measuring devices?

A tool used to measure a physical quantity is called a measuring instrument. Measurement is the process of gathering and comparing physical quantities of actual objects and events in the physical sciences, quality control, and engineering.

Researchers and practitioners employ measurement tools to help in subject, client, or patient assessment or evaluation.

Mia wants to use charge-coupled devices to measure charge and turn it into electrical impulses. In order to diagnose ailments, Dr. Jerry wants to quantify the bodily tissue damage.

John wishes to measure the length, diameter, or thickness of things in mechanical engineering using magnetic resonance imaging.

Pilot Mario wants to use the altimeter on the flying plane to determine its height.

Thus, this can be the match for the given scenario.

For more details regarding measuring devices, visit:

https://brainly.com/question/18033871

#SPJ5

Need help fast I been stuck in this for the longest

Answers

Answer:

3rd and 4rth

Explanation:

a geologist studies the earth and both of these have something to do with the earth

An engine has a piston with a surface area of 17.31 in2 and can travel 3.44 inches. What is the potential change in volume, displacement (\Delta VΔV) , of the cylinder?

Answers

Answer:

$$\begin{align*}

P(Y-X=m | Y > X) &= \sum_{k} P(Y-X=m, X=k | Y > X) \\ &= \sum_{k} P(Y-X=m | X=k, Y > X) P(X=k | Y > X) \\ &= \sum_{k} P(Y-k=m | Y > k) P(X=k | Y > X).\end{split}$$

Explanation:

\eqalign{

 P(Y-X=m\mid Y\gt X)

   &=\sum_kP(Y-X=m,X=k\mid Y\gt X)\cr

   &=\sum_kP(Y-X=m\mid X=k,Y\gt X)\,P(X=k\mid Y>X)\cr

   &=\sum_kP(Y-k=m\mid Y\gt k)\,P(X=k\mid Y\gt X)\cr

}

P(Y-X=m | Y > X) &= \sum_{k} P(Y-X=m, X=k | Y > X) \\ &= \sum_{k} P(Y-X=m | X=k, Y > X) P(X=k | Y > X) \\ &= \sum_{k} P(Y-k=m | Y > k) P(X=k | Y > X).\end{split}$$

Part C
This table lists the power in watts of some common appliances. Sometimes, we use two appliances at the
same time. According to the table, what is the total amount of watts used by a TV connected to a cable
box?

Answers

Answer:

Part C: 308 watts

Add the watts from the TV(150) plus the cable box when on(140) and off but plugged in(18). Then it will give you an answer of 308 watts.

Part D: 185 watts

Add the watts from the TV(150) and the video game system(35) which will give you an answer of 185 watts.

Part E: yes

I say yes to this because when the cable box is off but plugged in it still uses watts(18).

Explanation:

I did the activity! Hope this helped you! you just have to put the number not the explanation! Have a great day and make sure you thank me! :)

Add the watts from the TV(150) plus the cable box when on(140) and off but plugged in(18). Then it will give you an answer of 308 watts.

Part C: 308 watts

A Watt is the unit of electrical power equal to one ampere under the pressure of one volt. One Watt is a small amount of power. Some devices require only a few Watts to operate, and other devices require larger amounts.

What watts mean?

power

A watt (W) is a unit of measurement of power. Watts therefore refer to the power of your device.

Examples: an incandescent lamp has a power of 60 W. your microwave oven has a maximum power of 900 W.

To learn more about A watt, refer

https://brainly.com/question/24156380

#SPJ2

robots are made up of what

Answers

Answer:

Metal

Explanation:

Metal

Which is the correct arrangement for the path of a person seeking training as an engineer?
A. Interview with accomplished engineers, attend a two-year college, and proceed to a specialty program
B. Receive a two-year specialized degree from an engineering school, and then work as an apprentice for five years
C. Complete a bachelor of science degree, master of technology degree, and then a PhD in whichever specialized area the person wants to pursue.
D. Complete a four-year bachelor's degree in a specialized field, work with a Professional Engineer, and take a Professional Engineering examination to earn a license

Answers

Answer:

b

Explanation:

Answer:

b

Explanation:

 

The mechanical engineer designs and programs the solution according to the engineering requirements.

True
False

Answers

Answer:

The  answer is true I know because I took the trust me RichJ

Explanation:



What are the benefits of using an isometric sketch to communicate a design?

Answers

Answer:

The benefits of the frame of reference in question are described in the description segment.

Explanation:

Isometric drawings should include almost all viewpoints of the situation of a probably given significant part as well as design. Whilst using descriptive research, it may be challenging to either get a comprehensive vision of how and why the different views integrate to deliver the desired component.

40 = 6(X^2) / 4 (tan(180/6)) solve for X

Answers

Answer:

x = 3.92

Explanation:

The question is given as ;

40 = 6x² / 4 tan { 180/6}

40 = 6x² / 4 tan {30°}

40 = 6x² / 2.309

40 * 2.309 = 6x²

92.38 = 6 x²

92.38/6 = x²

15.40 = x²

√15.40 = x

x = 3.92

Other Questions
2 Examine the graph shown below. 1 2 1 3 2 Enter the slope of the line. what is the mest gun in pixel gun 3d imma give you brainliest Sireu ICC.In...Problem ID: PRA3MGT221R3.x4xWrite an equation for the angle relationship shown in the figure. What do the writers hypothesize would happen if many of the wildebeests did not die on during themigration? At the end of August, Kaye Company had completed Jobs 40 and 42. Job 40 is for 1,000 units, and Job 42 is for 500 units.The following data relate to these two jobs:On August 4, raw materials were requisitioned for production as follows: 200 units for Job 40 at $24 per unit and 900 units for Job 42 at $18 per unit.During August, Kaye Company accumulated 700 hours of direct labor costs on Job 40 and 1,000 hours on Job 42. The total direct labor was incurred at a rate of $24 per direct labor hour for Job 40 and $10 per direct labor hour for Job 42.The predetermined factory overhead rate is $6.00 per direct labor hour.a. Determine the balance on the job cost sheets for Jobs 40 and 42 at the end of August.Job 40$Job 42$b. Determine the cost per unit for Jobs 40 and 42 at the end of August. If required, round your answers to the nearest cent.Job 40$Job 42$ Express the following as a unit rate :5 croissants for $10 model of reactants and model of products H2CO3 H2O + CO2 Fie termenii A,B,C,D si E astfel incat termenul C este specie a termenului B,termenul B se afla in raport de contrarietate cu termenul D,iar termenul A este gen pentru B,C,D.Termenul E este incrucisat cu B,C si A fiind in opozitie cu termenul D. a store purchases a jacket for $56 the store than marks It Up by 80% by selling it how much will you pay after the markup. Read the excerpt from "Healthy Eating." What does the author think is responsible for people's poor eating habits? If anything gets in the way of our good eating, it's lifestyle. When you get home from work late, why spend an hour in front of the stove when you can spend two minutes at the microwave? And doesn't that oatmeal box claim to be a good source of calcium for our kids, never mind the small print listing 14 grams of sugar? A small soda at the movies could satisfy a family of four. Even schools have vending machines. O They do not know how to correctly read the nutrition information on food packages O They do not know how to prepare healthy meals that are both inexpensive and quick. O They often choose foods that are quick and convenient instead of ones that are healthy. O They spend time thinking about work and entertainment instead of thinking about food. if in one batch of cookies, you use 6 cups of dough and 2 cups of chocolate chips how many cups of chocolate chips will you need to make two batches of cookies All of the following are used to describe relative location except:a.Distance between placesb.Latitude and longitude coordinatesc.Landmarksd.Direction A car was bought for 18,000.It was sold for 15,300.Express this as a percentage decrease. Courtney walks 5 laps around 1/4 mile track. how far does she walk? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxWhich equation shows how the distributive property can be used to find the number ofXs in both arrays? Vinegar is insoluble in vegatable oil. Does this mean that vinegar is a totally insoluble substance? HOW MANY TIMES DOES 9 DIRECTLY PRECEDE 2 IN THIS SEQUENCE: 12909296292629 Select the correct answer. For which quotient is x=7 an excluded value? which expression is equivalent to (3c)-2? How did the actions of some Catholic officials encourage the Protestant Reformation?A. Some officials were secretly supporting Martin Luthers push for reforms.B. Some officials were involved in simony, which caused people to seek reform. C. Some officials disagreed with the way the pope handled Martin Luthers proposals.D. Some officials required people living on church lands to pay property taxes to the church.