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, 21.06.2019 19:40
Write the quartstogallons java class that declares a named constant to hold the number of quarts in a gallon (4). also declare a variable to represent the number of quarts needed for a painting job, and assign an appropriate value—for example, 18. compute and display the number of gallons and quarts needed for the job. display explanatory text with the values, for example:
Answers: 2
question
Computers and Technology, 22.06.2019 01:00
Which option marks all modification made within a document? review comment track changes balloons
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
Technician a says that the radiator usually cools better if the front air dam is removed. technician b says that when a condenser has a leak it can be repaired easily with epoxy. who is correct?
Answers: 1
question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
You know the right answer?
Population growth

Assign finalPopulation with the population size given an initial popul...
Questions
question
Mathematics, 20.09.2020 15:01
question
Mathematics, 20.09.2020 15:01
question
Chemistry, 20.09.2020 15:01
question
English, 20.09.2020 15:01
question
Mathematics, 20.09.2020 15:01
question
Chemistry, 20.09.2020 15:01
Questions on the website: 13722360