README.md (1682B) - raw
1 # Grade School 2 3 Welcome to Grade School on Exercism's Perl 5 Track. 4 If you need help running the tests or submitting your code, check out `HELP.md`. 5 6 ## Instructions 7 8 Given students' names along with the grade that they are in, create a roster 9 for the school. 10 11 In the end, you should be able to: 12 13 - Add a student's name to the roster for a grade 14 - "Add Jim to grade 2." 15 - "OK." 16 - Get a list of all students enrolled in a grade 17 - "Which students are in grade 2?" 18 - "We've only got Jim just now." 19 - Get a sorted list of all students in all grades. Grades should sort 20 as 1, 2, 3, etc., and students within a grade should be sorted 21 alphabetically by name. 22 - "Who all is enrolled in school right now?" 23 - "Let me think. We have 24 Anna, Barb, and Charlie in grade 1, 25 Alex, Peter, and Zoe in grade 2 26 and Jim in grade 5. 27 So the answer is: Anna, Barb, Charlie, Alex, Peter, Zoe and Jim" 28 29 Note that all our students only have one name. (It's a small town, what 30 do you want?) 31 32 ## For bonus points 33 34 Did you get the tests passing and the code clean? If you want to, these 35 are some additional things you could try: 36 37 - If you're working in a language with mutable data structures and your 38 implementation allows outside code to mutate the school's internal DB 39 directly, see if you can prevent this. Feel free to introduce additional 40 tests. 41 42 Then please share your thoughts in a comment on the submission. Did this 43 experiment make the code better? Worse? Did you learn anything from it? 44 45 ## Source 46 47 ### Created by 48 49 - @bentglasstube 50 51 ### Contributed to by 52 53 - @kytrinyx 54 - @m-dango 55 - @rfilipo 56 57 ### Based on 58 59 A pairing session with Phil Battos at gSchool - http://gschool.it