Andrew K.

asked • 03/22/21

Unit_5_Lab_2...

submit one .py file.

 

A local biologist needs a program to predict population growth. The

inputs would be:

the initial number of organisms,

the rate of growth (a real number greater than 0),

the number of hours it takes to achieve this rate,

and a number of hours during which the population grows.

 

For example, one might start with a population of 500 organisms, a growth

rate of 2, and a growth period to achieve this rate of 6 hours. Assuming

that none of the organisms die, this would imply that this population

would double in size every 6 hours. Thus, after allowing 6 hours for

growth, we would have 1000 organisms, and after 12 hours, we would

have 2000 organisms. Write a program that takes these inputs and displays

a prediction of the total population.

Eg. Output in this format:

#organisms        growth_rate     hours achieve rate          total_hours       #organisms

500                        2x                          6.00              6.00               1,000

1,000                      2x                          6.00             12.00              2,000

2,000                      2x                          6.00             18 .00             4,000       


Andrew K.

#organisms growth_rate hours achieve rate total_hours 500 2x 6.00 6.00 1,000 2x 6.00 12.00 2,000 2x 6.00 18 .00
Report

03/22/21

1 Expert Answer

By:

Patrick B. answered • 03/23/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.