1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dexar [7]
3 years ago
6

A local biologist needs a program to predict population growth. the inputs would be: the initial number of organisms, as an int

the rate of growth (a real number greater than 1), as a float the number of hours it takes to achieve this rate, as an int a number of hours during which the population grows, as an int
Biology
1 answer:
Nitella [24]3 years ago
7 0

"A local biologist needs a program to predict population growth. the inputs would be..." The resultant code is

tp=sp

hours = 1

while (hours < t):

tp *= g

hours += r

print("The total population is " + str(int(tp)))

# the call function

<h3>What is a program?</h3>

Generally, a program is simply defined as programming written into a computer or other equipment in order to do a certain task

In conclusion, to write a program that takes these inputs and displays a prediction of the total population must consider  the parameters and the code platform (python), Hence

# on python interface required library is explored

import math

# describe the functions needed

def prediction():

sp = int(input("Enter the initial number of organism: "))

g = float(input("Enter the rate of growth [a real number > 0]: "))

while(g<1):

print ("Invalid.. growth rate.")

g = float(input("Enter the rate of growth [a real number > 0]: "))

r = int(input("Enter the number of hours to achieve the rate of growth: "))

t = int(input("Enter the total hours of growth: "))

tp=sp

hours = 1

while (hours < t):

# the calculation for tp

tp *= g

hours += r

print("The total population is " + str(int(tp)))

#call the created function

CQ

A local biologist needs a program to predict population growth. The inputs would be: 1. The initial number of organisms 2. The rate of growth (a real number greater than 1) 3. The number of hours it takes to achieve this rate 4. 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.  

Read more about the program

brainly.com/question/14368396

#SPJ1

You might be interested in
Carlos is a healthy but sedentary college student. he weighs 175 pounds. about how many grams of protein should he consume each
MatroZZZ [7]
Carlos will have to consume about 63 gram of protein per day.
The dietary reference intake of protein is 0.8 gram of protein per kilogram body weight or 0.36 gram per pound. Carlos is 175 pounds in weight, so he is going to need 0.36 * 175 = 63. Thus, Carlos needs 63 grams of protein per day.<span />
6 0
4 years ago
If humans had only one gene for eye color with two alleles (B and b) and it was expressed as complete dominance, how many differ
Kipish [7]

Answer:

<em>large</em><em> </em><em>range</em><em> </em><em>of</em><em> </em><em>phenotypes</em>

Explanation:

<em>shades</em><em> </em><em>of</em><em> </em><em>brown</em><em>,</em><em> </em><em>hazel</em><em> </em><em>greens</em><em> </em><em>and</em><em> </em><em>blue</em><em> </em><em>-</em><em> </em><em>they</em><em> </em><em> </em><em>are</em><em> </em><em>all</em><em> </em><em>part</em><em> </em><em>it</em><em> </em><em>could</em><em> </em><em>be</em><em> </em><em>multi-coloured</em><em> </em><em>.</em><em> </em><em>One</em><em> </em><em>of</em><em> </em><em>the</em><em> </em><em>eyes</em><em> </em><em>could</em><em> </em><em>have</em><em> </em><em>hazel</em><em> </em><em>and</em><em> </em><em>the</em><em> </em><em>other</em><em> </em><em>could</em><em> </em><em>have</em><em> </em><em>shades</em><em> </em><em>of</em><em> </em><em>brown</em>

6 0
4 years ago
Overtime a species can change - due to environmental factors and geographic changes. Sometimes, these changes can lead to new sp
SVEN [57.7K]

Answer:

geographic isolation

Explanation:

3 0
4 years ago
What causes birds to fly?
ELEN [110]
The things that birds have attached to their bodies called their wings, a left one and a right one, cause them to have the ability to fly.
5 0
3 years ago
Read 2 more answers
Which of the following is not the name of an air mass?
Nadya [2.5K]
That would be A. tepid moist
Hope I helped!
5 0
3 years ago
Other questions:
  • The anatomy of beta vulgaris has two major parts the taprrot or beet and the leaves what functions do these two parts carry out
    5·1 answer
  • Why is the oceanic white tip a good predator?
    7·1 answer
  • Only the water of marine ecosystems contains dissolved salt.
    15·2 answers
  • Under what conditions do photosynthesis and cellular respiration occur in most plants? under what conditions do photosynthesis a
    6·2 answers
  • What is lightning?
    11·2 answers
  • 1. Which of the following describes the transformation of energy that occurs when you place a
    13·1 answer
  • Plant conduct which of the following processes
    7·2 answers
  • What is the function of the mitochondria?
    9·2 answers
  • These two graphs show the amount of food consumed by a single species of organism. One graph shows food intake during one week i
    10·1 answer
  • Hello! Happy New Years! If someone could help me with this problem real quick, I would greatly appreciate it! Thanks in advance!
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!