## Details

## Description

Functional Description: Change the way that equally weighted items in a category are calculated so that they represent a true calculated average and avoid possible repeating fractions.

Setup:

Gradebook2 [Points, Weighted Categories]

Category HW [Weight items equally]

Grade Items [HW1, HW2, ..., HW6]

Equal weight will assign an item weight of 1/6, which is a repeating fraction.

Assign points 8.9995 to one grade item

The course grade will be "B+ (89.99%)" instead of "A- (90.00%)"

Setup:

Gradebook2 [Points, Weighted Categories]

Category HW [Weight items equally]

Grade Items [HW1, HW2, ..., HW6]

Equal weight will assign an item weight of 1/6, which is a repeating fraction.

Assign points 8.9995 to one grade item

The course grade will be "B+ (89.99%)" instead of "A- (90.00%)"

Take the sum of the percent scores for each non EC item in the category and divide that sum by the total number of non EC/Non Excused items.

We handle extra credit separately and depending on the situation.

Situation 1 - Normal Category with EC item

Handle the non EC items normally, and while looping thru the items, for an extra credit item, we calculate its score by taking the percent earned times the weight and adding that to a separate list. After we're done looping, we add the EC score to the non EC score for the total.

Situation 2 - EC Category with Scaled EC.

The score is handled the same as the normal case. We sum the graded items earned percentage and divide by the total number of graded items.

Situation 3 - EC Category without Scaled EC.

We sum the graded items earned percentage and divide by the total # of items (including non graded items.)

Non Equally weighted categories are handled exactly like they were before.

The old code didn't handle EC scaling with a non EC category, so I don't as well. Since it didn't handle this, I am not sure what to do, or if it even makes sense in that context.