Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write using Python 3.7: Suppose that a scientist is doing some important research work that requires her to use rabbits in her experiments. She
Please write using Python 3.7:
Suppose that a scientist is doing some important research work that requires her to use rabbits in her experiments. She starts out with one pair of adult rabbits (a male and a female). At the end of each month, a pair of rabbits produces one pair of offspring (a male and a female). However, these new offspring will not be able to reproduce until they are a month old, and won't have babies of their own until the following month. To illustrate this consider the first two months: At the beginning of month one, the scientist just has the original one pair of adult rabbits. The table for month one will look something like Month Adult Babies Total At the end of month one this pair of adults produces one pair of offspring. Thus, at the beginning of month two the table will look like this Month Adult Babies Total 2 At the end of month two the adults have another pair of baby rabbits. The first pair of babies, born at the end of last month are not old enough to have babies yet, but we will categorize them as adults. So, at the beginning of month three the table looks like this: Month Adult Babies Total 2 The scientist has 500 cages in which to hold her rabbits. Each cage holds one pair of rabbits. Assuming that no rabbits ever die, when will she run out of cages? Your program must do the following: 1. Print a table that contains the following information for the beginning of each month. The number of months that have passed. o The number adult rabbit pairs (those over 1 month old). o The number of baby rabbits pairs produced this month. o The total number of rabbit pairs in the lab. 2. Calculate how many months it will take until the number of rabbits exceeds the number of available cages. 3. Stop printing when you run out of cages. 4. Print a message giving how many months it will take to run out of cagesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started