Question: (C++)wirte the functions for these questions Write a function for each of the following problems within your main.cpp file and make the appropriate calls to
Write a function for each of the following problems within your main.cpp file and make the appropriate calls to each function from within your main function. Problem1 The U.S. Census provides information about the current U.S. population as well as approximate rates of change. Using those rates and the current US population, write an algorithm to calculate the U.S population in exactly one year (365 days). Your algorithm should output the result of your calculations Three rates of change are provided a. There is a birth every 8 seconds b. There is a death every 12 seconds C. There is a new immigrant every 33 seconds Your function should take current population as an integer parameter Your function should return the population in a year Your function MUST be named howMany . For example, given an initial population of 1,000,000, your function would return 3,269,636
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
