After:
// Prints whether a driver will pay peak or off-peak toll
int main()
{
// Variable declarations
int hour;
bool isPeak;
// Input the hour (0-23)
cout << "Enter the hour (0-23)" << endl;
cin >> hour;
// Compute whether peak hour (7 - 9 and 16 - 18)
if( hour >= 7 && hour <= 9 )
isPeak = true;
else if( hour >= 16 && hour <= 19 )
isPeak = true;
else
isPeak = false;
// Print the type of toll paid
if( isPeak )
cout << "You will pay peak toll" << endl;
else
cout << "You will pay reduced toll" << endl;
return 0;
}