Write a program that will predict the size of a population oforganisms. The prog
ID: 3647598 • Letter: W
Question
Write a program that will predict the size of a population oforganisms. The program should ask the user for the starting numberof organisms, their average dailypopulation increase (as a percentage), and the number of days they will multiply. A For Loopshould display the size of the population for each day.Explanation / Answer
#include using namespace std; int main() { int start_num = 0; double avg_daily_increase = 0.0; int num_days = 0; double new_population_percentage = 0.0; double new_population = 0.0; cout > start_num; while(start_num < 2) { cout start_num; } cout > avg_daily_increase; while (avg_daily_increase < 0) { cout avg_daily_increase; } cout > num_days; while(num_days < 1) { cout num_days; } coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.