Question: python problem Its in python thx 1) The first function will compute the U.S. census which provides information about the current U.S. population as well

python problem

python problem Its in python thx 1) The first function will computethe U.S. census which provides information about the current U.S. population as

Its in python thx

1) The first function will compute the U.S. census which provides information about the current U.S. population as well as approximate rates of change. compute census(..) This function calculates the U.S. population in exactly one year (365 days) given three rates and the current US population. compute census(... takes 2 parameters list of rates in seconds and current_population, and returns the projected population in the next year Three rates of change are provided: . . . There is a birth every 8 seconds There is a death every 12 seconds There is a new immigrant every 33 seconds For example: Making a function call to compute_census() birth_rate 8 deathrate = 12 new-immigrants-rate = 33 List_of_rates [birth_rate,death_rate,new immigrants rate - Curr-population = 1000000 print compute_census(List_of_rates, Curr_population) 3269636 2) The second function will convert the given seconds into the format dd:hh:mm:ss convert secondsO This function does not take any parameters, however it will read input from the user for the seconds. Do not prompt the user for this value, just read from input. Use that number and convert it into days, hours, minutes, seconds. The function should print out the following string concatenated with the computed values: days, hours, minutes, seconds

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!