Please send questions to
st10@humboldt.edu .
/*--------------------------------------------------
created by smtuttle at Fri Oct 22 09:07:20 PDT 2010
--------------------------------------------------*/
#include <iostream>
#include <cmath>
#include "boa.h"
using namespace std;
/*--------------------------------------------------
Contract: is_boa_portable : boa double -> bool
Purpose: expects a boa and a carrier's length in meters,
and produces whether the boa could fit in a
carrier of that size
Examples:
is_boa_portable( *(new boa("green", 12, "lasagna")), 2) == false
is_boa_portable( *(new boa("green", 12, "lasagna")), 22) == true
is_boa_portable( *(new boa("green", 12, "lasagna")), 12) == true
--------------------------------------------------*/
bool is_boa_portable(boa a_boa, double carrier_len)
{
return a_boa.get_length() <= carrier_len;
}