//This program demonstratres the logical || operator.
#include <iostream>
using namespace std;
int main ()
{
	//Constants for minimum income and years
	const double MIN_INCOME = 35000.0;
	const int  MIN_YEARS = 5;
	
	double income;	//Annual income
	int years;		//Years at current job
	
	//Get the annual income
	cout << "What is your annual income? ";
	cin >> income;
	
	//Get the number of years at the current job.
	cout << "How many years have you worked at "
		 << "your current job? ";
	cin >> years;
	
	//Determine the user's loan qualifications.
	if (income >= MIN_INCOME || years > MIN_YEARS)
		cout << "You qualify.\n";
	else 
	{
		cout << "You must earn at least $"
			 << MIN_INCOME << " or have been "
			 << "emloyed more than " << MIN_YEARS
			 << " years.\n";
	}
	return 0;
}
