Final exam grade needed
final_grade_neededUse this when the user asks what score they need on a final exam to get a course grade ("I have an 85 and the final is 20%, what do I need for a 90"). Takes the current course grade %, the final exam weight %, and the desired course grade %; returns the score needed on the final, flags when it is impossible (above 100%, or above the max with extra credit) or already secured (any score works), the highest and lowest possible course grades, and the score needed for an A, B, C, or D (90/80/70/60). Assumes the current grade covers the rest of the course weight. Does not calculate GPA (use calculate_gpa) and does not handle point-based gradebooks with unknown category weights.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| final_weight_pct | Yes | How much the final exam counts toward the course grade, as a percent greater than 0, e.g. 20. | |
| target_grade_pct | Yes | Course grade wanted after the final, as a percent, e.g. 90. | |
| current_grade_pct | Yes | Current course grade before the final, as a percent, e.g. 85. | |
| max_final_score_pct | No | Highest possible score on the final, default 100. Raise it only if the final has extra credit, e.g. 105. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| summary | Yes | ||
| possible | Yes | ||
| letter_targets | Yes | ||
| final_weight_pct | Yes | ||
| needed_score_pct | Yes | ||
| target_grade_pct | Yes | ||
| current_grade_pct | Yes | ||
| grade_if_zero_pct | Yes | ||
| needed_score_exact | Yes | ||
| max_final_score_pct | Yes | ||
| best_possible_grade_pct | Yes |