Challenge #12

Your data is a simple class containing a student’s name and student id.

Your hash table (array) will have 50 cells, numbered from 0-49. Each cell will contain a linked list.
#1) Write a hash function that will convert the student id to a cell in the table, and allow you to store the students data in the table. Write a further function which allows you to look up a student’s name based on their id.

#2) Write a hash function that will convert the student’s name into a cell in the table, and allow you to store students data in the table. Write a further function which allows you to look up a student’s id based on their name.

In each case your code should work for 5 years worth of ISNE students – and in the next 4 years we expect to have 60 new students.