Question: *** in C++**** Problem: 2.11 (Population projection) Rewrite Programming Exercise 1.11 to prompt the user to enter the number of years and displays the population
*** in C++****
Problem: 2.11 (Population projection) Rewrite Programming Exercise 1.11 to prompt the user to enter the number of years and displays the population after the number of years. Use the hint in Programming Exercise 1.11 for this program. Here is a sample run of the program:
Enter the number of years: 5 The population in 5 years is 325932970
( Background mentioned: 1.11 The U.S. Census Bureau projects population based on the following assumptions:
One birth every 7 seconds
One death every 13 seconds n One new immigrant every 45 seconds
Write a program that displays the population for each of the next five years. Assume the current population is 312,032,486 and one year has 365 days. Hint: In C++, if two integers perform division, the result is the quotient. The fractional part is truncated.))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
