//This passes variables as arguments to a function affirm_me

#include <iostream>   
#include <string>

using namespace std;

void getTemp(int& temp);

void printActivity(int temp);

int main()
{
  int temperature;

  getTemp(temperature);
  printActivity(temperature);

  return 0;
}

void getTemp(int& temp){
  cout << "Enter the temperature outside: " << endl;
  cin >> temp;
  cout << "The current temperature is " << temp << endl;
}

void printActivity(int temp){
  cout << "The recommended activity is ";
  if(temp > 85)
    cout << "swimming.";
  else if(temp > 70)
    cout << "tennis.";
  else if(temp > 32)
    cout << "golf.";
  else if(temp > 0)
    cout << "skiing.";
  else
    cout << "dancing.";

  cout << endl;

}
