Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is all in python Language Please help there is some code that I have but im

ID: 3756688 • Letter: T

Question

This is all in python Language Please help there is some code that I have but im not sure what is going wrong in this, If you could point out the error or post a new way to do these questions I would appreciate it! 3 questions please help

Programming Exercise 3.5 DInstructions population.py+ A local biologist needs a program to predict population growth. The 1 def predict_population() 2 import math spinput( "Enter the initial number of organism:") 4 r input("Enter the rate of growth [a real number > ]: ") 5 while r1 or r

Explanation / Answer

Complete Solution for Question 1

def predict_population():
population=int(input("Enter the initial number of organisgm: "))
rate=int(input("Enter the rate og growth [a real number>0]: "))
period=int(input("Enter the number of hours to acheive the rate of growth: "))
duration=int(input("Enter the total hour of growth: "))
while duration >= period:
population=population*rate
duration=duration-period
print("The toatal population is: ", population)
predict_population()

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote