Skip to content

Commit ed023da

Browse files
authored
fix: making the grade docs fix (#953)
1 parent 9eeb10e commit ed023da

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

exercises/concept/making-the-grade/.docs/hints.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ Also being familiar with the following can help with completing the tasks:
2424

2525
## 3. Calculating Letter Grades
2626

27-
- These are _lower thresholds_. The _lower threshold_ for a "D" is a score of **41**, since an "F" is **<= 40**.
27+
- The score needed to avoid failing is always 41, since an "F" is **<= 40**. The remaining score range, from 41 to the highest score, should be divided into four equal intervals, one for each letter grade.
28+
- Subtract 40 from the highest score to get the total range of scores that qualify for letter grades (A to D).
29+
- Divide this total range by 4 to get the size of each grade interval.
30+
- Add this interval size to 40 repeatedly to calculate the lower bounds for each letter grade.
2831
- `static_cast<int>` without parameters should round off increments nicely.
2932
- You are expected to return an array, not a vector.
3033

exercises/concept/making-the-grade/.docs/instructions.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ letter_grades(88);
7474
// => {41, 53, 65, 77}
7575
```
7676

77-
### How to calculate the intervals
78-
79-
The score needed to avoid failing is always 41.
80-
The remaining score range, from 41 to the highest score, should be divided into four equal intervals, one for each letter grade.
81-
82-
- Subtract 40 from the highest score to get the total range of scores that qualify for letter grades (A to D).
83-
- Divide this total range by 4 to get the size of each grade interval.
84-
- Add this interval size to 40 repeatedly to calculate the lower bounds for each letter grade.
85-
8677
## 4. Matching Names to Scores
8778

8879
You have exam scores in descending order, and the respective student names (sorted in the order of their exam scores).

0 commit comments

Comments
 (0)