The document provides code for a Java program that calculates the average and sum of grades. It creates a CalcAverage class with a constructor that takes a name as a parameter. Methods are created to return the average and sum. The main method creates an object, gets user input for grades, calculates the average and sum, and calls the methods to output the results.