Please send questions to
st10@humboldt.edu .
/*--------------------------------------------------
created by st10 at Mon Mar 8 13:56:27 PST 2010
--------------------------------------------------*/
#include <iostream>
#include <cmath>
#include "is_safe.h"
using namespace std;
/*--------------------------------------------------
Contract: is_safe : double -> bool
Purpose:
expects a temperature (in Celsius) and
produces whether it is in the safe range
of [50, 100)
Examples: is_safe(47) == false
is_safe(50) == true
is_safe(90) == true
is_safe(100) == false
is_safe(200) == false
--------------------------------------------------*/
bool is_safe(double temp)
{
return (temp >= MIN_SAFE) && (temp < MAX_SAFE);
}