subject

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 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 Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Working on this program in python 3.7: a year in the modern gregorian calendar consists of 365 days. in reality, the earth takes longer to rotate around the sun. to account for the difference in time, every 4 years, a leap year takes place. a leap year is when a year has 366 days: an extra day, february 29th. the requirements for a given year to be a leap year are: 1) the year must be divisible by 42) if the year is a century year (1700, 1800, the year must be evenly divisible by 400some example leap years are 1600, 1712, and 2016.write a program that takes in a year and determines whether that year is a leap year.ex: if the input is 1712, the output is: 1712 is a leap year. ex: if the input is 1913, the output is: 1913 is not a leap year. your program must define and call the function isleapyear(useryear). the function should return true if the input year is a leap year and false otherwise.
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
What is the first view you place in your drawing?
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
All of these are true about using adhesive except: a. dissimilar materials can be joined. b. mixing tips are product and material specific. c. a specific application gun may be required. d. two-part adhesives are dispensed using two mixing tips
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
You know the right answer?
The us census bureau projects population based on the

following assumptions:

Questions
question
English, 16.06.2020 17:57
question
History, 16.06.2020 17:57
question
Mathematics, 16.06.2020 17:57
Questions on the website: 13722359