Problem 2 --------- Write a function called count_t, that takes an input stream as input parameter. Assume that the input stream is already associated with a file containing words (with no punctuation, capital letters or numbers). The function should return the number of words in the file that begin with the letter t. Answer 2 -------- int count_t(istream &in) { int count = 0; char s[20]; in >> s; while (!in.eof()) { if (s[0] == 't') count++; in >> s; } return count; } Problem 3 --------- A. Write a class called person, with data fields fname, lname and year_born, whose values will be the first and last name of a person and the year that person was born. Look at the other parts of this question to see what else the class should contain. B. Write a member function called age, for person, which takes the current year as input parameter, and returns the age of the person at the end of the current year. D. Write a member function called match, for person, which takes a first name and a last name as input parameters, and returns true if the person has that first and last name, false if not. Answer 3 -------- class person { private: char fname[20]; char lname[20]; int year_born; public: int age(int current_year); bool match(char f[], char l[]); }; int person::age(int current_year) { return current_year - year_born; } bool person::match(char f[], char l[]) { if (strcmp(fname,f)==0 && strcmp(lname,l) == 0) return true; else return false; }