Please send questions to st10@humboldt.edu .
/*--------------------------------------------------
created by st10 at Wed Mar 10 14:32:50 PST 2010
--------------------------------------------------*/
#include <iostream>
#include <cmath>
#include "spiciness_level.h"
using namespace std;


/*--------------------------------------------------
 Contract: spiciness_level : int -> string
 Purpose: expects a Scoville rating of some pepper,
;    and produces a string representing the youngest
;    category of person I should offer that chili to.

 Examples: spiciness_level(1) == "infant"
          spiciness_level(1 + INFANT_MAX) == "toddler"
          spiciness_level(10000) == "adult"
          spiciness_level(INFANT_MAX) == "toddler"
          spiciness_level(TODDLER_MAX) == "adult"
--------------------------------------------------*/

string spiciness_level(int scoville_rating)
{
    if (scoville_rating < INFANT_MAX)
        return "infant";
    else if (scoville_rating < TODDLER_MAX)
        return "toddler";
    else
        return "adult";
}