To get practice fixing compiler errors and debugging runtime errors.
For this lab you will fix the QuizList class. This class attempts to read in a list of quiz scores, drop the lowest score, and then return the average of the remaining grades. The Quiz.java file uses this class to compute the average on an input file.
It uses a file called scores.txt which you can download and test with. The test file doesn't have any problems and you can assume it will be there when the program runs.
The program itself, however, has a couple of compiler errors, as well as some run-time logic errors in it. Some of these run-time problems will be exceptions that crash the program and one is a logic error that results in the wrong output. Your job is to fix these problems and get the code working.
When you are done, the example file should give the following output:
Average is 4.5
When you are done, please submit the Java code under the assignment in Canvas.
A solution to this lab can be found in QuizList.java, and Quiz.java.
Copyright © 2023 Ian Finlayson | Licensed under a Attribution-NonCommercial 4.0 International License.