Question: Write a C + + program that will predict the size of a population of an organism. The program will ask the user for a

Write a C++ program that will predict the size of a population of an organism. The program will ask the user for a starting number of organisms, the average daily population increase (as a percentage), and the number of days they will multiply. A loop should display the size of the population for each day.
Input validation: Do not accept a starting number of organisms less than 2(use a do-while loop to make sure a value >=2 is input). Do not accept a negative daily average population increase. Do not accept a number less than 1 for the number of days they will multiply.
Equation for increase: population = population + population*Average Increase

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!