Question: USING while loop and input validations The program predicts the approximate size of a population of organisms. The application should ask the user to enter

USING while loop and input validations The program predicts the approximate sizeUSING while loop and input validations

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

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!