subject
Business, 15.02.2020 05:29 bryan519688

(Population projection) The US 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 to display the population for each of the next five years. Assume the

current population is 312032486 and one year has 365 days. Hint: in Python, you

can use integer division operator // to perform division. The result is an integer. For

example, 5 // 4 is 1 (not 1.25) and 10 // 4 is 2 (not 2.5).

Here's what I have but I kept getting wrong numbers... what am I doing wrong?

# Total Population: 312032486

# Total Seconds/Year: 365* 24 * 60 * 60 = 31536000

# Births/Year: 31536000/7 = 4505142.857142857

# Deaths/Year: 31536000/13 = 2425846.153846154

# Immigrations/Year: 31536000/45 = 700800.0

print((312032486) + (4505142.857142857 + 700800 - 2425846.153846154) // 1 )

print((312032486) + (2 * (4505142.857142857 + 700800 - 2425846.153846154)) // 1 )

print((312032486) + (3 * (4505142.857142857 + 700800 - 2425846.153846154)) // 1 )

print((312032486) + (4 * (4505142.857142857 + 700800 - 2425846.153846154)) // 1 )

print((312032486) + (5 * (4505142.857142857 + 700800 - 2425846.153846154)) // 1 )

ansver
Answers: 2

Another question on Business

question
Business, 22.06.2019 18:10
Ashop owner uses a reorder point approach to restocking a certain raw material. lead time is six days. usage of the material during lead time is normally distributed with a mean of 42 pounds and a standard deviation of four pounds. when should the raw material be reordered if the acceptable risk of a stockout is 3 percent?
Answers: 1
question
Business, 22.06.2019 19:20
Royal motor corp. generates a major portion of its revenues by manufacturing luxury sports cars. however, the company also derives an insignificant percent of its annual revenues by selling its sports merchandise that includes apparel, shoes, and other accessories under the same brand name. which of the following terms best describes royal motor corp.? a. aconglomerate b. a subsidiary c. adominant-businessfirm d. a single-business firm
Answers: 1
question
Business, 23.06.2019 06:00
Who led henry fords as an entrepreneur
Answers: 1
question
Business, 23.06.2019 13:00
What three important pieces of information can we learn by reading a production possibilities gragh?
Answers: 2
You know the right answer?
(Population projection) The US Census Bureau projects population based on the

following...
Questions
question
Mathematics, 28.01.2020 09:31
Questions on the website: 13722362