From the course: Level Up: Java

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Student volunteers

Student volunteers - Java Tutorial

From the course: Level Up: Java

Student volunteers

- [Instructor] As a part of the high school curriculum, students must volunteer for at least two events every year. You have a list of student names as well as a list from each event with the events attendees. With this information, you need to figure out which students still need to attend more events this year. In our starter code space, we have a list of students as well as a map that contains each event with the students that attended that event. Your job is to implement the findStudentsWithIncompleteVolunteerEvents function. You can verify your implementation with the associated test file. Good luck. (upbeat music) Looking at our find function, we take in a list of students in a mapping of events to the students that attended those events. To keep track of how many events each student has attended, we create a student's event count map with the student name as the key and the value as zero. We could use a for loop…

Contents