Question: Show in Python Programming with steps involved Write a program that predicts the approximate size of a population of organisms. The application should ask the

 Show in Python Programming with steps involved Write a program that

Show in Python Programming with steps involved

Write a program that predicts the approximate size of a population of organisms. The application should ask the user to enter the starting number of organisms and the number of days that the organisms will be left to multiply. 1. Validate the input after taking it from user. The number of days should be less than or equal to 20. If the user entered a wrong value for the number of days, print an error and take only the number of days, do not take the number of organisms again The starting number of organisms should be greater than equal to 2. If user entered a wrong value, print an error and take only the number of starting organisms, do not take number of days again. o o o If both of them are wrong, then take both of the input values after printing an 2. Calculate the population of organisms by day using the following formula error If the day number is odd, population's average daily increase will be 30%. If the day number is even, population's average daily increase will be 20%. o Print the day number and the population (with only 2 decimal points) For example, assume the user enters the following values, then output will look like this: Enter the number of days to grow organisms (enter number 2) 4 Day Approximate Population 4 6 8 10 12 4.80 6.24 7.49 9.73 11.68 15.19 18.22 23.69 28.43 36.96 44.35 57.65 13 SAMSUNG

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!