Question: Can anyone help me with this problem? Use a while loop; there are no text boxes, just regular input statements Enter number of organisms: 2
Can anyone help me with this problem?
Use a while loop; there are no text boxes, just regular input statements Enter number of organisms: 2 Enter average daily increase: 30 Enter number of days to multiply: 10 DAY APPROXIMATE POPULATION ------------------------------------------------- 1 2 2 2.600 3 3.380 4 4.394 5 5.712 6 7.426 7 9.654 8 12.550 9 16.315 10 21.209
This is what I got so far
I can't make the calculation keep going, following the days
count = 0 starting = int(input("Enter number of organisms: ")) average = int(input("Enter average daily increase: ")) days = int(input("Enter number of days to multiply: ")) print('DAY APPROXIMATE POPULATION') while count < days: count = count + 1 if days == 1: count = starting else: population *= (1 + average/100) print(count, '\t', population)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
