Write a small archiving program that stores students along with the grade that they are in.
This is meant to test your objects, class, hash & array knowledge. No actual database needed.
school = School.new("Haleakala Hippy School")
If no students have been added, the db should be empty:
school.db
# => {}
When you add a student, they get added to the correct grade.
school.add("James", 2)
school.db
# => {2 => ["James"]}
You can, of course, add several students to the same grade, and students to different grades.
school.add("Phil", 2)
school.add("Jennifer", 3)
school.add("Little Billy", 1)
school.db
# => {2 => ["James", "Phil"], 3 => ["Jennifer"], 1 => ["Little Billy"]}
Also, you can ask for all the students in a single grade:
school.grade(2)
# => ["James", "Blair"]