Calculate Grade Scenarios
calculate_grade_scenariosRecompute course grades, test what-if assignment scores, and calculate the percentage needed on remaining work to reach a target grade without changing Canvas.
Instructions
Recompute your course grade, try what-if scores, and find what you need on remaining work.
Reproduces Canvas's grade arithmetic (weighted or total-points groups, drop lowest/highest and never-drop rules, excused and omitted assignments, ungraded work excluded, groups with nothing graded left out) and shows it next to Canvas's own current score, flagging any disagreement. Optionally applies what-if scores, and reports the single percentage you would need on every remaining ungraded assignment to reach a target. Letters use the course's grading scheme when your token can read it, else Canvas's default scheme; the output says which. Nothing is changed in Canvas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_letter | No | Optional target letter, e.g. "A-" (from the scheme in use). Give target_percent or target_letter, not both. | |
| target_percent | No | Optional target course percentage (0-200) | |
| course_identifier | Yes | Course code or Canvas ID | |
| hypothetical_scores | No | Optional what-if points by assignment ID, e.g. {"12345": 18, "12346": 9.5}. Points, not percentages. |