Question Which statement about this code snippet is accurate? 1 years = 50 Not yet balance = 10000 answered Marked out of targetBalance = 20000 2,00 rate = 3 P Flag question for i in range (1 , years...


Question<br>Which statement about this code snippet is accurate?<br>1<br>years = 50<br>Not yet<br>balance = 10000<br>answered<br>Marked out of<br>targetBalance = 20000<br>2,00<br>rate = 3<br>P Flag<br>question<br>for i in range (1 , years + 1) :<br>if balance<br>>= targetBalance :<br>i = years+<br>1<br>else :<br>interest =<br>balance * rate / 100<br>balance =<br>balance + interest<br>O a. The loop will run 50 times.<br>O b. There is a compilation error.<br>O c. The loop will never stop.<br>O d. The loop will run at most 50 times, but may stop earlier when balance exceeds or equals targetBalance.<br>

Extracted text: Question Which statement about this code snippet is accurate? 1 years = 50 Not yet balance = 10000 answered Marked out of targetBalance = 20000 2,00 rate = 3 P Flag question for i in range (1 , years + 1) : if balance >= targetBalance : i = years+ 1 else : interest = balance * rate / 100 balance = balance + interest O a. The loop will run 50 times. O b. There is a compilation error. O c. The loop will never stop. O d. The loop will run at most 50 times, but may stop earlier when balance exceeds or equals targetBalance.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here