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

I am trying to make a vacuum cannon but all I can use to get out the air is a speed pump to give air to bicycles. I need to make an airtight seal. Please help!

Answers

We can actually deduce here that making a airtight seal will take different format. You can:

Use an epoxy-resin to create an airtight sealCreate a glass-metal airtight sealMake a ceramic-metal airtight seal.

What is an airtight seal?

An airtight seal is actually known to be a seal or sealing that doesn't permit air or gas to pass through. Airtight seal are usually known as hermetic seal. They are usually applied to airtight glass containers but the advancement in technology has helped to broaden the materials.

We can see that epoxy-resin can used to create an airtight seal. They create airtight seals to copper, plastics, stainless steels, etc.

When making glass-metal airtight seal, the metal should compress round the solidified glass when it cools.

Learn more about airtight seal on https://brainly.com/question/14977167

#SPJ1

how are solar panels different from non-nano counterparts?

Answers

Solar panels that use nanotechnology have a very thin layer of nanoparticles that absorb sunlight and convert it into electricity. They are different from non-nano counterparts in that they are more efficient in converting sunlight into electricity, they are more flexible, and they are more durable. Non-nano solar panels are generally thicker and are made of a different type of material that absorbs sunlight and converts it into electricity. They are less efficient than nanotechnology-based solar panels.

solve it and win 30 points

solve it and win 30 points

Answers

I believe it is 2.34
Explanation- I took 9 divided by 4 and then added the 9% so sorry if it’s wrong!!

What is planning in pretech

Answers

Answer:

Planning is the process of thinking about the activities required to achieve a desired goal. ... It is the first and foremost activity to achieve desired results. It involves the creation and maintenance of a plan, such as psychological aspects that require conceptual skills.

Imagine that you had to set the ethical guidelines for a complicated issue in biotechnology or cloning. How could developments be used for harm? What guideline could you create to minimize this risk?

Answers

When it comes to biotechnology or cloning, there is the possibility of hazardous applications.

How is this so?

For example, the development of designer babies may result in discrimination against persons who have not been genetically modified.

Furthermore, the production of human clones for organ harvesting may result in the exploitation of vulnerable people. To reduce these hazards, ethical norms must be implemented.

One guideline may be to guarantee that any biotechnology or cloning study or application is carried out with the well-being of all those involved in mind. Transparency, informed consent, and strong regulation might be used to avoid unethical or dangerous applications of technology.

Learn more about cloning at:

https://brainly.com/question/12483409

#SPJ1

Select the correct answer.
Elden grows wheat on his land. However, his wheat farm is on a steep slope and hence more prone to soll erosion. In order to prevent soil
erosion, he rotates wheat with soybean. What type of soil conversion method did Elden use?
ОА.
Cover cropping and mulching
OB. Crop rotation
OC Contour farming
OD
Terrace farming
Reset
Next
Edmentum All rights reserved
US

Answers

I think the answer is b

explanation of dip painting method​

Answers

Answer:

Explanation:

Dip painting is a process in which an object is immersed or dipped in a tank or vat of paint, typically a liquid or powder coating, to coat the object's surface evenly. The object is first cleaned and prepared before it is dipped into the paint, and then it is lifted out and left to dry.

The dip coating process involves several steps, including surface preparation, selecting the right type of coating, and dipping the object into the paint. First, the object's surface must be free of any debris, grease, or other substances that may interfere with the paint's adhesion. This can be done by washing or sanding the surface, depending on the type of material.

Next, the type of coating to be used is selected. This can depend on several factors, such as the desired finish, the durability required, and the type of material the object is made from. Once the coating is selected, the object is dipped into the paint tank or vat, which is usually kept at a constant temperature and viscosity to ensure a consistent finish.

Mile markers appear as green signs.

Answers

Answer:

Mile markers appear as small, rectangular green signs with white numbers. Mile markers are especially useful in determining your precise location on desolate stretches of road. For example, by paying attention to mile markers, you will be able to inform a tow truck driver that you are stalled on the fifty-eighth mile of a particular roadway.

Explanation:

why Mile markers appear as green signs.

Answer:

Mile markers appear as small, rectangular green signs with white numbers. Mile markers are especially useful in determining your precise location on desolate stretches of road. For example, by paying attention to mile markers, you will be able to inform a tow truck driver that you are stalled on the fifty-eighth mile of a particular roadway.

Explanation:

What do AIA, SAG, AFP and AMA all stand for? Select four options. American Institute of Architects American Society of Mechanical Engineers American Medical Association Screen Actors Guild Association for Finance Professionals Professional Colleges.

Answers

Answer:

What do AIA, SAG, AFP and AMA all stand for? Select four options. American Institute of Architects American Society of Mechanical Engineers American Medical Association Screen Actors Guild Association for Finance Professionals Professional Colleges.

• What are some methods currently used to unclog arteries and keep them clear?

Answers

Good fats are also called unsaturated fats. They're found in foods like olives, nuts, avocado, and fish. Cut sources of saturated fat, such as fatty meat and dairy. Choose lean cuts of meat, and try eating more plant-based meals.

Which option distinguishes the step in the engineering design phase described in the following scenario?
Dave designs hockey equipment. He learns that another company, Cascade, uses Seven Technology, a linear system that absorbs maximum energy, to develop safer, stronger hockey helmets.


write engineering requirements

evaluate the competition

collect benchmarking information

identify customer needs

Answers

Answer:

Evaluate the competition

Explanation:

hope this helps :)

Answer:

evaluate the competition

Explanation:

Drag each label to the correct location on the image. Match the tool to the simple machine.​

Drag each label to the correct location on the image. Match the tool to the simple machine.

Answers

The  label to the correct location on the image as well as the Match the tool to the simple machine are:

inclined planewheel and axelscrewwedgepulleylever

What is a simple machine in science?

A simple machine is a mechanical device that modifies the direction or amplitude of a force. They are generally understood to be straightforward devices that increase force by leverage or mechanical advantage. Simple machines feature few, if any, moving components that may change force and motion.

Simple machines are helpful because they lessen effort or enable humans to execute things that would normally be beyond their capacity. Simple machines that are widely used include the wheel and axle, pulley, inclined plane, wedge and lever.

Therefore, one can say that a mechanical device that modifies the strength or direction of a force is known as a simple machine. They can be characterized as the most basic systems that increase force through mechanical advantage.

Learn more about simple machine from

https://brainly.com/question/11592317
#SPJ1

The
command is used to lengthen a line to meet an edge.
O scale
O extend
O trim
O move

Answers

Answer:

The extend command is used to extend the selected boundaries or edges. The objects are extended so that the edges of other objects can be converged.

In which type of shoot is continuous lighting used?
1)studio
2)underwater
3)action
4)landscape
This is photography btw

Answers

A type of shoot in which continuous lighting used is: 1) studio.

What is a photoshoot?

A photoshoot simply refers to a photography session which typically involves the use of digital media equipment such as a camera, to take series of pictures (photographs) of models, group, things or places, etc., especially by a professional photographer.

The types of shoot.

Basically, there are four main type of shoot and these include the following:

StudioUnderwaterActionLandscape

In photography, a type of shoot in which continuous lighting used is studio because it enhances the photographs.

Read more on photography here: https://brainly.com/question/24582274

#SPJ1

Which of these does OSHA require employers to construct and install to minimize electrocution hazards?

Answers

Answer:

OSHA requires that the exposed and operating elements of an electrical installation, lighting, equipment, motors, machines, appliances, switches, controls, and enclosures must be constructed and installed so as to minimize workplace electrocution hazards.

You are developing a mind map for measuring the viscosity of fluid. At which stage in the process will you specify the equipment needed for the experiment?

Answers

Answer:

C- define the subtopics.

Explanation:

Answer:

C

Explanation:

Sadie wants to sell her fan-fiction on the online platform Fanalot. Instead of selling a subscription plan to all of the stories she has written, she decides to sell readers access to each story individually. Her online research suggests that if she charges x dollars per story, she will sell – 5x+100 stories per month. Fanalot will charge Sadie 20% of the amount she charges per story. So, Sadie will earn 80% of the amount she charges per story, or 0.8x dollars, in profit. Which equation can Sadie use to estimate the price she can charge per story to earn $300 in profit each month?

Answers

The equation Sadie can use to estimate the price she can charge per story to earn $300 in profit each month is:

0.8x(5x+100) - 0.2x(5x+100) = 300

Simplifying this equation, we get:

4x^2 + 80x - 300 = 0

This is a quadratic equation that can be solved using the quadratic formula:

x = (-b ± sqrt(b^2 - 4ac)) / 2a

Plugging in the values for a, b, and c, we get:

x = (-80 ± sqrt(80^2 - 4(4)(-300))) / 8

x = (-80 ± sqrt(73600)) / 8

x = (-80 ± 271.23) / 8

x = -43.9 or 7.9

Sadie cannot charge a negative price, so the only possible solution is:

x = 7.9

Therefore, Sadie can charge $7.90 per story to earn $300 in profit each month.

Which of the following statements are true when it comes to impairment?
A. You are either impaired or you are not.
B. There are degrees of impairment.
C. Impairment only matters at high levels.

Answers

B. There are degrees of impairment

There are two junco birds that each have different proteins in their cells for beak
pointiness. They have different parents. What can you say about the birds' beak
pointiness? *
They will have the same beak pointiness because even with different proteins for beak
pointiness, the proteins can connect in the same way.
They will have different beak pointiness since offspring from different parents will
have different beak pointiness
They will have different beak pointiness since their proteins for beak pointiness are
different so the proteins will connect in different ways.
They will have the same beak pointiness since all junco birds have the same beak
pointiness.

Answers

Answer: They will have different beak pointiness since their proteins for beak pointiness are different so the proteins will connect in different ways.

Explanation:

Based on the information provided in the question, it should be noted that the pointiness of the birds beak will be different as a result the difference of their proteins for beak pointiness so the proteins will connect in different ways.

Assuming the two junco birds have thesame proteins in their cells for beak

pointiness, they'll have thesame beak pointiness.

Wright Construction specializes in the construction of communications towers for various cell carriers. On one of the company’s recent projects, there was one fatality. Workers have reported several injuries since then. In light of this situation, the company is redoubling its efforts to prevent accidents, also known as industrial hygiene. Name three potentially fatal accidents that could occur during the construction of a communication tower and the corresponding health effects workers might experience (acute, chronic, local, or systemic). Also, identify the corresponding OSHA standard that would help the company prevent the accident from occurring, including any relevant personal protective equipment.

Answers

Since the beginning of 2013, 19 climbers have perished in communications tower mishaps.

By communications, what do you mean?

Sending and receiving messages through both verbal and non-verbal means is the process of communication. The goal of communication is to create understanding between two or more people by sharing information in the form of thoughts, views, and ideas in a two-way fashion.

Why is communication so crucial?

In daily life, communication helps us to establish connections with others, express our needs and experiences, and deepen our friendships. It allows us the possibility to share information, voice our opinions, and feel our feelings. All of us must communicate.

To know more about communications visit:

https://brainly.com/question/14665538

#SPJ1

Which of the following is legal?
A.Discharging oil in U.S. waters
B.discharging sewage in state waters
C.disposing of oil waste at an approved facility
D.disposing of plastic in coastal waters

Answers

Answer:

c.disposing of oil waste at an approved facility.

Explanation:

hope this helps

Method of waste disposal that is legal is: C. disposing of oil waste at an approved facility.

What are Illegal Ways of Disposing of Wastes?

Due to environmental concerns and the effects improper disposal of waste cause to human life and life under water, there are laws that prohibit the following:

Oil discharge in US waters is punishableDischarging sewage in water bodies is also discouraged Plastics causes havoc to aquatic life, therefore, it is illegal to dump plastic in coastal waters.

However, a legal way of disposing oil waste is to do so at facilities that are approved by the government.

The answer is: C. disposing of oil waste at an approved facility

Learn more about waste disposal on:

https://brainly.com/question/26106091

#SPJ9

Someone who has the knowledge and experience to handle problems is a

Answers

Answer: Qualified person
If not give more context about the subject.

The interactions amongst humans and their movements around the world is an example of:
Natural environment
Human made environment​

Answers

Answer:

Human made environment

Explanation:

Human made environment are those which are made by humans.

These include totally man-made things such as buildings, roads, etc.

Natural environment contains the things which are entirely natural and made in nature.

For example the oceans, seas, rivers etc.

Exceptional Components:-

Lake can be both natural and man made ; Nag Arjuna Sagar, Manasarover Lake.

Canals can be natural and man made..

Perchuty (P. z fan ce the Treffe resistivalyThe law of resistivity.

Answers

We can see here that the law of resistivity, also known as Ohm's law, states that the electrical resistance of a conductor is directly proportional to its resistivity and length, and inversely proportional to its cross-sectional area.

How is law of resistivity represented?

The Law of resistivity can be mathematically represented as:

R = ρ × (L / A)

Where:

R is the electrical resistance of the conductor,

ρ (rho) is the resistivity of the material,

L is the length of the conductor, and

A is the cross-sectional area of the conductor.

The resistivity (ρ) is a characteristic property of a material that quantifies its ability to resist the flow of electric current. It depends on the nature of the material, its temperature, and sometimes its purity. Resistivity is measured in ohm-meters (Ω·m).

Learn more about resistivity on https://brainly.com/question/30611906

#SPJ1

HELP PLS PLS ASAP !!

What skills are critical for a
person working in
architectural design to have?
A. They need to be good at math and
analyzing data.
B. They need to be good at interpreting the
law.
C. They need to be good at website design.
D. They need to be good at computer
programming.

Answers

Answer:

A and C I guess.....

Explanation:

....

You are driving on a two-way street, and are looking for a place to park;

Answers

Answer:

you cannot park

Explanation:

except you park in a compound because it is a two way road parking on either side could lead to accident or goslow

An engine jack is used to lift a 265-lb engine 6'. How much work, in ft-lb, is performed?

Answers

(-1)*exp(+i pi) = 1

formatted cleanly

2x2x2x2x2

The denominator of a fraction is 4 more than the numenator. If 4 is added to the numenator and 7 is added to the denominator, the value of the fraction 1 half find the original fraction.

Answers

Answer:

\(\frac{3}{7}\)

Explanation:

Lets take the numerator of the fraction to be = x

So the denominator of the fraction is 4 more than the numerator = x+4

The fraction is ;\(\frac{x}{4+x}\)

Now add 4 to the numerator and add 7 to the denominator as;

\(\frac{x+4}{4+x+7} =\frac{x+4}{x+11}\)

This new fraction is equal to 1 half =1/2

write the equation as;

\(\frac{x+4}{x+11} =\frac{1}{2}\)

perform cross-product

2(x+4 )=1( x+11 )

2x+8 = x + 11

2x-x = 11-8

x=3

The original fraction is;  

\(\frac{x}{4+x} =\frac{3}{3+4} =\frac{3}{7}\)

How do i code a hobby gearshift motor to speed 50 using only an arduino uno r3?

Answers

To code a hobby gearshift motor to run at a speed of 50 using an Arduino Uno R3, you can use pulse-width modulation (PWM) to control the motor speed.

General outline of the steps involved are:

1)Connect the hobby gearshift motor to the Arduino Uno. Ensure that you have the necessary motor driver or H-bridge circuit to interface the motor with the Arduino.

2)Set up the Arduino Uno by installing the Arduino IDE and connecting it to your computer.

3)Open the Arduino IDE and create a new sketch. Define the necessary pin for controlling the motor speed using PWM.

For example, you can use Pin 9 for this purpose:

const int motorSpeedPin = 9;

4)In the setup() function, configure the motor speed pin as an output:

void setup()

{

 pinMode(motorSpeedPin, OUTPUT);

}

5)In the loop() function, use the analogWrite() function to set the desired speed for the motor.

Since the analogWrite() function uses PWM, the speed can be adjusted by varying the duty cycle from 0 to 255.

A duty cycle of 255 corresponds to the maximum speed. To achieve a speed of 50, you can use a duty cycle of approximately 128:

void loop()

{

 analogWrite(motorSpeedPin, 128);

}

6)Upload the code to the Arduino Uno and observe the motor running at the desired speed.

For more questions on motor

https://brainly.com/question/28852537

#SPJ8

Yooooooooooooooooooooooo

Yooooooooooooooooooooooo

Answers

1. Dependability

2. Commission

3. PRAM
Other Questions
14. what are the first three harmonics of a note produced on a 31.0cm long violin string if waves on this string have a speed of 274.4m/s? Could I uh get some help this is two days overdue and I uh didnt notice until now so... ;-;" Compare and contrast the marine temperature regime of Vancouver with the continental regime of Winnipeg. What significant differences do you not? How many gallons of a 15% sugar solution must be mixed with a 5 gallons of a 40% solution to make a 20% solution Simon measures the depth of water in centimeters, in his fish tank at the end of each day. His measurements are shown. Which equation shows the water depth, y, in the fish tank after x days? the molecules in a solid lump of sugar do not move. true or false while providing a back massage, the nurse observes a reddened area on the clients sacral area. which action by the nurse is appropriate? uct Microscopic Anatomy of Cardiac Muscle 4. Add the following terms to the photograph of cardiac muscle below. a. intercalated discs b. nucleus C. cardiac muscle cell 5. Semilunar valves prevent back ni no c in tch th xung quanh in tch c : Help!! Will give brainliest jiang is a forensic specialist. he seized a suspect computer from a crime scene, removed the hard drive and bagged it, documented and labeled the equipment, took photographs, completed a chain of custody form, and locked the computer in his car. on the way to the lab, he stopped to purchase supplies to use at the next crime scene. what did jiang do wrong? What organs work together in the human body or which organs are grouped together?. How many cellular divisions take place during meiosis? Brad and Sam take a 30-year mortgage for a house that costs $275,052. Assume the following: The annual interest rate on the mortgage is 3.2%.. The bank requires a minimum down payment of 12% of the cost of the house. The annual property tax is 1.7% of the cost of the house.The annual homeowner's insurance is $570. There is no PMI.If they make the minimum down payment, what will their monthly PITI be?Round your answer to the nearest dollar. p^2 + 3p - 18 is divided by p - 3. public static int search (List list, Object element) //Effects: if list or element is null throw NullPointerException//else if element is in the list, return an index //of element in the list: else return -1 //for example, search ([3, 3, 1], 3) = either 0 or 1//search ([1, 7, 5], 2) = - 1 Base your answer on the following characteristic partitioning: Characteristic: Location of element in list Block 1: element is first entry in list Block 2: element is last entry in list Block 3: element is in some position other than first or last supply one or more new partitions that capture the intent of "location of element in list" but do not suffer from completeness or disjointness problems. What correctional school of thought suggest that people sometimes commit acts that are beyond their control Elsa is selling bracelets at craft shows to raise money for an animal shelter. She is also accepting additional cash donations. She plans to give 75% of the money from all bracelet sales and donations to the shelter. She will use the remaining money to buy more supplies. Bracelet sales and donations from the first craft show are represented by the expression 24n+32 , where n represents the amount Elsa charges for each bracelet. The second craft show sales and donations is represented by the expression 40n+56 . If Elsa charges $4 for each bracelet, how much money will she donate to the animal shelter? You could also explain if you want, it's optional Why was the British Military outpost of Fort Ticonderoga so important during the American revolution?