Calculate grade needed on the final
calculate_grade_neededUse this when someone asks what they need on the final: 'what do I need on my final to get a B', final grade calculator, score needed on the final exam to pass, or a teacher asking what each student needs on the final for a C. Takes the current grade percent (or a list of students with current grades), how much the final is worth, and a target percent or letter (default all letters on the scale). Returns the score needed on the final for each target (and the points needed when final points are given), whether it is reachable, and what-if course grades. Assumes the final is a separate weight on top of the current grade; does not model a final inside a weighted category.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | The course grade wanted: a percent (90), a letter ("B") or several ("A, B, C"). Default: every letter on the scale. | |
| students | No | For a teacher: several students' current grades, e.g. "Ana Diaz 84.5, Ben Ito 71" or [{"name":"Ana Diaz","current_grade":84.5}]. Send this or current_grade. | |
| plus_minus | No | true for +/- letters. Default false. | |
| final_weight | Yes | How much the final counts toward the course grade, as a percent, e.g. 20 or "20%" (0.2 is read as 20%). | |
| letter_scale | No | Letter cutoffs for letter targets. Default A 90, B 80, C 70, D 60; "plus_minus" or a custom list like "A 93, B 85, C 75, D 65". | |
| current_grade | No | The grade before the final, as a percent, e.g. 84.5 or "84.5%". | |
| final_points_possible | No | Points on the final exam, e.g. 120, to also show the points needed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| notes | Yes | ||
| targets | Yes | ||
| what_if | Yes | ||
| students | Yes | ||
| final_weight | Yes | ||
| letter_scale | Yes | ||
| current_grade | Yes |