Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in Python. At present there are 11 rabbits. The population of rabbits DOUBLES each quarter. What will be the population in year

Write a program in Python. At present there are 11 rabbits. The population of rabbits DOUBLES each quarter. What will be the population in year 2 (when there are three quarters in a year)? Similarly, what will be the population in year 2 (when there are 4 quarters in a year). I want users input to decide about quarters (because your app should work in every country and not just inside the USA).

ANSWER. Population = 2816, initially 11 rabbits, 3 quarters means cycling after every 4 months, 12/4= 3 quarters, total duration=2 years. [Makes sense. More quarters mean more frequent opportunity to date and multiply population growth]. Population = 704, initially 11 rabbits, 4 quarters mean cycling after every 3 months, 12/3=4, total duration=2 years.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions