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]
2 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]2 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
What are the end products of the HYDROLYSIS of a polysaccharide?
cricket20 [7]

Answer:

The most important polysaccharide to man. Upon complete hydrolysis will yield glucose molecules. found as a stored polysaccharide in the liver of man and other animals. This is how our bodies store sugars for later use.

Explanation:

Brainliest please?

8 0
3 years ago
Read 2 more answers
Which of the following is true of the opioid fentanyl? It is used primarily in conjunction with surgical anesthesia. It is found
kumpel [21]

Answer: it is used primarily in conjunction with surgical anesthesia

Explanation: it is one of the synthetic opioid , it is used intravenously as anesthesia and to treat pain. It is given with a muscle relaxant and a sedative hypnotic. The effect is quick in the body and central nervous system and can last less than 2 hours.

4 0
3 years ago
Read 2 more answers
Which structure is found mainly in green plants and bacteria?
Elina [12.6K]
The answer is B cell wall
3 0
3 years ago
Explain why studying microorganisms such as bacteria can help scientists understand how evolution works.
Nezavi [6.7K]

Answer: New research shows that colonies of Escherichia coli can demonstrate a form of learning.

Explanation: Bacterial colonies can evolve the ability to anticipate changes in their immediate environment, say researchers led by Saeed Tavazoie at Princeton University in New Jersey. Other types of bacteria could too. This skill could give them the edge over other bacteria that merely adapt themselves to current conditions.

8 0
3 years ago
Im giving away more points bc i don't ask questions fr so here u guys go enjoy!!
mars1129 [50]

Answer:

Aw thx

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • Hemoglobin, a protein is built by
    13·1 answer
  • What is the basic ingredient of all clouds?
    11·2 answers
  • Approximately how many miles is 1 kilometer equal to? On a scale (1:24 000
    7·1 answer
  • Ca
    13·1 answer
  • In some states, populations of mule deer (Odocoileus hemionus) and white-tail deer (O. virginianus) can occupy the same forest h
    6·2 answers
  • Which of the following has the most important role regulating global temperatures?
    15·1 answer
  • Cell differentiation causes embryonic
    9·1 answer
  • Two brown heterozygous horses mate, calculate the phenotypic frequency
    11·1 answer
  • Which statement best describes an environmental consequence of the incineration of garbage?
    11·2 answers
  • The process of artificially filtering waste products from the patient's blood is known as?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!