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

By Python Write a program that predicts the approximate size of a population of

ID: 674421 • Letter: B

Question

By Python

Write a program that predicts the approximate size of a population of organisms. The application should use text boxes to allow the user to enter the starting number of organisms, the average daily population increase (as a percentage) and the number of days the organisms will be left to multiply. For example, assume the user enters the following values: Starting number of organisms: 2 Average daily increase: 30% Number of days to multiply: 10 The program should display the following table of data:....

Explanation / Answer

s = int(input("Starting number of organisms: "))

i = float(input("Average daily increase: "))

d = int(input("Number of days to multiply: "))

print("Day Approximate Population")

for d in range(s, d + 1):

    add = s * i

    s = s + add

    print(d - 1, ' ', s)