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

  Purpose: prompts the user for Scoville ratings of peppers,
           and for each prints to the screen the appropriate
           minimum-age audience for a chili of that spiciness;
           it ends when the user enters a negative Scoville
	   rating
  
  Examples: if, when this program is run, you enter, when prompted,
2
30000
750
0
500
1000
-5
    ...then it will respond to the screen (between the prompts) as:
the youngest audience for that chili is: infant
the youngest audience for that chili is: adult
the youngest audience for that chili is: toddler
the youngest audience for that chili is: infant
the youngest audience for that chili is: toddler
the youngest audience for that chili is: adult

pseudocode:
ask user for a chili's Scoville rating

while the rating is >= 0
    determine and print out the minimum audience for that rating 

    ask user for the next chili's Scoville rating

  by: Sharon Tuttle
  last modified: 11-19-2010
-----*/

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

int main()
{
    int rating;

    // ask user for a chili's Scoville rating

    cout << "Enter the Scoville rating for a chili " << endl
         << "   (enter a negative rating to quit): " << endl;
    cin >> rating;

    // determine the minimum audience for each rating entered

    while (rating >= 0)
    {
       // determine and print out the minimum audience for that rating 
       
       cout << "the youngest audience for that chili is: " 
            << spiciness(rating) << endl;
   
       // ask user for the next chili's Scoville rating

       cout << "Enter the Scoville rating for a chili " << endl
            << "   (enter a negative rating to quit): " << endl;
       cin >> rating;

    }

    return EXIT_SUCCESS;
}