|
1 | 1 | # Description |
2 | 2 |
|
3 | | -Given students' names along with the grade that they are in, create a roster for the school. |
| 3 | +Given students' names along with the grade they are in, create a roster for the school. |
4 | 4 |
|
5 | 5 | In the end, you should be able to: |
6 | 6 |
|
7 | | -- Add a student's name to the roster for a grade |
| 7 | +- Add a student's name to the roster for a grade: |
8 | 8 | - "Add Jim to grade 2." |
9 | 9 | - "OK." |
10 | | -- Get a list of all students enrolled in a grade |
| 10 | +- Get a list of all students enrolled in a grade: |
11 | 11 | - "Which students are in grade 2?" |
12 | | - - "We've only got Jim just now." |
| 12 | + - "We've only got Jim right now." |
13 | 13 | - Get a sorted list of all students in all grades. |
14 | | - Grades should sort as 1, 2, 3, etc., and students within a grade should be sorted alphabetically by name. |
15 | | - - "Who all is enrolled in school right now?" |
16 | | - - "Let me think. |
17 | | - We have Anna, Barb, and Charlie in grade 1, Alex, Peter, and Zoe in grade 2 and Jim in grade 5. |
18 | | - So the answer is: Anna, Barb, Charlie, Alex, Peter, Zoe and Jim" |
| 14 | + Grades should be sorted as 1, 2, 3, etc., and students within a grade should be sorted alphabetically by name. |
| 15 | + - "Who is enrolled in school right now?" |
| 16 | + - "Let me think. We have Anna, Barb, and Charlie in grade 1, Alex, Peter, and Zoe in grade 2, and Jim in grade 5. So the answer is: Anna, Barb, Charlie, Alex, Peter, Zoe, and Jim." |
19 | 17 |
|
20 | | -Note that all our students only have one name (It's a small town, what do you want?) and each student cannot be added more than once to a grade or the roster. |
21 | | -In fact, when a test attempts to add the same student more than once, your implementation should indicate that this is incorrect. |
| 18 | +Note that all our students only have one name (it’s a small town, what do you want?), and each student cannot be added more than once to a grade or the roster. If a test attempts to add the same student more than once, your implementation should indicate that this is incorrect. |
0 commit comments