Building a Roll Call System in Ruby
This guide will walk you through how to implement a method that can take roll for students and return a hash that lists the students that were present and absent.
Guide Tasks
- Read Tutorial
- Complete the Exercise
Summary
Build a method that keeps track of student attendance.
Exercise Description
Define a method that checks the attendance status of each student and returns a list of students who were present and absent. You should also have this method return the correct percentage of present and absent students.
Example Data
{ "2017-04-12"=> { :present=>[ "Ryan", "Chase", "KJ", "Zach", "Ben", "Stephanie", "Ian", "Alex", "Cody", "Preston", "Andrew", "Jason" ], :absent=>[ "Hunter", "Devan", "Christian" ] } })
Real World Usage
This exercise is used every day by educational facilities and makes roll calling very efficient. This is a great exercise to understand and easy to implement, if needed.