subject

This code snippet is intended to calculate the balance of an account after twenty years of gaining interest. select the statement that correctly completes the loop.

int years = 20;
double balance = 1;
while (years > 0)
{

double interest = balance * rate / 100;
balance = balance + interest;
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 13:50
Implement the dining philosophers problem (described on pages 167-170 in the textbook (chapter 2.5. create a graphical user interface - showing which philosopher is eating, and which is waiting/thinking at any given time. show the forks. use java programming language for this project.
Answers: 2
question
Computers and Technology, 22.06.2019 11:00
What are two of the most common reasons that peolpe who need mental health care do not access it?
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
What is a programming method that provides for interactive modules to a website?
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
What social factors affect your health
Answers: 3
You know the right answer?
This code snippet is intended to calculate the balance of an account after twenty years of gaining i...
Questions
question
Mathematics, 29.01.2021 17:30
question
Mathematics, 29.01.2021 17:30
question
Biology, 29.01.2021 17:30
question
Chemistry, 29.01.2021 17:30
Questions on the website: 13722367