// This program demonstrates late variable definition #include using namespace std; int main() { // Constants for minimum income and years const double MIN_INCOME = 35000.0; const int MIN_YEARS = 5; // Get the annual income. cout << "What is your annual income? "; double income; // Variable definition cin >> income; // Get the number of years at the current job. cout << "How many years have you worked at " << "your current job? "; int years; // Variable definition 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 " << "employed more than " << MIN_YEARS << " years.\n"; } return 0; }