Count test scores in three exact categories using strict cutoffs below50 and above80. Preserve the required output order and verify that boundary scores50 and80 belong to the middle group.
Given test scores, return three counts in this order: failing, passing without honor roll, and honor roll. A score below50 fails. A score above80 is honor roll. Scores from50 through80 inclusive are passing without honor roll.
### Constraints and Clarifications
Scores are expressed on the percentage scale used in the example;80 means80%, not0.8. No numerical size bounds are reported. Use finite numeric scores and apply the stated comparisons without inventing clamping behavior. An empty list returns[0,0,0].
### Example
For[81,90,23,44,51,50,80,49], return[3,3,2]. The middle category includes both50 and80.
### What a Strong Answer Covers
Use mutually exclusive conditions, preserve the output order, and account for every input exactly once. Explain the two strict boundary comparisons.
### Follow-up Questions
- Why do separate uncoordinated if statements risk counting one score twice?
- Which boundary examples distinguish the three categories?
Overview: Count test scores in three exact categories using strict cutoffs below50 and above80. Preserve the required output order and verify that boundary scores50 and80 belong to the middle group.
Given test scores, return three counts in this order: failing, passing without honor roll, and honor roll. A score below50 fails. A score above80 is honor roll. Scores from50 through80 inclusive are passing without honor roll.
Constraints and Clarifications
Scores are expressed on the percentage scale used in the example;80 means80%, not0.8. No numerical size bounds are reported. Use finite numeric scores and apply the stated comparisons without inventing clamping behavior. An empty list returns[0,0,0].
Example
For[81,90,23,44,51,50,80,49], return[3,3,2]. The middle category includes both50 and80.
What a Strong Answer Covers Guidance
Use mutually exclusive conditions, preserve the output order, and account for every input exactly once. Explain the two strict boundary comparisons.
Follow-up Questions Guidance
Why do separate uncoordinated if statements risk counting one score twice?
Which boundary examples distinguish the three categories?