// This program demonstrates the && logical operator. #include using namespace std; int main() { char employed, // Currently employed, Y or N recentGrad; // Recent graduate, Y or N // Is the user employed and a recent graduate? cout << "Answer the following questions\n"; cout << "with either Y for Yes or "; cout << "N for No.\n"; cout << "Are you employed? "; cin >> employed; cout << "Have you graduated from college "; cout << "in the past two years? "; cin >> recentGrad; // Determine the user's loan qualifications. if (employed == 'Y' && recentGrad == 'Y') { cout << "You qualify for the special "; cout << "interest rate.\n"; } else { cout << "You must be employed and have\n"; cout << "graduated from college in the\n"; cout << "past two years to qualify.\n"; } return 0; }