Question
For Python
Instructions A local biologist needs a program to predict population growth. The inputs would be: 1. The initial number of or
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Python Code:

#Asking the value
init=int(input("Enter the initial number of organisms: "))
rate=int(input("Enter the rate of growth [a real number >0]: "))
hours=int(input("Enter the number of hours to acheieve the growth rate: "))
total=int(input("Enter the total hours of growth: "))

while(total>0):
init=init*rate #multiplying it with rate
total=total-hours #then decrement the total hours
print("The total population is "+str(init)) #output

Screenshots:

#Asking the value init=int(input(Enter the initial number of organisms: )) rate=int(input(Enter the rate of growth [a real

Output:

Enter the initial number of organisms: 10 Enter the rate of growth [a real number >0]: 2 Enter the number of hours to acheiev

Enter the initial number of organisms: 500 Enter the rate of growth [a real number >]: 2, Enter the number of hours to acheie

If you have any queries, please comment below.

Please upvote , if you like this answer.

Add a comment
Know the answer?
Add Answer to:
For Python Instructions A local biologist needs a program to predict population growth. The inputs would...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please use python with a for loop to explain. Thanks in advance for the help! ^^...

    Please use python with a for loop to explain. Thanks in advance for the help! ^^ 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 1) The number of hours it takes to achieve this rate 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,...

  • A biologist is comparing the growth of a population of flies per week to the number...

    A biologist is comparing the growth of a population of flies per week to the number of flies in Guana will consume for week he has devised equation to solve for which day (x) the iguana would be able to eat the entire population the equation is 4^x=5x+ 3 explain to the biologist how we can solve this on a graph using a system of equations 1.(06.05 MC) A biologist is comparing the growth of a population of his per...

  • Write a program that will predict the size of a population of organisms. The program should ask t...

    Write a program that will predict the size of a population of organisms. The program should ask the user for the starting number of organisms, their average daily population increase (as a percentage), and the number of days they will multiply. A loop should display the size of the population for each day. Input Validation: Do not accept a number less than 2 for the starting size of the population. "The starting number of organisms must be at least 2."...

  • Write a program that will predict the size of a population of organisms. The program should...

    Write a program that will predict the size of a population of organisms. The program should ask for the starting number of organisms, their average daily population increase (as a percentage), and the number of days they will multiply. For example, a population might begin with two organisms, have an average daily increase of 50 percent, and will be allowed to multiply for seven days. The program should use a loop to display the size of the population for each...

  • 5.11: Population Write a program that will predict the size of a population of organisms. The...

    5.11: Population Write a program that will predict the size of a population of organisms. The program should ask the user for the starting number of organisms, their average daily population increase (as a percentage, expressed as a fraction in decimal form: for example 0.052 would mean a 5.2% increase each day), and the number of days they will multiply. A loop should display the size of the population for each day. Input Validation.Do not accept a number less than...

  • (1 point) Steadia is an island which experienced approximately linear population growth from 1950 to 2000....

    (1 point) Steadia is an island which experienced approximately linear population growth from 1950 to 2000. On the other hand, Randomian has experienced some turmoil more recently and did not experience linear nor near-linear growth 1950 1960 1970 1980 1990 2000 Year Pop. of country A 6.9 8.6 10.2 11.9 13.9 15.7 Pop. of country B 8.7 10.9 13.5 15.3 14.7 22.6 a) The table above gives the population of these two countries, in millions. Does country A or country...

  • It's my python assignment. Thank you You wrote a program to prompt the user for hours...

    It's my python assignment. Thank you You wrote a program to prompt the user for hours and rate per hour to compute gross pay. Also your pay computation to give the employee 1.5 times the hourly rate for hours worked above 40 hours. Enter Hours: 45 Enter Rate: 10 Pay: 475.0 (475 = 40 * 10 + 5 * 15) Rewrite your pay program using try and except so that your program handles non-numeric input gracefully. Enter Hours: 20 Enter...

  • Population growth problems BIDE model: No.1 N, +(B + 1) - ( D Rates: b =...

    Population growth problems BIDE model: No.1 N, +(B + 1) - ( D Rates: b = B/N; d = D/N: E) Net growth rate: R = b-d Exponential growth (discrete): N, NR* where R = 1+b-d Intrinsic rate of increase: r = InR Exponential growth (continuous): N:Noe -or-dN/dt = IN Logistic growth 1. Suppose a species of fish in a lake is modeled by a logistic population model with relative growth rate ofr 0.3 per year and carrying capacity of...

  • A biologist places 4 thousand bacteria in a nutrient rich solution and monitors the rate of growt...

    A biologist places 4 thousand bacteria in a nutrient rich solution and monitors the rate of growth of the bacteria every 15 minutes. Use the table to find the best possible overestimate for the total amount of change in bacteria from 1 hour to 2 hours. Make sure to include units. I. Time in hours 0 .25 0.5 0.7 10 125 15 175 2.0 2.25 2.5 2.75 Rate of growth of bacteria in units 119 14 168 199 236 282...

  • This exercise uses the population growth model. The count in a culture of bacteria was 400...

    This exercise uses the population growth model. The count in a culture of bacteria was 400 after 2 hours and 25,600 after 6 hours. (a) What is the relative rate of growth of the bacteria population? Express your answer as a percentage. (Round your answer to the nearest whole number.) 104 % (b) What was the initial size of the culture? (Round your answer to the nearest whole number.) 200 x bacteria (c) Find a function that models the number...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT