Chapter 4: Divide and Conquer
Activity 8: Vaccinations
In this activity, we will store and lookup the vaccination status of students to determine if they need to be vaccinated. These steps should help you complete the activity:
- Begin by including the following headers:
#include <iostream> #include <vector> #include <chrono> #include <random> #include <algorithm> #include <numeric>
- Define the
Studentclass as follows:class Student { private:     std::pair<int, int> name;     bool vaccinated; public:     // Constructor     Student(std::pair<int, int> n, bool v) :         name(n), vaccinated(v)     {}     // Getters     auto get_name() { return name; }     auto is_vaccinated() { return vaccinated; }     // Two...