#include <iostream>
using namespace std;

void qualify()
{
	cout << "Congratulations! You qualify for the credit card!";
	cout << " Your annual interest rate is 12%" << endl;
}

void noQualify()
{
	cout << "You do not qualify for credit card.";
	cout << "You must earn at least 17,000 per year";
	cout << " and have worked at your current job for 2 years." << endl;
}
int main() 
{
	double salary;
	int years;
	
	cout << "This program will determine if you qualify";
	cout << " for our credit card." << endl;
	cout << "What is your annual salary? " << endl;
	cin >> salary;
	cout << "How many years have you worked at your";
	cout << " current job?" << endl;
	cin >> years;
	
	if (salary >= 17000.0 && years >= 2)
		qualify();
	else
		noQualify();
	return 0;
}