# SatisfactionIndex.cpp

## Overview

SatisfactionIndex is a class declared in SatisfactionIndex.h. The sole purpose of this class is to maintain data about how the elevators are performing throughout gameplay.

The entirety of this class has been implemented for you.

## Satisfaction Benchmarks

1. sumIndex keeps track of people’s satisfaction
2. sumUpRequest keeps track of the total up requests satisfied
3. sumDownRequest keeps tracks of the total down requests satisfied
4. sumExploded keeps track of exploded people
5. sumIdle keeps tracks of all idle elevators throughout gameplay

Note that “good” performance means trying to maximize sumIndex, sumUpRequest, and sumDownRequest, while trying to minimize sumExploded and sumIdle.

One function in particular will be important to you: SatisfactionIndex::printRawSatisfaction This function will print the raw satisfactions scores in the same order as the list above. This function has also been overloaded for you with the << operator. This provides useful functionality such as:

SatisfactionIndex benchmarks;

cout << "Result:" << endl;
cout << benchmarks << endl;

// Output:
Result:
0
0
0
0
0