Question: Here are the rules and hints for the python code : You must use a loop to repeat the births and deaths for each generation.

Here are the rules and hints for the python code :
You must use a loop to repeat the births and deaths for each generation. Do not use an exponential formula - it will give you the wrong answers.
Your program should allow the user to repeat the calculations as many times as they wish (as above). Use a while loop for this. That part is kind of similar to the zyBook program, "10.3.2: Bidding example" which is better shown in this interactive version of the Bidding Example program. Links to an external site.
To round a floating-point variable to the nearest integer value, use the round function. For example, to make births equal 10% of population, rounded to the nearest integer:
births = round(population *0.1)
You must test and demonstrate your program with the last 3 test cases above (and others if you wish)
You should get the exact same answers as shown above. Most slight differences are caused by doing the calculations in a slightly different order/way. For example, population including new births must be used to calculate deaths.
Here are the rules and hints for the python code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!