Please send questions to st10@humboldt.edu .
/*--------------------------------------------------
created by smtuttle at Tue May  4 18:22:44 PDT 2010
--------------------------------------------------*/
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;


/*--------------------------------------------------
 Contract: setw_play : int string double int -> void
 Purpose: expects a desired field width, and an example string,
         double value, and int value, and returns nothing,
         but outputs the example string, double value, and int
         value in a field of that width, each on their own line,
         to the screen.

 Examples: 
    setw_play(7, "hiya", 30.3, 13);
    ...should cause the following to be printed to the screen:
   hiya
   30.3
     13

    setw_play(3, "hiya", 30.3, 13);
    ...should cause the following to be printed to the screen:
hiya
30.3
 13
--------------------------------------------------*/

void setw_play(int width, string str, double dbl_num, int int_num)
{
    cout << setw(width) << str << endl;
    cout << setw(width) << dbl_num << endl;
    cout << setw(width) << int_num << endl;
}