CMPU-203: Introduction to Computer Science III

Quiz #6
Due: Wednesday, April 10

  1. Write a functor that takes two arguments, both instances of the Person class (updated to have lastName and firstName members instead of just name). The function should return a bool, indicating whether the first person's name comes before the second person's name, using the midterm criteria of last name and then first nam.

  2. Write a functor that takes two arguments, both instances of the Student class. The function should return a bool, indicating whether the studentID of the first student is before the studentID of the second student.

  3. Describe, briefly but in your own words, what you think a hash function is.