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
Who is Carolus Linnaeus <br> Need a brief explanation
Pavel [41]

Answer:

Carolus Linnaeus, also called Carl Linnaeus, Swedish Carl von Linné, (born May 23, 1707, Råshult, Småland, Sweden—died January 10, 1778, Uppsala), Swedish naturalist and explorer who was the first to frame principles for defining natural genera and species of organisms and to create a uniform system for naming them

6 0
3 years ago
Which of the following can affect the rate at which a chemical reaction will occur?
Dmitriy789 [7]
Temperature and pH levels are both correct
3 0
3 years ago
Read 2 more answers
What is the digestive hormone called cholecystokinin
Verizon [17]

Answer:

Answer is bile

Cholecystokinin is secreted by cells of the upper small intestine. Its secretion is stimulated by the introduction of hydrochloric acid, amino acids, or fatty acids into the stomach or duodenum. Cholecystokinin stimulates the gallbladder to contract and release stored bile into the intestine.

6 0
3 years ago
The following diagram represents a cell inside a flask of media:
Natali [406]

Answer:

True because it is mixed with the proper ingredients.

4 0
2 years ago
What consumer level is a lobster
Alexeev081 [22]

The lobster would be a secondary consumer.

3 0
3 years ago
Other questions:
  • Arrange the layers in order from youngest to oldest.<br><br> Example ; Layer 2, Layer 4
    13·2 answers
  • Which is produced by the endocrine system to control how cells and organs function?
    8·1 answer
  • When you are sick, extra white blood cells are created by the _____.
    13·2 answers
  • Which membrane contains atp synthases in gram positive or in gram negative bacteria?
    7·1 answer
  • Why is pcr used in the process of dna sequencing?
    5·1 answer
  • What are the 2 major divisions in cell cycle?
    7·2 answers
  • What is the name of a complex group of organisms that are connected and interact with one another?​
    9·1 answer
  • HELP ASAP
    14·1 answer
  • What happens if an animal cannot get sufficient oxygen?​
    8·2 answers
  • What’s the answer???
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!