Unit 7 - Sorting and Searching

Programming Assignments AB


Program Assignments

Description

Due Date

Student

Write a Student class that contains Name, Grade, and an ArrayList containing java.util.Date objects for each day students are absent.  Methods should include: getName, getGrade, addAbsence (which takes a date parameter), wasAbsent (which takes a date parameter and determines if the student was absent on that day), and removeAbsence which removes the date from the given arraylist

12/11

Class List

Write a ClassList class that contains an Set of Student objects.  The ClassList class should have the following methods:  loadClassList(which takes a List of students and records them as students in the class without replacing what is there), addStudent, recordAbsence (which takes a student name (String) and a date), numStudentsPresent (which takes a date and returns the number of students in class on that day).

12/13