This code snippet is intended to calculate the balance of an account after twenty years of gaining interest. Select the statemen t that correctly completes the loop. int years = 20;
double balance = 10000;
while (years > 0)
{
__________
double interest = balance * rate / 100;
balance = balance + interest;
}
1 answer:
Answer:
The answer to this question is the "years--;".
Explanation:
In the given question code the if we define the years--; and the rate of interest in the code so this program will return a value for example if we give rate of interest or rate to value 5 then the output of the code is 26532.977051 because it returns the double that is a floating-point value. So the missing code for this question is "years--;".
You might be interested in
Answer:
R's share = 306
Explanation:
Sum of ratio = 1/3 + 1/2 + 1/5
LCM = 30
Sum of ratio = (10 + 15 + 6) / 30 = 31 /30
Profit to be shared = 1581
P = 1/3 ; Q = 1/2 ; R = 1/5
Share of R :
(Total profit / sum of ratio) * R ratio
[1581 / (31/30)] * 1/5
(1581 / 1 * 30/31) * 1/5
51 * 30 * 1/5
51 * 6 = 306
Firefox any web browser can open a xps file
Answer:
Subtraction
Explanation:
That is subtracting the values of two cells.
You know because of the "-" sign
Force:newtons distance:meters work:joules power:either watts or horsepower energy:joules time:kiloseconds and milliseconds
Answer:
NOPE
Explanation:
sometimes presentations can be for one person only. For instance if you work in a company sometimes you present for your boss only etc.
Hope this helped :)