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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started