Please send questions to st10@humboldt.edu .
****************
cout RESULTS SHOWN TOO - DONE
****************
last modified: 12-12-11

If a function does user output, that output should be shown
as well as the final expression value.

STATUS: DONE
FIRST PASSED: 12-06-11 (they completed earlier, though -- took
              me a while to get to completing acceptance test for
	      this)
acceptance tests last attempted: 12-12-11
acceptance tests last passed:    12-12-11

------------------
acceptance test 1
------------------
(if necessary:
1. run:
   python3 theGui.pyw

2. Click "Change directory" and navigate to the following
   directory:
   /Users/smtuttle/480xp-tests/new-test
   ...and click "Choose".
)

3. click New, and create bizarre function cout_play:

cout_play

cout_play: int -> bool

expects an integer, and if it is greater than 0 it produces
true and has the side-effect of printing that number of "moo"'s
to the screen, one per line; otherwise it produces false with no
additional side-effects

bool cout_play(int num_moos)

cout_play(4) == true   
cout_play(0) == false
cout_play(-1) == false

{
    if (num_moos <= 0)
    {
        return false;
    }
    else
    {
        for (int i=0; i<num_moos; i++)
        {
            cout << "moo" << endl;
        }
        return true;
    }
}

   *   click "Compile, Test, and Save"; should succeed,
       and tests should "pass" (although don't see couts here...)

4. Move windows so you can reach Helper++ window;
   *   in Helper++ window, click cout_play checkbox,
       and see if can run these expressions:

   *   cout_play(5)
       ...and click Execute
       ....should see in Expressions output:
moo
moo
moo
moo
moo
true

       *   12-12-11 -- see a blank line between last moo and true,
           but I think that's OK;

   *   cout_play(-1)
       ...and click Execute
       ...should see false
    
   Should see in the expressions output:
false
 
LAST TESTED: 12-12-11 
LAST PASSED: 12-12-11