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, 24.06.2019 07:30
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
question
Computers and Technology, 24.06.2019 11:40
100 pts. first person gets brainliest
Answers: 2
question
Computers and Technology, 24.06.2019 18:20
Acommon algorithm for converting a decimal number to binary is to repeatedly divide the decimal number by 2 and save the remainder. this division is continued until the result is zero. then, each of the remainders that have been saved are used to construct the binary number.write a recursive java method that implements this algorithm.it will accept a value of int and return a string with the appropriate binary character representation of the decimal number.my code: public class lab16{public string converttobinary(int input){int a; if(input > 0){a = input % 2; return (converttobinary(input / 2) + "" +a); } return ""; } }
Answers: 1
question
Computers and Technology, 25.06.2019 05:00
How many meatballs required for a larty of 25 adults and 6 children
Answers: 1
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, 20.05.2021 17:10
question
History, 20.05.2021 17:10
question
Mathematics, 20.05.2021 17:10
Questions on the website: 13722366