Question: This assignment is designed to help you learn the application of loops in problem solving. Write a C + + program to compute the size

This assignment is designed to help you learn the application of loops in problem solving. Write a C++ program to compute the size of a population of organisms. A loop can be used to repeat applying the growth percentage. This question is taken from our Text P.299, #5.
==========================
[Population]
Write a program that will predict the size of a population of organisms. The program should ask the user for the starting number of organisms, their 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 number less than 2 for the starting size of the population. Do not accept a negative number for average daily population increase. Do not accept a number less than 1 for the number of days they will multiply.
===========================
Reminder: Make sure you include documentation in your program including your name, date, and the purpose of the program. After you test the program to be correct, submit by uploading the source file (the .cpp file.)

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 Programming Questions!