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 03:00
Which action describes an aspect of technological design?
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
You know the right answer?
The us census bureau projects population based on the

following assumptions:

Questions
question
Business, 08.06.2021 16:50
question
Mathematics, 08.06.2021 16:50
Questions on the website: 13722367