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, 21.06.2019 16:50
Malcolm has several receipts from recent transactions that he entered in his records. the receipts include an atm receipt for an $80.00 deposit, a grocery store receipt for $25.50, and a paycheck deposit slip for $650.00 when he finishes entering his transactions, malcolm realizes that his balance is incorrect. assuming that malcolm had no beginning balance, what should his correct balance be?
Answers: 1
question
Business, 21.06.2019 21:50
You have $22,000 to invest in a stock portfolio. your choices are stock x with an expected return of 11 percent and stock y with an expected return of 13 percent. if your goal is to create a portfolio with an expected return of 11.74 percent, how much money will you invest in stock x? in stock y?
Answers: 2
question
Business, 22.06.2019 17:30
Gary lives in an area that receives high rainfall and thunderstorms throughout the year. which device would be useful to him to maintain his computer?
Answers: 2
question
Business, 22.06.2019 19:00
Why is accountability important in managing safety
Answers: 2
You know the right answer?
(Population projection) The US Census Bureau projects population based on the

following...
Questions
question
Mathematics, 11.01.2021 17:40
question
Mathematics, 11.01.2021 17:40
question
Chemistry, 11.01.2021 17:40
question
English, 11.01.2021 17:40
question
Mathematics, 11.01.2021 17:40
question
Mathematics, 11.01.2021 17:40