Quiz 11, TR version
Date: Tuesday, November 18, 2014
Name (please type legibly, ideally in block letters):
Suppose that the class Student is already defined. The
description of each student contains:
As usual, this class contains:
- a student's name,
- a student's major, and
- the number of credit hours taken
by the student this semester.
- a constructor method and
- get- and set-methods.
Write a method that, given an array of students, returns the name
of the student who takes the largest number of credit hours.
Trace your method on the example of an array of two students:
- Mario Gutierrez, major CS, takes 12 hours; and
Johnson, major English, takes 10 hours.