subject
Computers and Technology, 30.03.2020 21:21 biba54

The for loop calculates the amount of money in a savings account after numberYears given an initial balance of savingsBalance and an annual interest rate of 2.5%.
Complete the for loop to iterate from 1 to numberYears (inclusive).

function savingsBalance = CalculateBalance(numberYears, savingsBalance)
% numberYears: Number of years that interest is applied to savings
% savingsBalance: Initial savings in dollars
interestRate = 0.025; % 2.5 percent annual interest rate

% Complete the for loop to iterate from 1 to numberYears (inclusive)
for ( )
savingsBalance = savingsBalance + (savingsBalance * interestRate);
end
end

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:00
Which of the following does 3d animation create an illusion of on the screen? a. depth b. emotion c. length d. dialogue
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
Which tab should you open to find the option for adding a header?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Choose the answers that best complete each sentence. on average,are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
question
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
You know the right answer?
The for loop calculates the amount of money in a savings account after numberYears given an initial...
Questions
question
Mathematics, 22.07.2019 21:00
question
Mathematics, 22.07.2019 21:00
question
Social Studies, 22.07.2019 21:00
question
Physics, 22.07.2019 21:00
question
English, 22.07.2019 21:00
Questions on the website: 13722362