/*	Utility Library
	void Pause()
	int GetInt(int Lo, int Hi)                    */

#include <iostream.h>
//#include <conio.h>

using namespace std;	// October 5, 2001

//--------------------------------------------------------------------------------
void Pause()
/*	Displays a message and waits for the user to hit a key
	Post: Key pressed                                                               */
{
	char choice;
	cout << "Press a key and then Enter to continue" << endl;
	cin >> choice;  // Pause for user to hit a key and then Enter
	cout << endl;
}
//--------------------------------------------------------------------------------
int GetInt(int Lo, int Hi)
/*	Obtains and returns an integer from the user in the range Lo..Hi.
	Pre: Lo < Hi
	Post: An integer between Lo and Hi inclusive returned                    */
{
	int Entry;
	cin >> Entry;
	while ((Entry < Lo) || (Entry > Hi)) {
		cout << "Value must be between " << Lo << " and " << Hi << endl;
		cout << "Please re-enter: ";
		cin >> Entry;
	}
	return(Entry);
}

