When you use a while loop to compute the average of several values, what variables do you need to keep track of (in addition to holding the value being processed) ?
A) The sum of the values
B) How many values have been processed
C) None
D) The sum of the values and how many values have been processed
Correct Answer:
Verified
Q30: for loops can be nested.
Q31: Which Java class enables us to read
Q32: How many times will a loop with
Q33: How many times will a loop with
Q34: When you use a while loop to
Q36: When a loop condition is grade >=
Q37: When you use a sentinel value for
Q38: The loop condition is a boolean expression.
Q39: When asking the user for an integer
Q40: The loop condition can be a complex
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents