Problem

(Population projection) The U.S. Census Bureau projects population based on the following...

(Population projection) The U.S. Census Bureau projects population based on the following assumptions:

■ One birth every 7 seconds

■ One death every 13 seconds

■ 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.

For example, 5 / 4 is 1 (not 1.25) and 10 / 4 is 2 (not 2.5). To get an accurate result with the fractional part, one of the values involved in the division must be a number with a decimal point. For example, 5.0 / 4 is 1.25 and 10 / 4.0 is 2.5.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT