Java · Variables and primitive types
An average of whole-number scores needs its fraction, and a cast tells Java which value to treat as a double.