CS 131 Chapter 4 Exercises 1. age < 21 age << " is under 21."; 2. Since the two conditions are mutually exclusive, you can use an if/else. if (age >=65) cout << "You may retire."; else cout << "Keep working."; 3. The semicolon after the first line stops the "if" statement and the "else" will cause an error. 5. Maybe YES 7. a. no b. leap c. no d. no 8. (age <16) && (height > 76) if (!(age <16) && (height > 76)) ... 9. unoSorry. I'm just starting Spanish. duoSorry. I'm just starting Spanish. tres Sorry. I'm just starting Spanish. Corrections: if (num==1) cout << "uno"; else if (num==1) cout << "uno"; else if (num==1) cout << "uno"; else "Sorry. I'm just starting Spanish." 10. a. THe one on the left compiles. bi. Pay= $300 bii Bouns -- Pay = $ 550 14. if (age >=18) { cout << "Adult "; if (sex =='F') cout << "female"; else cout << "male."; } else { cout << "Juvenile "; if (sex =='F') cout << "female"; else cout << "male."; }17. int age; cout << "Enter your age: "; cin >> age; if ((13 <= age) && (age < 20)) cout << "teenager\n"; else cout << "not a teenager\n"; 19. cout << "Smallest: "; if (exam1 > exam2) if (exam2 > exam3) cout << exam3; else cout << exam2; else if (exam1 >> exam3) cout << exam2; else cout << exam1; cout << "\nLargest: "; if (exam1 > exam2) if (exam1 > exam3) cout << exam1; else cout << exam3; else if (exam2 > exam3) cout << exam2; else cout << exam3