Please send questions to st10@humboldt.edu .
/*--------------------------------------------------
created by smtuttle at Thu Nov  4 14:49:42 PDT 2010
--------------------------------------------------*/
#include <iostream>
#include <cmath>
using namespace std;


/*--------------------------------------------------
 signature: cheer : int -> int
 purpose: expects the number of HIP's desired in
         a cheer, and has the side-effect of
         printing to the screen that many HIP's
         each on its own line followed by a HOORAY!,
         and then it produces how many HIP's it printed

 Examples: cheer(3) == 3
but also has the side-effect of printing to the screen
HIP
HIP
HIP
HOORAY!
--------------------------------------------------*/

int cheer(int num_hips)
{
    int count = 0;

    while (count < num_hips)
    {
        cout << "HIP" << endl;
        count++;
    }

    cout << "HOORAY!" << endl;
    return count;
}