Question: (Population projection) The U.S. Census Bureau projects population based on the following assumptions: One birth every 7 seconds 1 One death every 13 seconds One

(Population projection) The U.S. Census Bureau projects population based on the following assumptions: One birth every 7 seconds 1 One death every 13 seconds One new immigrant every 45 seconds Write a program to display 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 Java, if two integers perform division, the result is an integer. 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. Note : Population = born + immigrants - death It is Fine to just show the population of the first three years only. run. 1 year population is : 314812582 2 year population is : 317592 78 3 year population is : 320372774 4 year population is : 323152870 5 year population is : 325932966 BUILD SUCCESSFUL {total time: 0 seconds)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
