#include #include using namespace std; /* This functions takes 2 values from the user and if any value is out of range throws an exception.*/ void function1( int& low , int& high ) { cout << "Enter low value:" << endl ; cin >> low ; cout << "Enter high value:" << endl ; cin >> high ; if ( low < 0 || high > 100 ) throw "Values are out of range." ; } int main() { //TO DO //Put a try catch around fucntion1 to catch the error function1() ; return 0; }