Java Software Solutions: Foundations of Program Design, 7e ...

There is the potential for incorrect results due to integer division truncation, so a cast to float is used for the percent and average calculations. The solution in this manual also does a check to see if no scores have been entered, and, if so, displays a special message rather than the statistics. ................
................