class person { private: char fname[20]; char lname[20]; int age; public: }; 1. Write a member function called close_age for the class person (see above), which has another person as parameter. Your function should return true if the two persons are with ten years of each other. Otherwise false. bool person::close_age(person p) { if (p.age - age <= 10 && age - p.age <= 10) return true; else return false; } 2. Write a nonmember function called some_close which takes a person, an array of persons and the size of the array as parameters. The function returns true if that person is within ten years of somebody in the array. Otherwise false. bool some_close(person p, person A[], int size) { int i; for (i=0; i x) return true; else return false; } 5. Write a nonmember function called young_adults which takes two arrays of persons and the size of the first array as parameters. The function should copy all the persons in the first array between the ages of 18 and 21 (inclusive) into the second array, and return the number of persons now in the second array. (Assume the second array starts out empty.) int young_adults(person A[], person B[], int size) { int i,j=0; for (i=0; i> s; while (!in.eof()) { pig_latin(s,t); out << t; in >> s; } } 9. Give the output of the following program: int main() { int A[10]; int i, sum=0; for (i=0; i<10; i++) A[i] = i; for (i=0; i<10; i++) { if (A[i] % 2 != 0) sum += A[i]; } cout << "The sum is " << sum << "\n"; return 0; } The sum is 25 10. Give the output of the following program: int main() { int A[10]; int i, sum=0; for (i=0; i<10; i++) A[i] = i; for (i=1; i<10; i++) A[i] += A[i-1]; for (i=0; A[i] < 12; i++) cout << A[i] << " "; cout << endl; return 0; } 0 1 3 6 10