subject

Population growth

Assign finalPopulation with the population size given an initial population, population growth rate, and number of years. The population growth is calculated by:

Final population = Initial population * (1 + Rate of growth)^Number of years

Your Solution

function finalPopulation = CalculatePopulation(initialPopulati on, growthRate, numberYears)

% Assign finalPopulation with the population size given an
% initial population, population growth rate, and number of years
finalPopulation = 0;

end

Run Your Solution

Code to call your function when you click Run

CalculatePopulation(10000, 0.06, 20)

Check if CalculatePopulation(10000, 0.06, 20) returns 32071.3547

Check if CalculatePopulation(10000, 0.40, 10) returns 289254.6549

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 22:30
You draw two cards from a standard deck of 52 cards, but before you draw the second card, you put the first one back and reshuffle the deck. (a) are the outcomes on the two cards independent? why?
Answers: 3
question
Computers and Technology, 24.06.2019 19:50
Which is a characteristic of free and open-source software licenses? a. the source code is unavailable to everyone b. the source code is available only to the government c. the source code is available to all users d. the source code is constantly modified
Answers: 1
question
Computers and Technology, 25.06.2019 04:50
Your program should prompt the user for the dimensions of the two squares matrices, making sure that the user input is greater than or equal to 4.[ yes, an example would be a4x4matrix]2.if the above is not met, prompt the user for a new value.3.now generate random integernumbers to fill both matrices.4.display these two matrices on the screen.5.multiply the two matrices and display the result on the scre
Answers: 2
question
Computers and Technology, 25.06.2019 08:00
The heart of a computer.basic input/output systemselectmain memoryserial portcentral processing unit (cpu)
Answers: 3
You know the right answer?
Population growth

Assign finalPopulation with the population size given an initial popul...
Questions
question
English, 21.08.2021 02:10
Questions on the website: 13722362