/*
   Lab 4a: Activity Directory

A resort has a computer that allows guests to enter the current
temperature, and this program outputs an appropriate activity.

*/
#include <stdio.h>

void showActivity(int temperature);

int main(void)
{
    int temperature;    /* Input - The outside temperature */

    /* Get temperature */
    printf("Enter the outside temperature in degrees Fahrenheit (whole number):");
    scanf("%d", &temperature);
    showActivity(temperature);	 
    return 0;
}

/* Display a message according to temperature */
void showActivity (int temperature /* input */)
{
    /* Print activity */
    printf( "The recommended activity for %d degress is ", temperature );
    if (temperature > 85)
    {
        printf( "swimming.\n" );
    }
    else if (temperature > 70)
    {
        printf( "climbing.\n" );
    }
    else if (temperature > 32)
    {
        printf( "biking.\n" );
    }
    else if (temperature > 0)
    {
        printf( "skiing.\n" );
    }
    else
    {
        printf( "dancing.\n" );
    }

}