Please send questions to st10@humboldt.edu .
/*--------------------------------------------------
  modified by st10 on 12-3-10
--------------------------------------------------*/
#include <iostream>
#include <cmath>
#include "boa.h"
using namespace std;


/*--------------------------------------------------
 Signature: display_boa : boa* -> void
 Purpose: expects a pointer to a boa, and it produces nothing,
         but it has a side-effect of printing that boa's information
         to the screen

 Examples: the statement
 display_boa( new boa("red", 4.7, "pizza") );
will cause the following to be printed to the screen:

boa's color is: red
...and its length is: 4.7
...and its favorite food is: pizza

--------------------------------------------------*/

void display_boa(boa *boa_ptr)
{
    // demonstrates both means for calling the methods of an object
    //    via a pointer to that object

    cout << "boa's color is: " << (*boa_ptr).get_color() << endl;
    cout << "...and its length is: " << boa_ptr->get_length() << endl;
    cout << "...and its favorite food is: " << boa_ptr->get_food() << endl;
}