Question: USING while loop and input validations PYTHON The program predicts the approximate size of a population of organisms. The application should ask the user to
USING while loop and input validations PYTHON
The program predicts the approximate size of a population of organisms. The application should ask the user to enter the starting number of organisms, the average daily population increase (as a percentage, for example 30 means 30% ), and the number of days the organisms will be left to multiply. The program must check for all input validation using the loops to make sure no negative numbers and no more than 100 is allowed for the average daily increase, no more than 30 for number of days to multiply. For example, assume the user enters the following 3 values: Starting number of organisms: 2 Average daily increase: 30 Number of days to multiply: 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
