CMPU-203: Introduction to Computer Science III
Quiz #7
Due: Wednesday, Nov. 7
-
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.
-
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.
-
Describe, briefly but in your own words, what you think a hash function is.