Please send questions to st10@humboldt.edu .
/*-----
  Contract: main: void -> int

  Purpose: ask the user for Scoville ratings and give
           him/her the minimum recommended audience for
	   each, printed to the screen,
	   until he/she enters a negative rating
	   to say he/she is ready to quit
  
  Examples: if, when I run this program, I enter:
            250, 750, 1250, 500, 1000, -2 when prompted, the following
            would be printed to the screen:
the minimum rec'd level is: infant
the minimum rec'd level is: toddler
the minimum rec'd level is: adult
the minimum rec'd level is: toddler
the minimum rec'd level is: adult

  by: Sharon Tuttle
  last modified: 4-14-10
  -----*/

#include <iostream>
#include "spiciness_level.h"
using namespace std;

int main()
{
    int sco_rating;

    // get the first Scoville rating

    cout << "Enter a Scoville rating (or a negative number to quit): ";
    cin >> sco_rating;

    // handle all actual Scoville ratings

    while (sco_rating >= 0)
    {
        // handle this rating

        cout << "the minimum rec'd level is: "
             << spiciness_level(sco_rating) << endl;

        // get the next rating

        cout << "Enter a Scoville rating (or a negative number to quit): ";
        cin >> sco_rating;
    }

    return EXIT_SUCCESS;
}