Consider the TestScores program below. In the above program, note how the following lines appear above the

Question:

Consider the TestScores program below.

/*** * TestScores.java * Dean & Dean * * This implements an algorithm that averages test scores. import

In the above program, note how the following lines appear above the loop and also at the bottom of the loop:

  1. System.out.print(

Modify the program so it avoids having those lines appear twice but keeps the same functionality. For your modification, you are required to use a boolean variable named done in the while loop’s condition.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: