Answer:
The Python code is given below with appropriate comments
Step-by-step explanation:
def predict_population_growth():
#Prompt and read the input from the user
num_org = int(input("Enter the initial number of organisms: "))
GR = float(input("Enter the rate of growth [a real number > 0]: "))
numHour = int(input("Enter the number of hours to achieve the rate of growth: "))
totalHours = int(input("Enter the total hours of growth: "))
#caluclate the total poulation growth
population = num_org
hours = 0
while hours < totalHours:
population *= GR
hours += numHour
print(" The total population is " + str(int(population)))
predict_population_growth()