Skip to content

Commit

Permalink
docs: Update instructions.md with additional example (#909)
Browse files Browse the repository at this point in the history
fixes #678
  • Loading branch information
vaeng authored Oct 16, 2024
1 parent 6d043d9 commit a4db75d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions exercises/concept/making-the-grade/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ round_down_scores(student_scores)
// => {90, 40, 55, 70, 30, 25, 80, 95, 38, 40}
```
There are other methods which achieve the same result, but a _cast_ is a common sight.
```cpp
int new_PI{static_cast<int>(3.14) + static_cast<int>(0.001592653589)};
// new_PI is 3.
```

## 2. Non-Passing Students

As you were grading the exam, you noticed some students weren't performing as well as you'd hoped.
Expand Down

0 comments on commit a4db75d

Please sign in to comment.