To set this up go to the Course in question GradeBook > Edit Setup > Set the Calculation method and the Weights (if those will be used)

Once you enter this information it will start calculating the grades properly.